sudo apt-get install apache2
sudo aptitude install php5-gd
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart
sudo apt-get install mysql-server
mysqladmin -u root password your-new-password
sudo apt-get install mysql-admin
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo apt-get install phpmyadmin
sudo gedit /etc/php5/apache2/php.ini
取消对;extension=mysql.so的注释,象这样
…
extension=mysql.so
…
sudo /etc/init.d/apache2 restart
export DEBUG_DONT_SPAWN_FETCHES=1
mysql-admin