所有的環境系統安裝完後,卻發現不能使用!Browser回傳的是403 Forbidden,看log也是403沒錯,可是Apache沒有設定權限的限制,到底是怎麼回事?原來是Selinux的安全設定的關係.
以下Browser的錯誤訊息
Forbidden
You don't have permission to access /plog/wizard.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.0.52 (Fedora) Server at 192.168.1.199 Port 80
以下是解決方法
最快的當然是停掉Selinux,安全一點就是用chcon改檔案的屬性,詳如連結:
http://fedora.redhat.com/docs/selinux-faq-fc3/index.html#using-s-c-securitylevel
以下Browser的錯誤訊息
Forbidden
You don't have permission to access /plog/wizard.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.0.52 (Fedora) Server at 192.168.1.199 Port 80
以下是解決方法
最快的當然是停掉Selinux,安全一點就是用chcon改檔案的屬性,詳如連結:
http://fedora.redhat.com/docs/selinux-faq-fc3/index.html#using-s-c-securitylevel
沒有留言:
張貼留言