Hello
I'm using the latest version of symfony (cheked out from svn) on a LAMP
environment.
And I'm facing some weird behavior with permissions on the
*%%app_name%%_prod.log*.
When this file doesn't exists :
* If I use a task that needs to put some log into this file : the
file is created with 777 permissions and owned by the user that
ran the task (It's not root) --> ok
* If somewhere in my web application, something needs to be logged
in this file:
o the file is created --> ok
o permissions are set to rw-r--r-- and file is owned by the
apache user : for me : www-data --> bad
Why it's bad? Because if now I need to run the task (with the non root
user), the task cannot write into the log file because it has no
permissions for that.
I tried to fix it with the 'permissions' task (former fix-perms) but I'm
still facing the issues. Permissions task wants to set 777 permissions
to the log directory and 666 to the files inside. But as I'm running it
with the non root user (I have no access to root user) the permissions
cannot be changed (I still have no right to do that because of www-data
and rw-r--r--).
I have no idea if I can run the task from www-data user but I don't
think that it's a good solution.
I also could run the permissions task as root but I have no access to
the root user and I think that I'm not the only one.
I also could run the task before accessing to my application from the
web but I still don't think that it's a good solution.
Questions are :
* Is symfony already trying to set 777 permissions to log files at
their creation?
* If it's the case, does anyone have any idea why the permissions
setting fails with me?
:-)
Nicolas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---