Today's system from the original version of Kirin, plus yesterday lost heart crazy to the previous blog, for all the notes to remove the note, anyway to install the environment, simply from the beginning again.
I. Installing Apache1. Open Terminal: ctrl+alt+t, update the latest source:
sudo apt-get update//apt-get is a self-brought shell command that allows easy installation of software from the source.
2. Install Apache by Apt-get:
sudo apt-get install apache2//enter Y to confirm
Detects if the installation was successful: in Browser input: 127.0.0.1 or locahost. The content appears on the browser and has it works. Instructions to install successfully!
Note:
A.apache in Ubuntu the default root directory is:/var/www
B. The Master profile directory is:/etc/apache2/apache2.conf
C. The virtual machine configuration directory is:/etc/apache2/sites-enabled
Two. Installing PHP53. Installing the PHP5 and APACHEPHP5 modules
sudo apt-get install php5 libapache2-mod-php5//actually LIBAPACHE2-MOD-PHP5 can not write, the new version of the source has been brought in
Once installed, restart Apache:
/etc/init.d/apache2 restart
4. Build a probe page to test if PHP is installed successfully
Create a new PHP file under var/www/:
sudo vim test.php<?phpphinfo ();? >
Browser input: locahost/test.php The following screen appears to indicate success.
Three. Install MySQL5. Terminal input:
sudo apt-get install Mysql-server
The following tips will appear halfway through:
Set the MySQL password.
6. Test if MySQL is installed successfully
Open a new terminal input:
Mysql-uroot-p Password
No prompt error correctly entered indicates successful installation.
7. Install MySQL extensions and other extensions for PHP.
View all extensions:
sudo apt-cache search php5
Find the module name you want to install, enter the command in the format as follows
sudo apt-get install php5-mysql php5-curl PHP5-GD
Restart Apache. Enter localhost/test.php. You can see if the module has been installed successfully.
Four. Installing phpMyAdmin8. Download phpMyAdmin
sudo apt-get install phpMyAdmin
Note: phpMyAdmin will be installed automatically under/usr/share/phpmyadmin, you need to copy the phpMyAdmin folder to the/var/www/html directory
Use the command:
sudo ln-s/usr/share/phpmyadmin//var/www/html/
Browser input Localhost/phpmyadmin You can see the interface of the management database.
Configuration Complete!
Ubuntu 14.04 Kylin Edition installation: Apache+php5+mysql+phpmyadmin.