First Download Install Apache2
Input: sudo apt-get install apache2
After installation, enter: localhost in the browser
Displays the correct installation, as described.
Immediately after installation PHP5
Input: sudo apt-get install php5
Once the installation is complete, install MySQL
Input: sudo apt-get install Mysql-server
Immediately after installation phpMyAdmin
Input: sudo apt-get install phpMyAdmin
Select Apache2 and then enter the root password and the database password as prompted
The permissions to overwrite the/var/www directory are immediately followed. Easy to edit website files later.
Input: sudo chmod 777/var/www
Finally create the phpMyAdmin link.
Input: sudo ln-s/usr/share/phpmyadmin/var/www/html/
Now enter in the browser: localhost/phpadmin
The management interface can be displayed correctly after landing.
If apache2 startup encounters
Error message:
Apache2:could not reliably determine the server ' s fully qualified domain name, using 127.0.1.1 for ServerName
Workaround:
sudo gedit/etc/apache2/apache2.conf
Add the following file:
#Server Name
ServerName 127.0.0.1
Ubuntu Build Lamp