There is no existing directory at /storage/logs and its not buildable: Permission denied
I have a problem with my Laravel deployment on a OVH web server.
After made
composer update
php artisan cache:clear
php artisan route:clear
php artisan dump-autoload
I have this answer:There is no existing directory at /storage/logs and its not buildable: Permission denied
I put all the files on 777 chmod but I have always this answer.
Solution 1:
Please try the following commands
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
Solution 2:
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:
- Delete
bootstrap/cache/config.php
- Delete all log files in
storage/logs
.
Solution 3:
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
Solution 4:
After changing local conf i got the same error over and over, try this, probably will help.
rm bootstrap/cache/config.php
and then
php artisan cache:clear
depending on your scenario, reloading auto-loader file can solve your issue, for that use :
composer dump-autoload
or sometimes just try :
composer install
this do the two the commands listed above.
Solution 5:
go to your vagrant
then run
vagrant ssh
php artisan config:cache