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

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

    If you're using CentOS7, follows these steps:

    1. Change app/storage directory ownership

      chown apache:apache app/storage
      
    2. Change app/storage permissions

      chmod -R 775 app/storage
      
    3. Prevent SELinux from blocking the app/storage directory

      su -c "chcon -R -h -t httpd_sys_script_rw_t [fullpath]/app/storage"
      

提交回复
热议问题