skip to Main Content

ErrorException (E_WARNING)
file_put_contents(/var/www/html/moha/storage/framework/sessions/rGlwXEnWZF6hnlZY9URsoioiFSjnDsHZyzpbJLiV):
failed to open stream: Permission denied

2

Answers


  1. Try this. This command allows you edit your file in without root permission.

    sudo chmod -R 777 /var/www/html/moha/storage/
    
    Login or Signup to reply.
  2. Your webserver (Apache, Nginx or other) should be able to write on the storage directory. Consider that www-data is the webserver user (default), at root of your project, run the following commands:

    sudo chown -R www-data. storage/

    sudo chmod -R 777 storage/

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search