In the previous article, we can see that the integrated toolkit under Windows is very powerful, and the Environment is built in a few times, but LAMP is the king after all. LMAP is the so-called Linux + Apache + Mysql + PerlPHPPython, this is a group of open-source software commonly used to build dynamic websites or servers. They are independent programs, but they are often used together.
In the previous article, we can see that the integrated toolkit under Windows is very powerful, and the environment has been set up in a few times, but LAMP is the king after all, LMAP is the so-called Linux + Apache + Mysql + Perl/PHP/Python. It is a group of open-source software commonly used to build dynamic websites or servers. It is independent of each other, but it is often used together.
In the previous article, we can see that the integrated toolkit under Windows is very powerful, and the environment has been set up in a few times, but LAMP is the king after all, LMAP is the so-called Linux + Apache + Mysql + Perl/PHP/Python. It is a group of open-source software commonly used to build dynamic websites or servers. It is independent of each other, however, because it is often used together, it has a higher degree of compatibility and forms a powerful Web application platform. With the rapid development of open source, open source LAMP has been integrated with J2EE and. NET has formed a three-pronged trend, and LMAP itself has the advantages of low cost, security, stability, ease of use and scalability, so it has been widely concerned and applied, refuse to complete statistics, from the perspective of website traffic, more than 70% of the access traffic is provided by LAMP. It can be seen that LAMP is undoubtedly the most powerful website solution. In the future, LAMP is still the most popular choice for Web development.
But I have to say that, even if I had almost no knowledge about Linux before, I would not be able to use a few commands. This time, I took the opportunity to build a LAMP and systematically learned some Linux-related things, today, I found a lot of information and finally used Ubuntu11.04 to build the LAMP environment.
The following can be seen as a "silly" record,If you are a master, please move this post without technical content... I just want to make a backup and share for easy viewing.
1. Install VMware-workstation-full-7.1.3 Virtual Machine..
2. Install Ubuntu11.04 Operating System (Desktop version) on the VM)And I will not repeat it. The final virtual machine configuration is as follows:
3. It is also a major concern, that is, the construction of the Apache + PHP + MySQL environment.
Install Apache2:Sudo apt-get install apache2
Run the test after installation:
Install PHP5:Sudo apt-get install php5
Install PHP-GD extension (for plotting ):Sudo apt-get install php-gd
Configure Apache + PHP:Sudo apt-get install libapache2-mod-php5
Restart Apache after Successful Configuration:Sudo/etc/init. d/apache2 restart
Create test. php:
Copy it to the/var/www directory:
Test the test run result in a browser:
Install the MySQL database server:Apt-get install mysql-server
Configure the MySQL module in Apache:Apt-get install libapache2-mod-auth-mysql
Install the MySQL module in PHP5:Apt-get install php5-mysql
Install phpmyadmin:Apt-get install phpmyadmin
Create a soft link -- all programs must be placed in the/var/www directory before the desired results can be viewed in the browser. Here, a simple method is used, create a soft link. Command isLn-s/usr/share/phpmyadmin/var/www
The test results of phpmyadmin are as follows:
Then we can build a database and develop programs. The developed tools such as gedit and vim can even be used to get zend under Windows, finally, don't forget to put the developed program in the/var/www directory to run smoothly.
Author: Rocky Xiang
Source: http://www.cnblogs.com/RockyMyx/