※ 引述《nwish (WiSH)》之銘言:
: 我希望能開個帳號web
: 然後ftp登入之後會直接進到/var/www/html
: 讓這個帳號可以在這個目錄上下傳檔案
: 我的OS Cent OS 5.2
修改帳號的家目錄
sudo vim /etc/passwd
test : x : 1001 : 1001 : test : /var/www/html : /bin/bash
: -----------------------
: 還有個問題 個人帳號的html一直開不起來
: SELinux關了
: 瀏覽個人網站會出現錯誤
: Forbidden
: You don't have permission to access /~帳號/ on this server.
: apache errorlog會這樣寫
: [error] [client 192.168.2.101] (13)Permission denied: access to /~帳號/ denied
: apache的設定
: <IfModule mod_userdir.c>
: UserDir public_html
: </IfModule>
: <Directory /home/*/public_html>
: Options Indexes FollowSymLinks
: AllowOverride None
: </Directory>
: 帳號中public_html 有改755了
: 不過我還是查不出問題在哪QQ
啟用個人網頁 //這部份我不是很確定XD
sudo a2enmod userdir
--
中職麻都是打假球的 ◥◣ 中華隊加油! ◥◣ 爛死了!這樣也能輸…
◣ ◥◣ ◢ ◥◣ ◤
─ ─ ◥◣ ★ ★ ◥◣ ‵ ′
CPBL ﹨ ⊿ ◢◤ ※ ▼ ※ ◢◤ ■ By tchialen
﹥ ◢◤ ﹀ ﹀ ◢◤ ∞
...︶ ) ◢◤ ∕ ﹨ ◢◤ ︱︳ 偽.球迷三部曲
--
: 我希望能開個帳號web
: 然後ftp登入之後會直接進到/var/www/html
: 讓這個帳號可以在這個目錄上下傳檔案
: 我的OS Cent OS 5.2
修改帳號的家目錄
sudo vim /etc/passwd
test : x : 1001 : 1001 : test : /var/www/html : /bin/bash
: -----------------------
: 還有個問題 個人帳號的html一直開不起來
: SELinux關了
: 瀏覽個人網站會出現錯誤
: Forbidden
: You don't have permission to access /~帳號/ on this server.
: apache errorlog會這樣寫
: [error] [client 192.168.2.101] (13)Permission denied: access to /~帳號/ denied
: apache的設定
: <IfModule mod_userdir.c>
: UserDir public_html
: </IfModule>
: <Directory /home/*/public_html>
: Options Indexes FollowSymLinks
: AllowOverride None
: </Directory>
: 帳號中public_html 有改755了
: 不過我還是查不出問題在哪QQ
啟用個人網頁 //這部份我不是很確定XD
sudo a2enmod userdir
--
中職麻都是打假球的 ◥◣ 中華隊加油! ◥◣ 爛死了!這樣也能輸…
◣ ◥◣ ◢ ◥◣ ◤
─ ─ ◥◣ ★ ★ ◥◣ ‵ ′
CPBL ﹨ ⊿ ◢◤ ※ ▼ ※ ◢◤ ■ By tchialen
﹥ ◢◤ ﹀ ﹀ ◢◤ ∞
...︶ ) ◢◤ ∕ ﹨ ◢◤ ︱︳ 偽.球迷三部曲
--
All Comments