Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eaglehdr's avatar

(Reviving) Please provide valid cache path

Sorry for reviving this old issue, i saw older posts too and tried to apply fixes but of no use. I recently got the same error with laravel v11.5.0 and with latest v11.41.0 when i tried cloning on a godaddy server. i have all folders created, folder permission are 775 and files have 644, but still composer install or any artisan command throws same error "Please provide valid cache path"

please note there is another folder in same public_html folder, which was running for past 6 months. and have no issue.

0 likes
3 replies
EveAT's avatar

Check a few things related to your Laravel installation:

  1. Ensure that Laravel's bootstrap/cache and storage directories are writable by the web server user. Try setting the permissions to 775 or 777 temporarily to check if it resolves the issue. Make sure that the owner is correct.

  2. Double-check if the .env is configured correctly. Ensure that CACHE_DRIVER=file

  3. Clear config cache

php artisan config:clear
php artisan cache:clear
  1. Try to re-install the dependencies
composer install --no-cache
composer dump-autoload
  1. Check the web server logs if there is something about the cache path
JussiMannisto's avatar

i have all folders created, folder permission are 775 and files have 644

Those are just the permissions. Who owns the files and directories? They should be owned by the web server user, e.g. www-data, because other users don't have the write permission.

Btw, those permissions are a bit inconsistent. 775 grants full permissions to the owner and the group, while 644 grants full permissions to the owner only.

eaglehdr's avatar

removing storage/framework/ and did

php artisan storage:link

did the trick. dont know why it did not work first time

Please or to participate in this conversation.