安裝apach2 libapache2-mod-php5 php5 php5-gd php5-cli mysql-server php5-mysql 指令:

sudo apt-get install apache2 libapache2-mod-php5 php5 php5-gd php5-cli mysql-server php5-mysql

Apache Clean URLS

sudo a2enmod rewrite

/etc/apache2/apache2.conf
ubuntu放在/etc/apache2/sites-available/default

AllowOverride None
改成
AllowOverride All

Facebook 功能: