skip to Main Content

enter image description herei’m using centos to host my laravel application,
when i upload the project first time using git, it will be cached, and when i change any file, changes doesn’t apply, i tried all artisan commands that clear cache in laravel but didn’t fix
the only way is to change the root directory of the application after each single change, is centos caching or nginx or laravel or other software in the server or the browser? even i cleared every thing in public/index.php and put echo 'foo'; and still got old cached data

screenshot of my nginx config file
screenshot of my nginx config file

2

Answers


  1. Chosen as BEST ANSWER

    i tried systemctl restart php-fpm now every thing worked as expected and all changes applied thank you a lot i appreciate your help


  2. This is possibly directory permission issue you need to grant storage and bootstrap directory 777 permission level. You need to run the following command on the root folder of your app

    chmod -R 777 storage 
    

    and

    chmod -R 777 bootstrap
    

    Then try to effect your changes.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search