With the YII framework, the creation of a directory when a permissions problem, Google did not find the answer. See a Netizen's solution is very good (http://www.getyii.com/topic/153), but still failed to solve, ask the great God!!!
Reply content:
With the YII framework, the creation of a directory when a permissions problem, Google did not find the answer. See a Netizen's solution is very good (http://www.getyii.com/topic/153), but still failed to solve, ask the great God!!!
You vagrant in the virtual machine to modify the permissions of the directory is no use, you want to modify the permissions of the synchronization directory in the configuration file, and then sync in, the permissions have changed, the following is my profile directory and permissions:
config.vm.synced_folder "wwwroot", "/home/wwwroot",create: true, owner:"www", group: "www"
If you are using Nginx, make sure that the users and groups in your configuration file are www, as follows
User www www;
Assuming you are using PHP-FPM, make sure that the users and groups in your PHP-FPM configuration file are www, as follows
Listen.owner = www
Listen.group = www