On Mon, 22 Mar 2010, armyofda12monkeys wrote:
> So ran 'symfony fix-perms' today and didnt work. sys-admin prob locked
> down the box more.
> I get error messages like:
>
> >> chmod 666 cache/myapp/dev/config/modules_home_config_module.yml.php
> Warning: chmod(): Operation not permitted in /usr/local/lib/php/
> symfony/vendor/pake/pakeFunction.php on line 273 [symfony 1.0.21 hehe]
> >> chmod 666 log/myapp_dev.log
> Warning: chmod(): Operation not permitted in /usr/local/lib/php/
> symfony/vendor/pake/pakeFunction.php on line 273
>
> Now i try to run that chmod by itself standalone and realize I dont
> have rights to chmod... Sys-admin says i can individually chmod with
> 'sudo chmod 666 log/myapp_dev.log', but I tell him its a script
> running it, so he tells me to make the script sudo all its chmods...
> Is this the best solution? So instead of php's chmod() function use
> something instead like exec('sudo php -f symfony fix-perms') func in
> the pake script.
The problem is that frequently on hosting accounts, the PHP script is
running under Apache (and hence Apache's username, not yours). So those
cache files are all owned by another user, hence your problem. You should
however be able to remove cache files (since you own the cache folder
itself). If you app needs to invalidate parts of the cache, then you need
to write a cache management modules that removes those cache files.
--
--
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 [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
To unsubscribe from this group, send email to
symfony-users+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.