Re: Weird behaviour with move_uploaded_file on CGI version of PHP.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux