fbpx

How to resolve /bootstrap/cache directory must be present and writable and Please provide a valid cache path errors whilst doing composer install for a Laravel Application

Background

On some legacy versions of Laravel, when you deploy your project, some default directories might be missing causing the application to not run.

The error produced will be similar to the next below:

/bootstrap/cache directory must be present and writable and Please provide a valid cache path

Run the following commands from the root of  your Laravel application:

mkdir bootstrap/cache
mkdir storage/framework
mkdir storage/framework/cache
mkdir storage/framework/views
mkdir storage/framework/sessions

See Also

How to resolve /bootstrap/cache directory must be present and writable and Please provide a valid cache path errors whilst doing composer install for a Laravel Application

Reference
https://stackoverflow.com/questions/38483837/please-provide-a-valid-cache-path

Share this article

Share on facebook
Share on twitter
Share on linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top