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

Tags

Share this article

Leave a Reply

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

Scroll to Top