Because I am a Linux small white, so choose the Ubuntu system, version is recently released 15.04;
Installation process is more bumpy, the following order may be a bit messy;
First download Ubuntu, the ISO to burn into the U disk, this note, you must use this burning software (Win32diskimager), the previous online use of soft disk (UltraISO) burn ubuntu14.10 version After the boot will appear error;
The installation process is nothing, my partition is 4g as swap virtual, the rest as the primary partition, has been the next line, because the installation process does not know how to capture, so also show no process; After installation restart, successfully entered the system;
First configure the source (not configured, then download the package will be slow):
As shown in the figure, I choose the source of the Aliyun, because a little bit faster download, configure the good, update;
You can then start installing the software, open the terminal, and install Apache first:
Once installed, the browser enters localhost and appears
was successful;
Install PHP:
Install MySQL:
The installation process prompts you to set a password;
Install phpMyAdmin
Similarly, the installation process first needs to choose Apache2, and then prompts to set the username and password;
Install some more basic modules
Also need to install the GD library (forgot screenshot). ) = "sudo apt-get install PHP5-GD
The following is the configuration process:
1, first modify the Apache root directory, the default is/var/www/html
Configuration file in/etc/apache2/sites-available/000-default.conf
Terminal Open,
Modify Documentroot/var/www/html
For documentroot/var/www can be;
2, so that all the files and folders in the Apache root directory have read and write permissions,
3, connecting Apache and phpMyAdmin:
Terminal input
Restart Apache
Create a new file in the root directory phpinfo.php
Input
The browser opens localhost/phpinfo.php and displays
Express success;
Re-test MySQL, create a new conn.php, enter:
Browser opens localhost/conn.php, appears
Indicates success
Finally open Localhost/phpmyadmin
Enter user name, password, enter successfully
At this point, the lamp environment has finally been built.