close

基本上一整個無腦操作,複製貼上就是

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
 存檔
sudo /etc/init.d/apache2 restart
//編輯網頁路徑
sudo gedit /etc/apache2/conf.d/alias

* 將此行加到新檔案

Alias /URL-path /location_of_folder/

<Directory /location_of_folder/>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

* 存檔

sudo /etc/init.d/apache2 restart

全站熱搜
創作者介紹
創作者 sakerlin 的頭像
sakerlin

黑羽隨筆

sakerlin 發表在 痞客邦 留言(0) 人氣()