How to set up file permissions for Laravel?

前端 未结 15 2158
忘了有多久
忘了有多久 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:27

    As posted already

    All you need to do is to give ownership of the folders to Apache :

    but I added -R for chown command: sudo chown -R www-data:www-data /path/to/your/project/vendor sudo chown -R www-data:www-data /path/to/your/project/storage

提交回复
热议问题