boyjarv's avatar

permission error on Laravel.log file

Please help, I get the following error when going to certain endpoints in my API

The stream or file "/var/www/vhosts/website.com/httpdocs/moapi/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

0 likes
3 replies
boyjarv's avatar

I changed it to 777 pulled the repo and it fixed it

Snapey's avatar

noone else can look in your file system and check ownership of the files.

delete the log file, then cause an error and check who owns the newly created log file

Please or to participate in this conversation.