Php+nginx Configuring Permissions issues (13:permission denied)

Source: Internet
Author: User
PS View Nginx Data:
_www 508 0.0 0.0 2461508 1320?? S 10:46 pm 0:00.00 nginx:worker Process
_www 507 0.0 0.0 2452292 952?? S 10:46 pm 0:00.80 nginx:worker Process
Root 506 0.0 0.0 2442864 348?? Ss 10:46 pm 0:00.00 nginx:master Process Nginx

My Documents directory is:/users/abner/documents/work/code/ququ/ms
After the NGINX,PHP-FPM is configured, the browser accesses: File not found.
To view logs:
2014/07/01 23:42:45 [Crit] 508#0: *9 stat () "/users/abner/documents/work/code/ququ/ms/" failed (13:permission denied), c lient:127.0.0.1, server:a.ququ.com, Request: "get/http/1.1", Host: "A.ququ.com"
2014/07/01 23:42:45 [ERROR] 508#0: *9 FastCGI sent in stderr: ' Primary script unknown ' while reading response headers from Upstream, client:127.0.0.1, server:a.ququ.com, Request: "get/http/1.1", Upstream: "fastcgi://127.0.0.1:9000", Host: "A . ququ.com "

Check the directory permissions: 704172 drwxr-xr-x 9 Abner Staff 306 6 14:54 MS
755, according to reason is can read data ah.

But how all is the file not found, also invites the great God guidance, thanks

Reply content:

PS View Nginx Data:
_www 508 0.0 0.0 2461508 1320?? S 10:46 pm 0:00.00 nginx:worker Process
_www 507 0.0 0.0 2452292 952?? S 10:46 pm 0:00.80 nginx:worker Process
Root 506 0.0 0.0 2442864 348?? Ss 10:46 pm 0:00.00 nginx:master Process Nginx

My Documents directory is:/users/abner/documents/work/code/ququ/ms
After the NGINX,PHP-FPM is configured, the browser accesses: File not found.
To view logs:
2014/07/01 23:42:45 [Crit] 508#0: *9 stat () "/users/abner/documents/work/code/ququ/ms/" failed (13:permission denied), c lient:127.0.0.1, server:a.ququ.com, Request: "get/http/1.1", Host: "A.ququ.com"
2014/07/01 23:42:45 [ERROR] 508#0: *9 FastCGI sent in stderr: ' Primary script unknown ' while reading response headers from Upstream, client:127.0.0.1, server:a.ququ.com, Request: "get/http/1.1", Upstream: "fastcgi://127.0.0.1:9000", Host: "A . ququ.com "

Check the directory permissions: 704172 drwxr-xr-x 9 Abner Staff 306 6 14:54 MS
755, according to reason is can read data ah.

But how all is the file not found, also invites the great God guidance, thanks

/users/abner/documents/work/code/ququ/ms
These paths have to be layered to see if each layer has permissions, not just the last directory

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.