
我剛剛在我的 RPi (Raspbian Wheezy) 上安裝了一個帶有 php5 和 mysql 的 apache2 伺服器。我遵循了本教程:教程鏈接
一切都很順利,甚至透過 FTP (FileZilla) 進行檔案傳輸。
我立即可以存取index.html 檔案(「它有效!」),但無法存取我使用FileZilla 傳輸的檔案。經過網路上的一些研究後,我一次又一次地更改使用者和群組,但沒有任何幫助。現在連FTP傳輸都不能用了...
誰能告訴我(並解釋原因)我必須在 /var/www 目錄上放置哪些權限/使用者/群組才能透過 Pi 的 IP 192.168.X.XX 存取我的 Pi 上的本機檔案?
編輯:
pi@raspberrypi /var/www $ ls -lah
total 16K
drwxr-xr-t 3 root pi 4.0K Mar 25 15:22 .
drwxr-xr-x 12 root root 4.0K Mar 25 15:06 ..
-rw-r--r-- 1 pi pi 177 Mar 25 15:07 index.html
drwxr-xr-t 9 pi pi 4.0K Mar 25 15:22 webtrees