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