sudo apt-get install mysql-server mysql-client
2.install apache2--->
dependency : mysql-common libnet-daemon-perl libplrpc-perl libdbi-perl libmysqlclient16
libdbd-mysql-perl mysql-client-core-5.1 mysql-client-5.1
mysql-server-core-5.1 mysql-server-5.1 libhtml-template-perl mysql-client
mysql-server
sudo apt-get install apache2
dependency : libssl0.9.8 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
apache2.2-bin apache2-utils apache2.2-common apache2-mpm-worker apache2
3.install php5 --->
sudo apt-get install php5 libapache2-mod-php5 php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json
dependency : apache2-mpm-prefork php5-common libapache2-mod-php5 mlock libc-client2007e
libmcrypt4 libming1 libt1-5 libtidy-0.99-0 php5-cli php-pear php5 php5-curl
php5-gd php5-idn php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming
php5-mysql pslib1 php5-ps php5-pspell php5-recode php5-snmp php5-sqlite
php5-tidy php5-xmlrpc php5-xsl
4.install phpmyadmin --->
sudo apt-get install phpmyadmin
dependency : dbconfig-common wwwconfig-common javascript-common libjs-mootools phpmyadmin