The yii framework is used. The permission problem occurs when the directory is created. google does not find the answer. The solution provided by a netizen is quite good (www. getyii. comtopic153), but it still cannot be solved. Thank you !!! The yii framework is used. The permission problem occurs when the directory is created. google does not find the answer. See a netizen's solution is quite good (http://www.getyii.com/topic/153), but still failed to solve, please God !!!
Reply content:
The yii framework is used. The permission problem occurs when the directory is created. google does not find the answer. See a netizen's solution is quite good (http://www.getyii.com/topic/153), but still failed to solve, please God !!!
It is useless for you to modify the directory permission in the vagrant virtual machine. You need to modify the permission of the synchronization directory in the configuration file. After the permission is synchronized, the permission is changed, the following are my configuration file directories and permissions:
Config. vm. synced_folder "wwwroot", "/home/wwwroot", create: true, owner: "www", group: "www"
If you are using nginx, make sure that all users and groups in your configuration file are www, as shown below:
User www;
If you are using php-fpm, make sure that all users and groups in your php-fpm configuration file are www, as shown below:
Listen. owner = www
Listen. group = www