Linux under Configuration Apche+php+mysql

Source: Internet
Author: User

  This article is your own study notes, welcome reprint, but please specify the source:http://blog.csdn.net/jesson20121020

 Recently, because of the need to learn the development of Android network to use the server, so under Linux configuration Apche+php+mysql, the following is the main process, in Ubuntu as an example.

configuration process:
1. Installing Apache

In terminal input sudo apt-get install apache2      

After the installation is complete, open http://localhost/or http://127.0.0.1 in the browser , if the following interface appears, then congratulations, apche2 installation was successful.

 

2. Install PHP

  In terminal input sudo apt-get install PHP5

Enter Y to continue,

After the installation is complete, you can test that PHP is installed successfully.

First, enter the following command at the terminal:

Cd/var/wwwsudo gedit phptest.php

Then enter the test text in the newly opened text, here: Php install success!

Finally, in the browser address bar input: http://localhost/phptest.php, if you see the test text, it means that PHP has been installed successfully.

3.install MySQL

In terminal input sudoapt-get install Mysql-server 

During the installation process, you need to set a password for MySQL and enter it to confirm.

   After the installation is successful, enter sudoapt-get install Libapache2-mod-auth-mysql in the terminal to allow the apche2 to support MySQL; Sudoapt-get Install Php5-mysql This is to let php5 support MySQL.


4. Restart Apache

In terminal input sudo/etc/init.d/apache2 restart restart apche2, so thatLinux under apache+ php + mysql is fully configured, then Web development can be done.



Linux under Configuration Apche+php+mysql

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.