skip to Main Content

I have deployed laravel app on a cpanel but I get this error when I try to access the app
The stream or file "/home2/../public_html/../../storage/logs/laravel.log" could not be opened: failed to open stream: Read-only file system.

Am unable to set the file permission on the cpanel.

Please does any one have a way I can go around this ? Thanks

2

Answers


  1. You need to grant read access to storage folder.

    chmod -R 775 storage
    
    Login or Signup to reply.
  2. you can use this command,
    its work for me!

    sudo chmod -R ugo+rw storage
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search