On Wed, Jun 15, 2011 at 8:16 AM, ryan weaver <weaverr...@gmail.com> wrote:

> Is this really how it needs to be done? I've never really used `setfacl`,
> `chmod +a` or `umask`, but now these are a requirement to use Symfony. It
> doesn't sit well for me, and I'm hoping someone might have some other idea.
>
> Thanks!
>
>
Afaict, something along those lines will be a requirement, at least for
development machines where people are editing code as a "normal" user, and
serving out of the directory they're working in (and not having apache or
whatnot setup to serve out of that directory as their user).

Other solutions are to make the files owned by a group shared by apache and
yourself, make the files owned by a group shared by a special user for
apache and yourself, su to www-data (or whatever, also, not "su -" as such
users normally don't have login shells) to work on the code, do a deployment
type of thing instead of serving out of the directory you work in, have
apache run as the user you edit the files as in the virtualhost for this
file, use a lighter, meant-for-dev-use server in development that runs under
your user. Etc. There's a myriad of ways to accomplish a working dev-setup,
and they all have their ups and downs and potential for bikeshedding :)

Actually, that last option might be worth looking into. I'm not aware of
what's around for php, but adding a console job that fired up a webserver
hosting your project on 8080 running as the current user might be a good
idea (and i suppose it wouldn't have to be a php-based webserver, but that
would be ideal...). I may take a shot at making something like that later on
tonight, time willing.

On a prod machine, I would guess that the console jobs would be run rarely
if ever. Ideal setup for a prod machine has the same "well there's a whole
lot of possible ways to go about things" ... issue, if you want to call it
that.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to