Laravel 5.0 Permission on ubuntu

后端 未结 2 500
夕颜
夕颜 2021-01-25 21:08

Whenever i pull from git on my production server, which is azure vps, i have to give permission to my proejct directory, so that apache user can access it. Otherwise it says, pe

相关标签:
2条回答
  • 2021-01-25 22:01

    So, atlast i found a solution. What i really wanted was, whenever new file is created it should inherit all permissions from parent directory.

    sudo chmod g+s /projectDirectory

    0 讨论(0)
  • 2021-01-25 22:02

    You should execute this command in Ubuntu after installation:

    sudo chmod -R 777 storage
    

    This commands will set correct permissions on storage folder and everything inside it. Without this Laravel will not work.

    0 讨论(0)
提交回复
热议问题