Error: Please provide a valid cache path. Please help Hey,
When i deploy my laravel app it gives this error in the browser on the website
InvalidArgumentException in Compiler.php line 36:
Please provide a valid cache path.
How can i fix this?
Hello,
I had the same error this week.
That was a file permissions problem with the storage folder.
I solved this by doing
chown -R www-data storage
What kind of OS do you use ?
Did you check application log and webserver log ?
Someone has the same issue as you.
You should try to manually create missing folder:
storage
storage/app
storage/app/.gitignore
storage/app/public
storage/app/public/.gitignore
storage/framework
storage/framework/.gitignore
storage/framework/cache
storage/framework/cache/.gitignore
storage/framework/sessions
storage/framework/sessions/.gitignore
storage/framework/testing
storage/framework/testing/.gitignore
storage/framework/views
storage/framework/views/.gitignore
storage/logs
storage/logs/.gitignore
@cyril.robillard Cool! Your solution worked for me. I tried manually creating missing folders. Thank you very much.
Good luck
you just use another Laravel projects "Storage" folder and replace it to your projects "Storage" folder and Run
composer update and there you resolve.
@RazeAbbas You waited 6 years for this? You win the daily archaeologist award
@RazeAbbas Thank you so much for posting this regardless. It just saved me from messing up a production site. You're too kind!
Please sign in or create an account to participate in this conversation.