Why other files under the shared folder are accessible but not accessible to PHP files

Source: Internet
Author: User

The beginning of the problem is the VirtualBox in the shared folder under the project can not run, the reason is the pagoda under Nginx User and user group by default is www and www need to change to www vboxsf (because the directory is automatically mounted as/media/sf_xxx, The default user and user group under this folder is root/vboxsf, so there is no problem with the project under Wwwroot. )1.nginx use the specified user. User group Run

Vi/usr/local/nginx/conf/nginx.conf

At the beginning there is a

#user nobody;

Delete the nobody and change the user name [space] user group, for example

User www vboxsf;

This is the Nginx user of the Web group to run Nginx.

After the changes are finished

/usr/local/nginx/sbin/nginx-s Reload

Re-start Nginx

Original: Http://www.codeweblog.com/nginx%E4%BD%BF%E7%94%A8%E6%8C%87%E5%AE%9A%E7%9A%84%E7%94%A8%E6%88%B7-%E7%94%A8%E6 %88%b7%e7%bb%84%e8%bf%90%e8%a1%8c/

2. The same method input Ps-aux | grep php-fpm found PHP-FPM configuration file modified to vboxsf, but it seems to be not working so simply pull directly to wwwroot each boot is manually mounted, command mount-t vboxsf wwwpro/www/wwwroot/, If you encounter any protocal error indicates that your folder name and mount name are duplicated, you can change it.

Why other files under the shared folder are accessible but not accessible to PHP files

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.