services.json failed to open stream: Permission denied in Laravel 4

后端 未结 8 795
攒了一身酷
攒了一身酷 2020-12-05 13:54

I was playing around with a working Laravel 4 installation and moved everything into a sub folder. Then I decided to not do that and I moved it all back (all via the command

8条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 14:27

    As the problem is related to permissions try re-giving the right permissions to app/storage and all its sub-directories and file.

    You can do so from the root path of your Laravel app typing:

    chmod -Rvc 777 app/storage
    

    If for some reason this doesn't work, try:

    find app/storage -type d -exec chmod -vc 777 {} \;
    find app/storage -type f -exec chmod -vc 777 {} \;
    

提交回复
热议问题