In my previous article # Practice Notes # configure PHPnow and WordPress locally, I have discussed PHPnow's local installation tutorial. However, PHPnow is a software program on the Windows platform and does not apply to the platform I am using. Therefore, I tried to configure the local server (Apache + PHP + MySQL) on the Ubuntu 11.10 platform ).
Speak nonsense and step into the whole.
Process notes:
1. Open the terminal, enter "sudo apt-get install apache2", and press Enter;(Install apache2.0)
2. If you have a password, enter the administrator password and press Enter.
3. Enter "Y" and press Enter.
4. apache2.0 installation is complete.
5. verify whether the installation of apache2.0 is complete. Open http: // localhost/or http: // 127.0.0.1 in the browser. If It works appears! That proves success;
6. Open the terminal, enter "sudo apt-get install php5", and press Enter;(This is PHP installation)
7. Enter "Y" and press Enter;
8. It takes some time for the installation process
9. Enter "sudo apt-get install libapache2-mod-php5" and press ENTER;(Configure APACHE + PHP)
10. Enter "sudo/etc/init. d/apache2 restart" and press Enter;(Restart APACHE)
11. After the page shown in figure is displayed, PHP has been installed;
12. Enter "gksudo gedit/var/www/testphp. php" and press Enter;(This is the installation result for testing PHP)
13. Then enter something (I entered a http://www.jb51.net/) and save.
14. Enter http: // 127.0.0.1/testphp. php or http: // localhost/testphp. php In the browser. If it is displayed, the input is successful;
15. Enter "sudo apt-get install mysql-server" on the terminal and press Enter;(This is MYSQL installation)
16. Enter "Y" and press Enter;
17. Set the root password;
18. Enter "sudo apt-get install libapache2-mod-auth-mysql" in the terminal and press ENTER;(This enables apache and php to support mysql)
19. Enter "sudo apt-get install php5-mysql" on the terminal and press ENTER;
20. Enter "sudo/etc/init. d/apache2 restart" on the terminal and press Enter;
Now The apache2 + php 5 + mysql5 environment is configured successfully.
Author: pwxtom
Address: http://www.cnblogs.com/LiteraturePan/archive/2012/03/02/2377097.html