版本Ubuntu12.01
1、更新源 sudo apt-get update
2、sudo apt-get install apache2
3、sudo apt-get install php5 libapache2-mod-php5
4、sudo apt-get install mysql-server
5、sudo apt-get install libapache-mod-auth-mysql
6、sudo apt-get install php5-mysql
7、sudo apt-get install phpmyadmin
8、安裝curl元件 sudo apt-get intall php5-curl(這個要更新源還能生效sudo apt-get update)
其他操作:
1、Apache重新開機 sudo /etc/init.d/apache2 restart
2、MySQL重新開機 sudo /etc/init.d/mysql restart
3、Apache配置檔案位置 /etc/apache2/
4、MySQL配置檔案位置 /etc/mysql/
5、網站預設目錄 /var/www/