There is no existing directory at /storage/logs and its not buildable: Permission denied


Please try

php artisan route:clear

php artisan config:clear

php artisan cache:clear

Note: In case you are a Homestead & VirtualBox user, please be sure that your VirtualBox is up to date.

It helped in this thread at laracasts

Aditya Chauhan

Clear the cache and config, then deploy to the live server.

If you've already uploaded to the live server, then you have to follow these steps:

  1. Delete bootstrap/cache/config.php
  2. Delete all log files in storage/logs.

You don't need to add any permission on the storage file.

  • The main problem here is in the compiled file, and due to which laravel try to show an error.
  • By default in laravel, storage file not having permission to show in the console (error shows from the error.log file).
  • So the thing you need to fix is to fix compile file. which can be done thought this single command

This command will clear all your cache

- Compiled views
- Application cache
- Route cache
- Configuration cache

Use this

php artisan optimize:clear

go to your vagrant

then run

vagrant ssh

php artisan config:cache

If you are using homestead (vagrant) in Laravel then follow the steps @Farid shahidi provided

vagrant ssh
cd /home/vagrant/code <-- your file usually resides here; see your Homestead.yaml configuration
php artisan config:cache

You need to run this command from the terminal.

php artisan config:clear
php artisan config:cache

Make sure you have storage/log folder and give 777 permission to that folder.

Eliecer Narvaez

Please run the below commands:

php artisan route:clear
php artisan config:clear
php artisan cache:clear

This one worked for me in case your project is located within /var/www/html/

sudo chmod -Rf 0777 /var/www/html/{project-name}/bootstrap/cache sudo chmod -Rf 0777 /var/www/html/{project-name}/storage

may help someone.

I faced this problem after move my project from dev server to production server on dev server i had D drive but on production server i don't have D drive.

after change the path in below file. it worked for me.


check the path in this