Please provide a valid cache path

前端 未结 20 802
一生所求
一生所求 2020-12-12 12:15

I duplicated a working laravel app and renamed it to use for another app. I deleted the vendor folder and run the following commands again:

composer self-up         


        
相关标签:
20条回答
  • 2020-12-12 12:41

    Please run in terminal,

       sudo mkdir storage/framework
       sudo mkdir storage/framework/sessions
       sudo mkdir storage/framework/views
       sudo mkdir storage/framework/cache
       sudo mkdir storage/framework/cache/data
    

    Now you have to change permission,

       sudo chmod -R 777 storage
    
    0 讨论(0)
  • 2020-12-12 12:44

    Try the following:

    create these folders under storage/framework:

    • sessions
    • views
    • cache

    Now it should work

    0 讨论(0)
  • 2020-12-12 12:44

    Ensure the below folders in storage directory:

    • logs
    • framework
    • framework/cache
    • framework/cache/data
    • framework/sessions
    • framework/testing
    • framework/views

    Below is a command-line snippet that does for you

    cd storage
    mkdir logs
    mkdir framework
    mkdir framework/cache && framework/cache/data
    mkdir framework/sessions
    mkdir framework/testing
    mkdir framework/views
    chgrp -R www-data ../storage
    chown -R www-data ../storage
    
    0 讨论(0)
  • 2020-12-12 12:45

    Error :'Please provide a valid cache path.' error.

    If these type error comes then the solution given below :-

    please create data folder inside storage/framework/cache

    0 讨论(0)
  • 2020-12-12 12:47

    May be the storage folder doesn't have the app and framework folder and necessary permission. Inside framework folder it contains cache, sessions, testing and views. use following command this will works.

    Use command line to go to your project root: 
    cd {your_project_root_directory}
    Now copy past this command as it is: 
    cd storage && mkdir app && cd app && mkdir public && cd ../ && mkdir framework && cd framework && mkdir cache && mkdir sessions && mkdir testing && mkdir views && cd ../../ && sudo chmod -R 777 storage/
    

    I hope this will solve your use.

    0 讨论(0)
  • 2020-12-12 12:49

    You need to create folders inside "framework". Please Follow these steps:

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

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

    chmod -R 775 framework
    chown -R www-data:www-data framework
    
    0 讨论(0)
提交回复
热议问题