the ../ means it's probably not getting the write path. Have you set this anywhere or not cleared cache?
There is no existing directory at ".../storage/logs" and its not buildable: Permission denied
whats up guys ! , i do have some weird issue , project works fine on localhost but once i upload it on server its just gives me that err ,
i have been giving the storage folder 777 Permissions trying to fix the issue but none happen , what would you guys advice me to do !
the err am getting is
"/Users/mohamedsaed/Desktop/WORK/0Php/nutflix/storage/logs"
which is pointing out to my localhost , i thought that the log file are writeable and the server will over right it auto ,
and nope i haven't set this anywhere , but yeah i cleared the cash before uploading
The path is probably cached somewhere then. How did you upload your app files to the server?
huh i cleared the cache more than once , i uploaded with old school FTP really thankful helping me
@mased Yeah doing that way is bound to be cached. Did you do upload the vendor or storage folder via FTP?
@bashy yes i did i uploaded both of them via FTP
Do you use apache, have you made apache the owner of the project? and restarted apache? and does your server use Selinux?
@davb i do use shared host , cant restart apache or some , but i have did deployed more than one laravel app on it and its works just fine i really don't know why i have such an err
Hi! I had this problem and cleared it up by running:
php artisan route:clear
php artisan config:clear
php artisan cache:clear
Not sure which one actually did it, but see if any or all help you.
@thelibrariancat They already said they cleared the cache :P
i cleared the cache more than once
@bashy Yes, I saw that. Just clearing the cache didn't work for me, either, but something about that combination did.
@thelibrariancat All of those are caches of different areas. When I mean clear cache, I meant all of those.
@bashy - Since OP didn't specify exactly which command or commands he ran (could have just done a cache:clear or something), it can't hurt to clarify. OP, if you've already done all of those, sorry.
so the issue got fixed when i cleared the config cache
@thelibrariancat OK well they hadn't :P
@bashy Hahaha! I'm just glad it's an easy fix. Hope y'all have a good week.
@mased hi Mashed, i'm just getting the same error .. could u show me how can i clear the config cache.. it's in laravel or OS ? thanks i used "php artisan cache:clear" but i'm still getting "There is no existing directory at "/var/www/test_indo/storage/logs" and its not buildable: Permission denied"
just clear cache, it will work like charm..
@THELIBRARIANCAT - Thanks, this helped me too
@thelibrariancatThis helped. Thank You!
@THELIBRARIANCAT - this actually worked for me i think this should be marked as the best answer Thanks.
clearing config cache has solved my problem my local env is : Homestead . Nginx
run : php artisan config:clear
Did you all run that command local and then deploy again? Since running the command on the server doesn't work either for me.. It returns that same error we started with
I tried the three commands but the last one does not work at home it puts me In app.php line 235: syntax error, unexpected ','
Delete Files in bootstrap/config then do this command php artisan optmize:clear
This sequence (route, config, then cache) worked for me!
Thanks @thelibrariancat
Got the answer from here:
I have the error: "There is no existing directory at "/home/username/Desktop/project-name/storage/logs" and its not buildable: Permission denied",
and The artisan optimize:clear solved my issue(by clearing every cache), but i want to cache my application configuration, and other things for optimization.
How can i really solve this problem?
artisan optimize:clear and clear bootstrap/cache folder helps me
If u have confirmed that the path does exist, you should run " php artisan optimize:clear " in the work directory, fixed it for me
INSTALL PHP-DOM MY OS IS FEDORA 40 AND I ENCOUNTERED SAME ISSUE BUT WHEN I INSTALLED PHP-DOM IT SOLVED MY ISSUE sudo dnf install php-dom
Please or to participate in this conversation.