Hi,

You can always make directory in /var/www/UserName which belongs to user and
servers only php scripts, which should be read-only for apache and have a
directory /var/www/UserName/share, with mask 777 (or owned by www-data) for
files used by scripts.

On the other hand Symfony doesn't have to belong to www-data, so it can't be
modified by apache or ftp (which sometimes uses www-data as an account). The
only requirement is to make files readable for php/apache, and have write
permission for cache and log directories.

Regards,
Maciej Aleksandrowicz

2011/2/16 ereallstaff <ereallst...@gmail.com>

> Hi I have an annoying problem develoing application with netbeans
>
> I am on Ubuntu 10.10 and use netbeans 6.9 , installed from Ubuntu
> software center repository
>
> I know that applications Symonfy and php file should belong to
> www:data user and group, where www-data that is the default Apache
> user.
>
> But if all files belong to www-data using netbeans with normal user
> permissions, won't makes me modify them. Opening netbeans or any
> program with sudo or gksudo , could bring a lot of problem. Also
> Firefox opened in debug with sudo permission, makes it not function
> good anymore.
>
> A nice solution should be setting all files to NormalUser:www-data
> ( user and group I mean) . So you can modify them in local, and when
> they are uploaded by ftp to server, they go automatically with correct
> ownership.
>
> As a known problem of this, is sure that fopen php function, for
> example, won't open files, unless you set permission to group too
> ( 775 in total if I not go wrong  rwxrwxr-x on files)
>
> I want to ask you all if you face same problem, and how did you solved
> that.
>
> Thanks
> Giuseppe
>
> --
> 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 users" group.
> To post to this group, send email to symfony-users@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
>

-- 
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 users" group.
To post to this group, send email to symfony-users@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