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

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Closed - No Solution] How Should I Set The Permissions On Linux To My Yii Can Create Folders? The Yiiframework can't create the runtime and assets folders Rate Topic: -----

#1 User is offline   blaces 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 80
  • Joined: 06-April 12

Posted 28 September 2013 - 07:59 AM

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...
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users