Monday, October 24, 2022

[SOLVED] Giving a default permission for cache folder

Issue


The problem is when I clear caches in my Symfony project on production environment, I should type this command for giving right permissions to cache folder:
cd app/cache
sudo chmod -R a+w *
But is there any way to not typing these commands each time?


Solution

try this

sudo setfacl -dR -m u::rwX app/cache


Answered By - xurshid29
Answer Checked By - Robin (WPSolving Admin)