
sudo chmod -R ug+w storage
sudo chmod -R ug+w bootstrap/cache

sudo chmod g+s storage
sudo chmod g+s bootstrap/cache

sudo setfacl -R -dm u:www-data:rwx storage
sudo setfacl -R -m u:www-data:rwx storage
sudo chmod -R g+w storage