I try yii framework and for use gii tool - protected folder should have permission 777. In first place i run:
chown myuser:myuser protected;
But i fail to use gii tool soo, i have to run command():
chmod 777 protected;
Is their another way to do it ?(like which user run gii tool that can be joint to the myuser group)
Thanks
Gii tool in Yii creates new files in protected directory. that means apache and php needs to write in protected dir. have you tried with 755. it should work.
The trick is to only use Gii on your development server (localhost) - so that you don't have to reset permissions on your production server.
Edit
Sorry gues, i think i missed something
By default for security reasons, Gii is configured to be accessible only on localhost. If we want to make it accessible on other trustable computers, we can configure the [GiiModule::ipFilters] property as shown in the code below.
Check Special Topics: Automating code generation for details