Some webhosts are running IIS v6.0. This is a Windows Server 2003 webhost. There is a problem with a standard PHP.ini file and the uploading / installing modules / templates function in the admin section.What happens?
When you try to upload a file, it says: can't upload file. But you did give the temp folder in the WebsiteBaker dir all access for the IUSR_<SERVERNAME> and you did give him write access. But still this problem excists.
Well it has just nothing to do with a misconfiguration in IIS as a lot of people thought (also here on WB when i asked for help). It is a misconfiguration in the PHP module for IIS!How can i solve this?
Very easy! Go to you php directory (most of the time c:\php\ and find the php.ini. The php.ini can also be located in the C:\windows\system32 dir or C:\windows\ dir. Make sure you find the file that is being used by your IIS and php (you can also check the extensions in IIS to make sure you have the good file). Once founded open it with an text editor like Notepad or something. Now go and find the next line:
When the ; is in front of it, it means it has not been configured and PHP uses the standard directory (i dont know what dir that is so that's why i made my own dir).
Uncomment the line by removing ; and make a new dir on one of you harddisks, like C:\Temp. I suggest doing it at a d:\ drive cause we have to give the IUSR write access. Once you created a dir, edit the php.ini with the new dir. For example:
upload_tmp_dir = "C:\Temp"
Here i used the C:\Temp folder witch i created. Once you have this done save the php.ini file. Now go to the created dir ( C:\Temp ) and go the the Tab Security. Add the user IUSR_<servername> to the users and give that user write access. Press Apply and work your way out with OK.
Now go to the IIS MMC and restart the IIS service or server. Once restarted check again. Now it should work as normal!
When you found the line
upload_tmp_dir = "C:\Tempory Files"
in the php.ini with already a dir behind it, make sure the IUSR has the good permissions on that folder! Last but not least
Enjoy and i'm not responsible for any damage to you system