I'm trying to deploy a Yii application using capistrino 3. Sever is an EC2 ubuntu instance that comes with the ubuntu user by default. I added an ubuntu user to group www data and attempt to deploy using capistrino 3, but in older versions these runtime files pose some problem.
groups ubuntu ubuntu : ubuntu adm dialout cdrom floppy sudo audio dip www-data video plugdev netdev groups www-data www-data : www-data
Apache server created some files / folder as
drwxr-sr-x 2 www-data ubuntu 4096 Oct 12 15:23 CSS drwxr-sr-x 2 www-data ubuntu 4096 Oct 12 15:17 HTML
When I tried to deploy the new version, it says:
DEBUG[c9d0212b] rm: cannot remove '/var/www/html/zl/releases/20141012145437/frontend/runtime/CSS/4.5.0,24166bfe16a0cc6bd18d813b83121ef2eaf16545,1.ser': Permission denied
What could be the workaround? I added the ubuntu user to group www data, but the new files have owners of www data and the ubuntu group. I do not know how this has changed.
source share