I would only give write permissions by the user running php (most of the
times www-data) to cache, log and the upload directory. All else should be
read only and preferable have another user, like the deployer (nathan in my
case).

Also it's considered very bad practice to give a file/directory 777
permissions, most of the time it's sufficient to chgrp the needed files and
do chmod g+rw.

Nathan

--
nathan @ <http://twitter.com/nathan_gs> nathan.gs
<http://nathan.gs/?utm_source=mailing-list&utm_medium=email&utm_campaign=blog>


On Thu, Jan 7, 2010 at 10:32 PM, Stéphane <stephane.er...@gmail.com> wrote:

> Apache and Php needs write right to cache dir, this is why it is chmod'ed
> 777 using project:permissions task.
> You probably want apache and php read rights to read .php and other stuff,
> and need them write rights for cache and other dynamic-related folders
> (upload, etc).
>
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
>
> On Thu, Jan 7, 2010 at 9:47 PM, Jacob Coby <jc...@portallabs.com> wrote:
>
>> I sometimes need to use sudo when clearing the cache or running fix-perms
>> since apache usually runs as a different user than the owner of the
>> directory.  For the normal generator related stuff, no.
>>
>> On Jan 7, 2010, at 3:40 PM, Alexandru-Emil Lupu wrote:
>>
>> > not quite.
>> >
>> > Chown the sf_root folder to match your user and pass.
>> >
>> > Alecs
>> >
>> > On Thu, Jan 7, 2010 at 10:09 PM, Javier Garcia <tirengar...@gmail.com>
>> wrote:
>> > Hi,
>> >
>> > im wondering if is there any good reason to execute symfony with sudo.
>> >
>> > Javi
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> > To post to this group, send email to symfony-us...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
>> .
>> > For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en.
>> >
>> >
>> >
>> >
>> >
>> >
>> > --
>> > Have a nice day!
>> > Alecs
>> >
>> > As programmers create bigger & better idiot proof programs, so the
>> universe creates bigger & better idiots!
>> > I am on web:  http://www.alecslupu.ro/
>> > I am on twitter: http://twitter.com/alecslupu
>> > I am on linkedIn: http://www.linkedin.com/in/alecslupu
>> > Tel: (+4)0748.543.798
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> > To post to this group, send email to symfony-us...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
>> .
>> > For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en.
>>
>> --
>> Jacob Coby
>>
>>
>>
>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "symfony users" group.
>> To post to this group, send email to symfony-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en.
>>
>>
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.

Reply via email to