1. First use Apt-get update to get the list of software sources 2. Installing Apache input APACHE2-V Displays the following information indicating that the installation is complete
3. Install PHPInput PHP5-V Displays the following information indicating that the installation is completeCheck to see if libphp5.so 4 is loaded. Install MySQL to see if the mysql.so above information shows that mysql.so installation is not installed mysql.so check againis mysql.so installed?5. RestartApache and MySQL to ensure proper operation6. Add common extensions to PHP (show Curl and GD library here, other extensions Baidu search, save for next use) restart Apache to install successfully, then there is phpinfo () This PHP function to see if the load is successful.
Note: 1. You can install amp 2 directly via a single command. Tasksel can also be installed, Tasksel can easily device DNS server, lamp, Kubuntu desktop, Ubuntu Desktop, Xubuntu and other hardware packages ( Install Tasksel:sudo apt-get install Tasksel)
From for notes (Wiz)
Ubuntu Build Lamp Environment