Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel Error: Please provide a valid cache path

Tags:

php

laravel

I cloned a Laravel 5.2 project.

When I execute composer install, I got the error:

  [InvalidArgumentException]
  Please provide a valid cache path. 

Theses folders are exists:

storage/app
storage/framework
storage/logs

bootstrap/cache

and its all 777.

How can i fixed this error!

like image 293
steve Avatar asked Aug 13 '16 10:08

steve


3 Answers

Run these commands in your terminal.

cd storage/
mkdir -p framework/{sessions,views,cache}


chmod -R 775 framework
chown -R www-data:www-data framework

Corrected: The folder name 'session' to 'sessions'. The username can be 'apache'. You may also need to create the data folder within storage/framework/cache.

like image 179
Sohail Ahmed Avatar answered Oct 29 '22 13:10

Sohail Ahmed


I fixed it.

Create these folders under storage/framework:

sessions
views
cache

And also you can use this command to install:

sudo composer install

Now its worked!

like image 36
steve Avatar answered Oct 29 '22 13:10

steve


Try the following:

create these folders under storage/framework:

  • sessions
  • views
  • cache

Now it should work

like image 25
OmidDarvishi Avatar answered Oct 29 '22 15:10

OmidDarvishi