By Evance on
i installed drupal 5.1 on my site with IIS web server!
but some error appeared on the Status report page:
the iis which you are using haven't tested by drupal.it maybe cauldn't work properly..
why??
drupal5.1 couldn't work on IIS server?
and notify that:"fail to delete C:\WINDOWS\TEMP\fil4E56.tmp 。"
but i change the file system direcroty and temp directory to "files" and "temp"
what lead to it?
Comments
no any help ?
no any help ?
I have same problem
I try drupal5.0 , 5.1 but i have the same error over 2 different IIS.
With a manual installation i have a drupal 5.0RC1!!!
Bye Uccio
Drupal and IIS
First: Breath in and then breath out - Drupal works excellently on IIS and the Drupal team should be highly commended for making this CMS cross platform compatible. Kudos to everyone who contributes to Drupal.
We have verified full function of Drupal 4.7 - 5.1 on Windows Standard Server using IIS 6.
Your "fail to delete C:\Windows\Temp\fil4E6.tmp" is the result of using the Windows Temp directory which is used by the Windows System and should not be used as a temporary directory for files generated by the Web Root.
Here is how we resolved the issue. You need to create a root Temp directory at C:\Temp.
After creating C:\Temp you will need to add the following line: $directories[] = 'c:\\temp'; in your \includes\file.inc as follows:
// Operating system specific dirs.
if (substr(PHP_OS, 0, 3) == 'WIN') {
$directories[] = 'c:\\temp';
$directories[] = 'c:\\windows\\temp';
$directories[] = 'c:\\winnt\\temp';
$path_delimiter = '\\';
Works like a charm.
Luger
MCP
mododying file.inc ...?
Shouldn't this be documented in the INSTALL.txt, then ?
Doesn't seem to make sense that one would need to modify file.inc ...
Please file an issue.
Thanks!
Caroline
Doesn't seem to make sense that one would need to modify file.in
Hi Caroline:
If the reference is not added to file.inc then "Settings" doesn't pick up 'C:\Temp' under "File System Settings" in Drupal.
There are probably other ways to resolve the same issue, but I took what I felt was the easy road with the least potential security risks.
hmmm
I don't have my IIS installation up currently but last time I ran into the failed to delete a tmp file it was a php.ini config and account permission issue. So I created a temp drive 'd:\temp' and set it to the same in admin >> site configuration >> file system. Then I had to give the IIS_IUser (?) account CHANGE permission to that directory. No modification to Drupal files at all.
From memory I may have had to set a temp dir in my php.ini too.... (fuzzy) if I did, it's the same directory.
Not sure when I can put up an IIS test server again.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
So I created a temp drive 'd:\temp' ...
Hey Steven...
The net result of creating a 'd:\temp' and assigning IIS_IUser sufficient priviledge, is the same as creating a C:\Temp directory which by default provides IIS_IUser with sufficient inherited priviledge.
I didn't need to modify php.ini.
For security reasons, I simply did not want to modify directory priviledge to a Windows\Temp directory used by the OS.
I found it much easier to add a reference to the file.inc and create a C:Temp and Voila'.
There are probably numerous other ways to resolve the same issue - I simply "picked the low hanging fruit".
BTW: Congrats on your new arrival!
Image, file upload
hi,
i have a similar problem to above. However in my case the difficulty seems to be in copying files from the temp directory when uploading images through the image module, or files through the cck filefield module.
I get errors like: "c:\temp\tmp14CB.tmp could not be copied." - however, my temp directory in File System Settings is set to e:\php\uploadtemp. Am i experiencing the same problem as the above?
Have you tested your solution against these modules? I can't test what you suggested myself just yet as I don't have permissions to do it (hosted server).
Do you set your temp directory under "File System Settings" to c:\temp?
Thanks,
Gerard