sudo apt-get install apache2 apache2-mpm-prefork
sudo apt-get install php5 libapache2-mod-php5 php5-gd php5-mysql
參考網址:http://wiki.ubuntu-tw.org/index.php?title=UbuntuTW_Guide_ch14#Apache2_.E5.AE.89.E8.A3.9D