fedora apache 設定問題請教 - Linux

By Lily
at 2009-12-16T22:04
at 2009-12-16T22:04
Table of Contents
※ 引述《stator (別急著吃棉花糖)》之銘言:
: 所以上來請教各位先進。遇到了一個問題,就是我在sever建立了一個user帳號peter
: 也在根目錄建立了一個www資料夾。並把權限設定為755
: 也在另一台xp 確定可以連。我打入http://ip位址/~peter
: 也能連進peter的首頁。但在這過程中,我照著書上打入其中一個指令
: 為chcon -R -t httpd_user_content_t www/ (不知道是什麼意思)
這是selinux的label,把www的type label改成httpd_user_content_t
才能讓apache讀取。不過既然你已經可以連,代表你沒有這個問題,
是把selinux關掉了嗎?另外請看 man httpd_selinux
: (書上寫將www這個目錄的domain改為http_user_content_t)
: 請問該怎麼用圖形化介面來設定www的domain呢?因為在www 資料夾的屬性無法設定
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
不懂這句的意思。
file labels現在好像沒有圖形設定介面
: 因為較不希望靠背vi指令來完成。我查過在SELinux的地方並沒有這個選項
^^^^^^ 你說的是文字介面指令吧
「SELinux的地方」是指system->administration->SELinux Management嗎?
這是管理系統層次 selinux policies的工具
--
Nice to meld you.
--
: 所以上來請教各位先進。遇到了一個問題,就是我在sever建立了一個user帳號peter
: 也在根目錄建立了一個www資料夾。並把權限設定為755
: 也在另一台xp 確定可以連。我打入http://ip位址/~peter
: 也能連進peter的首頁。但在這過程中,我照著書上打入其中一個指令
: 為chcon -R -t httpd_user_content_t www/ (不知道是什麼意思)
這是selinux的label,把www的type label改成httpd_user_content_t
才能讓apache讀取。不過既然你已經可以連,代表你沒有這個問題,
是把selinux關掉了嗎?另外請看 man httpd_selinux
: (書上寫將www這個目錄的domain改為http_user_content_t)
: 請問該怎麼用圖形化介面來設定www的domain呢?因為在www 資料夾的屬性無法設定
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
不懂這句的意思。
file labels現在好像沒有圖形設定介面
: 因為較不希望靠背vi指令來完成。我查過在SELinux的地方並沒有這個選項
^^^^^^ 你說的是文字介面指令吧
「SELinux的地方」是指system->administration->SELinux Management嗎?
這是管理系統層次 selinux policies的工具
--
Nice to meld you.
--
Tags:
Linux
All Comments

By Bennie
at 2009-12-19T01:36
at 2009-12-19T01:36
Related Posts
請問vim與cscope.out位置的問題

By Ida
at 2009-12-16T20:56
at 2009-12-16T20:56
SVN ignore 預設值?

By Michael
at 2009-12-16T18:32
at 2009-12-16T18:32
KDE的"桌面資料夾"如何恢復?

By Harry
at 2009-12-16T14:17
at 2009-12-16T14:17
KDE的"桌面資料夾"如何恢復?

By Lydia
at 2009-12-16T13:51
at 2009-12-16T13:51
請教關於程式的安裝

By Ida
at 2009-12-16T13:22
at 2009-12-16T13:22