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

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

    As I stated in my comment:

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

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

    This will chmod all directories and files in app/storage to 777.

    0 讨论(0)
  • 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"
      
    0 讨论(0)
提交回复
热议问题