$ HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
$ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX cache log
$ sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX cache log
It looks like you're new here. If you want to get involved, click one of these buttons!