user3817533
user3817533

Reputation: 659

Error in exception handler: The stream or file "/var/www/app/storage/logs/laravel.log" could not be opened: failed to open stream:

Error in exception handler: The stream or file "/var/www/app/storage/logs/laravel.log" could not be opened: failed to open stream: Read-only file system in /var/www/bootstrap/compiled.php:8699

I've been working on a Laravel project for a few weeks and all of the sudden this error appears. What's causing this?

I've already run:

chmod 777 app/storage

I ran it before beginning on the project and ran it again and it doesn't make any difference.

What is the problem here?

Upvotes: 0

Views: 4216

Answers (1)

Shayan Ahmad
Shayan Ahmad

Reputation: 1155

While you are in it's directory, just do this:

sudo chmod -R 777 vendor storage
echo "umask 000" | sudo tee -a /etc/resolv.conf
sudo service apache2 restart

Upvotes: 1

Related Questions