基本上一整個無腦操作,複製貼上就是
sudo apt-get install apache2
sudo apt-get install php5
sudo /etc/init.d/apache2 restart
sudo apt-get install php5-gd
sudo apt-get install php-pear
sudo apt-get install php5-curl
sudo apt-get install mysql-server
//安裝過程會要你設定ROOT 密碼
sudo /etc/init.d/mysql restart
sudo apt-get install ssh
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
//sudo apt-get install phpmyadmin
sudo cp /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini.bkup
sudo gedit /etc/php5/apache2/php.ini
加入
extension=mysql.so
extension=curl.so