nginx + PHP-FPM = “permission denied” error 13 in nginx log; configuration mistake?

出至:http://serverfault.com/questions/170192/nginx-php-fpm-permission-denied-error-13-in-nginx-log-configuration-mista

因為新建立的目錄無法讓 nginx 服務進入到該目錄(沒有[x]的權限屬性),所以會找不到指定路徑的檔案(在新建目錄下的檔案)。雖然我確定這些檔案路徑是存在的,但網頁服務卻無法取得檔案。

解決方法:將新建立的每一層目錄都設定能讓nginx服務可以進入,nginx就不會再找不到檔案了。

You need to ensure you have +x on all of the directories in the path leading to the site’s root – so /home, /home/noisepages and /home/noisepages/www

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s