【教學】樹莓派Raspberry PI(RASPBIAN)web網頁伺服器安裝apache








※本篇內文資訊參考如下※



- -

※更新文章日期: 2015-11-20

樹莓派Raspberry PI(RASPBIAN)web網頁伺服器安裝apache

樹莓派Raspberry PI(RASPBIAN)

web網頁伺服器安裝apache

1.ifconfig查詢IP
2.把所有軟體都升到最新版
sudo apt-get update

3.開始安裝Apache,PHP等套件
sudo apt-get install apache2 php5 libapache2-mod-php5

4.安裝mysql
sudo apt-get install mysql-server mysql-client php5-mysql










5.如果要開啟htaccess,輸入
sudo nano /etc/apache2/sites-enabled/000-default
然後找到
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

把AllowOverride None改成AllowOverride All

var/www/==>網頁檔案路徑








-