ErrorException (E_WARNING)
file_put_contents(/var/www/html/moha/storage/framework/sessions/rGlwXEnWZF6hnlZY9URsoioiFSjnDsHZyzpbJLiV):
failed to open stream: Permission denied
ErrorException (E_WARNING)
file_put_contents(/var/www/html/moha/storage/framework/sessions/rGlwXEnWZF6hnlZY9URsoioiFSjnDsHZyzpbJLiV):
failed to open stream: Permission denied
2
Answers
Try this. This command allows you edit your file in without root permission.
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/