• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

Please provide a valid cache path – Laravel (Fixed)

Written by Rahul, Updated on September 12, 2019
General Articles error, Laravel

Today, during the deployment of an existing Laravel application on LAMP environment, I found the following error on the screen.

Please provide a valid cache path.

After more debugging and Google it, I found that the storage/framework directory is missing from deployment. Because the .gitignore file has an entry of storage/framework directory to prevent them from adding code to the git repository and this is normal.

Laravel - please provide a valid cache path.

Solution:

To solve this issue, you have to create “framework” folder inside the storage directory. Inside the “framework” directory create 3 more directories as “sessions, views and cache” as below:

/path/to/laravel/storage/framework/

  • sessions
  • views
  • cache

Using the Linux terminal, use the following commands to create the directory structure.

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

You also need to set permissions to allow Laravel to write data in this directory.

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

Share it!
Share on Facebook
Share on Twitter
Share on Reddit
Share on Tumblr
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Related Posts

  • How to Fix ‘/usr/bin/dirmngr’: No such file or directory

    October 20, 2019
  • How To Correctly Set the File Permissions in Laravel 5

    May 5, 2019
  • How to Check Laravel Version by CLI and File

    April 14, 2019
  • How To Install Laravel 5 on Debian 10 (Buster)

    March 22, 2019
  • How to Enable PHP errors to Display on Web Browser

    January 23, 2019

Leave a Reply

Cancel reply

Popular Posts

  • How to Install Python 3.8 on Ubuntu, Debian and LinuxMint
  • How to Restart Network Service on CentOS 8 or RHEL 8
  • How to Check IP Address on CentOS 8
  • How to Install Java 11/8 on Amazon Linux
  • How to Configure Static IP on CentOS 8 (CLI)
Copyright © 2013-2019 TecAdmin.net. All Rights Reserved. This site uses cookies. By using this website you agree with our term and services
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkNo
Revoke cookies