Php + nginx permission configuration (13: Permissiondenied)

Source: Internet
Author: User
Ps: _ www5080.0020.24615081320 ?? S10: 46. 00 nginx: workerprocess_www5070.004152452292952 ?? S10: 46. 80 nginx: workerprocessroot5060.0020.2442864348 ?... Ps:
_ Www 508 0.0 0.0 2461508 1320 ?? S pm. 00 nginx: worker process
_ Www 507 0.0 0.0 2452292 952 ?? S pm. 80 nginx: worker process
Root 506 0.0 0.0 2442864 348 ?? Ss pm. 00 nginx: master process nginx

My document directory is:/Users/Abner/Documents/work/code/ququ/MS
After nginx and php-fpm are configured, the browser accesses: File not found.
View logs:
23:42:45 [crit] 508 #0: * 9 stat () "/Users/Abner/Documents/work/code/ququ/MS/" failed (13: Permission denied ), client: Wagner. 0.0.1, server: a.ququ.com, request: "GET/HTTP/1.1", host: "a.ququ.com"
23:42:45 [error] 508 #0: * 9 FastCGI sent in stderr: "Primary script unknown" while reading response header 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"

Directory permission checked: 704172 drwxr-xr-x 9 Abner staff 306 6 30 MS
755. In principle, data can be read.

But all of them are File not found. Thank you for your guidance.

Reply content:

Ps:
_ Www 508 0.0 0.0 2461508 1320 ?? S pm. 00 nginx: worker process
_ Www 507 0.0 0.0 2452292 952 ?? S pm. 80 nginx: worker process
Root 506 0.0 0.0 2442864 348 ?? Ss pm. 00 nginx: master process nginx

My document directory is:/Users/Abner/Documents/work/code/ququ/MS
After nginx and php-fpm are configured, the browser accesses: File not found.
View logs:
23:42:45 [crit] 508 #0: * 9 stat () "/Users/Abner/Documents/work/code/ququ/MS/" failed (13: Permission denied ), client: Wagner. 0.0.1, server: a.ququ.com, request: "GET/HTTP/1.1", host: "a.ququ.com"
23:42:45 [error] 508 #0: * 9 FastCGI sent in stderr: "Primary script unknown" while reading response header 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"

Directory permission checked: 704172 drwxr-xr-x 9 Abner staff 306 6 30 MS
755. In principle, data can be read.

But all of them are File not found. Thank you for your guidance.

/Users/Abner/Documents/work/code/ququ/MS
These paths must be viewed layer by layer to see if each layer has permissions, not just the last directory.

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.