did you restart your Apache after changing all the permission ?
Jan 17, 2023
11
Level 1
Permission Denied after change to the correct permission
Hi, I got "ERROR 500: Internal Server Error "with no error in laravel log. I checked apache logs i got this
[Tue Jan 17 15:07:52.609639 2023] [php:error] [pid 39218] [client 127.0.0.1:xxx] PHP Fatal error: Uncaught ErrorException: file_put_contents(/var/www/html/storage/framework/views/31194b376a867d7e5a56653be65b2bc7a5c4040b.php): Failed to open stream: Permission denied in /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesy
stem.php:xxx\nStack trace:\n#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\Foundation\Bootstrap\Hand
leExceptions->handleError()\n#1 [internal function]:
i set permission for storrage folder
sudo chmod -R ugo+rw storage
sudo chmod -R 755 storage
sudo chown -R user:www-data storage
and set owner & group for html folder
sudo chown -R user:www-data html
and var/www
udo chown -R www-data:www-data /var/www
can you help
Please or to participate in this conversation.