[Closed - No Solution] How Should I Set The Permissions On Linux To My Yii Can Create Folders?

Hi,

My ubuntu can’t be open to the webprocess create new folders. When I use GitHub.

Ubuntu 13.04 64bit

folders: /var/www or /var/www/myapp

I used this terminal commands:


sudo adduser <username> www-data

sudo chown -R www-data:www-data /var/www

sudo chmod -R g+rw /var/www

This commands is ok, if my Yii doesn’t want to create new folders in the /var/www/myapp direction. So when I don’t try use the Git. Because of the git (delete the runtime and assets folders)

I tried the above 2 terminal command with the /var/www/myapp path, but I’ve still got the problem.

So my problem is that, I can’t set the permission on my /var/www or /var/www/myapp folders, how the webprocess can create folders! At first time okay, the above terminal commands work well, but after my yii try create this two folders, it hasn’t got any permission to create folders in /var/www/myapp

If I don’t use the git, I don’t have problems…