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

后端 未结 8 790
攒了一身酷
攒了一身酷 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:36

    Spent a whole day for solving this and this command simply solved my problem.

    If your permissions are 777 for Laravel App folder and you still get this error, it's because SEliux has blocked it. You can easily unblock your application's folder using this command:

    su -c "chcon -R -h -t httpd_sys_script_rw_t /usr/share/nginx/YOUR_LARAVEL_APP/"

    That's it!

    BTW never disable SElinux: http://stopdisablingselinux.com/

提交回复
热议问题