LAMP Server Installation Steps
Apache:
sudo apt-get install apache2
MySQL / PHPMyAdmin:
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
PHP:
sudo apt-get install php5 libapache2.mod.php5
mkdir /var/www
sudo gedit /var/www/testphp.php
<?php phpinfo(); ?>
http://localhost/testphp.php
PHPMyAdmin:
sudo gedit /etc/apache2/apache2.conf
Include /etc/phpmyadmin/apache.conf
sudo /etc/init.d/apache2 restart
http://localhost/phpmyadmin
Restart Apache:
sudo /etc/init.d/apache2 restart