Please provide a Valid cache path

Asked

Viewed 5,730 times

3

I just made a git clone (copy) a newly made Laravel application in the company where I work.

I surrounded the composer update and artisan key generate to make initial settings as well as edited the file .env to configure the database.

Everything is perfectly configured, but an Exception appears when running the application:

Please provide a Valid cache path

Someone knows how to fix this?

1 answer

5


As stated in this answer, tries to create directories, in Storage/framework:

  • Sessions
  • views
  • cache

Maybe they are missing.

This, still feels that you can execute the command:

composer install
  • The composer install was already run. It was really just missing folders problem.

  • Great @Wallacemaxters, glad it’s solved, these problems are really boring because a person has no idea what it might be. Let’s hear it for Google in these cases

  • 1

    Do not use sudo to install the Composer dependencies, it can (and possibly will) create permission problems. Instead, it is preferable to fix user permissions to be able to create directories and thus let the framework create the necessary directories with the current user.

  • @Gui, you’re absolutely right, I edited the answer

Browser other questions tagged

You are not signed in. Login or sign up in order to post.