當安裝好LAMP(linux + apache + mysql + php)時,
網頁出現
網頁出現
Forbidden
You don't have permission to access /~web on this server.
You don't have permission to access /~web on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
解決方向:
1. 檢查apache 設定檔 httpd.conf (centOS 套件路徑為 /etc/http/conf/httpd.conf) 之內容是否為
〈Directory /〉
Options FollowSymLinks
AllowOverride None
Order deny, allow
Allow from all
〈/Directory〉
2. 下個指令修改其安全屬性 chcon -R -t httpd_user_content_t 網頁放置資料夾/
留言
張貼留言