1) install apache : sudo apt-get install apache2
2) check the apache is installed : sudo wget http://127.0.0.1
3) install the php5: sudo apt-get install php5
4) install the apache php5 module: sudo apt-get install libapache2-mod-php5
5) confirm the php5 module is installed correctly:
a)go to the directory /var/www/, and create the phpinfo.php file.
restart the apache, and access the
http://127.0.0.1/phpinfo.php.
6) install mysql :
sudo apt-get install mysql-server
7) install php's mysql driver: sudo apt-get install php5-mysql
8) install php admin:
sudo apt-get install phpmyadmin
9) now restart apache, and access
http://127.0.0.1/phpmyadmin