Permission issues occur when macos uses vagrant.

Source: Internet
Author: User
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 !!!

  1. 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"

  2. If you are using nginx, make sure that all users and groups in your configuration file are www, as shown below:

    User www;

  3. 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

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.