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