Richard Lynch wrote:
On Wed, May 23, 2007 3:36 pm, Brett Davidson wrote:
Platform : FreeBSD 6.2 Release with Apache 2.0.59 running PHP 5.2.1_3
CGI under SuExec in FastCGI mode.
Issue: move_uploaded_file ALWAYS crfeates uploaded files with Unix
permissions 600 (read and write for user only) regardless of
ownership,
directory or umask settings.
Regardless of all those settings in what context/environment?...
Are you using http://php.net/umask and/or chmod?
PHP runs in the environment you've defined in SuExec and FCGI. Which
I got NO IDEA how that all works, but presumably there are
configuration settings within those.
This works fine with php installed as a module.
Well, yeah, as a Module you're in an entirely different
context/environment. That's kinda the whole POINT of SuExec in the
first place -- to change the user and their environment for the
execution of the script.
Belay all of this!
Problem is not in php - it's in suexec. Just installed Ruby on rails
under fcgid and am having the same issue. :-(
Thanks for your reply (which came in just as I was typing this). :-)
Brett.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php