#After updating to Laravel 9.0 I do not get error logs anymore
36 messages · Page 1 of 1 (latest)
hey
First thing: check the file permissions on the storage directory
Next thing: try and pull up the webserver logs to see if it's writing any errors to there
drwxrwxr-x 5 user user 4096 Nov 15 17:51 storage
-rw-rw-r-- 1 user user 3502 Jan 31 17:14 laravel-2023-01-31.log
-rw-rw-r-- 1 user user 45 Jan 31 17:04 laravel.log
This is all correct I believe
I tried logging directly through tinker also and that actually worked
The user is forge here, this was an old forge server
looks like maybe a mismatch between the user that runs your web app and the user that owns the files?
-rw-rw-r-- 1 user user <- is that what it's actually saying?
Yeah well the user is forge
-rw-rw-r-- 1 forge forge
sudo chmod -R 777 storage/
Should i just run that maybe?
yeah worth a try, can't remember if 777 is right, 775 i think
Okay let's give it a shot
Sadly that didn't work either:
Failed to open stream: Permission denied in /home/forge/api.myapp.com/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:190
Haha, oh this was you who shared this
i think nginx/php-fpm runs as the www-data user
so try
sudo chgrp -R www-data storage
sudo chmod -R ug+rwx storage
Yesss, you're my hero
Thank you so much @cursive hemlock
Have to write those down
not without knowing all the steps? did you upgrade laravel on your server, or on your local machine then deploy to forge?