How to set up file permissions for Laravel?

前端 未结 15 2405
忘了有多久
忘了有多久 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条回答
  •  孤城傲影
    2020-11-22 00:20

    I found an even better solution to this. Its caused because php is running as another user by default.

    so to fix this do

    sudo nano /etc/php/7.0/fpm/pool.d/www.conf

    then edit the user = "put user that owns the directories" group = "put user that owns the directories"

    then:

    sudo systemctl reload php7.0-fpm

提交回复
热议问题