Laravel permission denied or 500 internal error

L

Directories within the storage and the bootstrap/cachedirectories should be writable by your web server or Laravel will not run and throw permission error.

Sometimes this also creates 500 internal error.

Try this

php artisan cache:clear

sudo chmod -R 777 storage
sudo chmod -R 777 bootstrap/cache

composer dump-autoload

About the author

Imran Pollob

Learn => Practice => Implement => Repeat

Add comment

Categories

Imran Pollob

Learn => Practice => Implement => Repeat

Get in touch