Mac OS uses vagrant for permissions issues

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

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

  2. If you are using Nginx, make sure that the users and groups in your configuration file are www, as follows

    User www www;

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

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