# Practice Notes # configure Apache + PHP + MySQL in Ubuntu

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.