1)安装apache
[email protected]:/opt$ sudo apt-get install apache2
2)安装php
[email protected]:/opt$ sudo apt-get install php5 libapache2-mod-php5
3)安装mysql
[email protected]:/opt$ sudo apt-get install mysql-server
4)安装phpmyadmin
[email protected]:/opt$ sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin