Partner and Community Forums
Temp Directory is still set to C:\WINDOWS\TEMP even after I change it...
Last post Jul 18, 2011 06:19 AM by HCamper
Jun 20, 2011 08:11 PM|mjs390|LINK
I have an IIS 6.0 PHP 5.3.6 with FastCGI running with a Drupal installation that wont allow for file uploads. I don't want to use C:\WINDOWS\TEMP as the default directory for uploads. So, I created a C:\TMP directory for PHP to write to. However, when
I make the change to the upload_tmp_dir to be C:\TMP and then restart IIS. PHPINFO shows as C:\WINDOWS\TEMP as still being the upload directory. Is it because of FastCGI? I would keep C:\WINDOWS\TEMP as the default but it doesnt like me changing the persmissions
for the IUSR_X-X guest account to be able to write to it....Freezes up when I try to add permission. Any insight would be great cause I am at wits end on this one.
Jun 20, 2011 08:15 PM|HCamper|LINK
Have you checked IIS Net library
for php.ini settings? The IIS Net guide for the most part will apply to both IIS 6 and 7 .
Jul 15, 2011 06:15 AM|HCamper|LINK
If your still having permissions problems
use this http://www.iislogs.com/articles/processmonitorw3wp/ guide
and get System Internals Process Monitor and check which User Account is having permissions problems.
Then using the information from the tool use an Administrative Account to correct the permissions.
Jul 16, 2011 06:42 PM|HCamper|LINK
Are you still having php.ini settings
Have you check the previous suggestions ?
Jul 17, 2011 06:47 AM|Mithil|LINK
Are you sure you has edited same php version's ini file.
Just in case, if your environment is shared hosting environment which might have TWO version of PHP installed.
Jul 17, 2011 10:44 PM|steve schofield|LINK
Windows Server MVP - IIS
Log archival solution
Install, Configure, Forget
Jul 18, 2011 06:01 AM|HCamper|LINK
Hello @ mjs390,
If your having php.ini conflicts you might
guide and "Enable per-site configuration" for the Drupal settings.
I also suggest you check which php.ini files exist at the command prompt >php --ini .
You still need to resolve the permissions problems and Process Monitor should help with that.
You might check the linked guide and use the runas /user:administrator cmd.exe to set the permissions.
Jul 18, 2011 06:19 AM|HCamper|LINK
Hello @ Steve,
The SET and the standard TEMP TMP environmental variables have been extended by the php.ini file.
The PHP engine uses the php.ini file to manage a collection of items for PHP use.
The php.ini has settings for extensions, log file locations, database configuration, error message control ... etc.
Yes, I Agree part of the current problem is with permissions and making required changes.