How to set up file permissions for Laravel?

前端 未结 15 2413
忘了有多久
忘了有多久 2020-11-22 00:08

I\'m using Apache Web Server that has the owner set to _www:_www. I never know what is the best practice with file permissions, for example when I create new La

15条回答
  •  Happy的楠姐
    2020-11-22 00:38

    Change the permissions for your project folder to enable read/write/exec for any user within the group owning the directory (which in your case is _www):

    chmod -R 775 /path/to/your/project
    

    Then add your OS X username to the _www group to allow it access to the directory:

    sudo dseditgroup -o edit -a yourusername -t user _www
    

提交回复
热议问题