|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-24 12:51 UTC] tomas dot hlavacek at telekomaustria dot cz
[2008-10-24 13:04 UTC] pajoye@php.net
[2012-02-11 16:07 UTC] julientld at free dot fr
[2013-01-19 16:45 UTC] bigtrend at gmx dot us
[2013-01-19 17:16 UTC] pajoye@php.net
[2017-05-03 15:09 UTC] andreshm1 at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 19:00:02 2025 UTC |
Description: ------------ Hello, in php.ini I have set upload_tmp_dir directive to "e:\php5-uploadtemp". phpinfo() confirms, the directive is set to this value. But PHP is using C:\Windows\Temp for uploading files instead. This is confirmed by printing $_FILES['uploadedfile']['tmp_name'] in script. Server configuration: --------------------- Windows Server 2008 IIS 7 PHP 5.2.6 as FastCGI module with fastcgi.impersonate = 1 phpcgi.exe processes are running with "Network Service" privileges (same as w3wp.exe) and are impersonating to IUSR_xxx accounts (each customer has one). IUSR_xxx accounts are members of "IIS_IUSRS" group. Rights on folders: C:\>icacls c:\windows\temp c:\windows\temp CREATOR OWNER:(OI)(CI)(IO)(F) NT AUTHORITY\SYSTEM:(OI)(CI)(F) BUILTIN\Administrators:(OI)(CI)(F) BUILTIN\Users:(CI)(S,WD,AD,X) BUILTIN\IIS_IUSRS:(OI)(CI)(M) C:\>icacls e:\php5-uploadtemp e:\php5-uploadtemp BUILTIN\IIS_IUSRS:(OI)(CI)(M) BUILTIN\Administrators:(I)(OI)(CI)(F) NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F) Under Windows Server 2003, IIS6, PHP5 as CGI, with same configuration it was working. The rights should be ok, because I have also set session.save_path = e:\php5-sessiondata with same rights as on e:\php5-uploadtemp and this is working correctly. Reproduce code: --------------- <? ... print $_FILES['uploadedfile']['tmp_name']; ... ?> Expected result: ---------------- e:\php5-uploadtemp\php214E.tmp Actual result: -------------- C:\Windows\Temp\php214E.tmp