Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Image folder permission errors with IIS


Recommended Posts



We have just setup our site with osCommerce, on a Windows 2003 IIS server. We have applied all the apropriate permissions on directories and files, however when we add a new product and image to the catalog, the image does not inherit the images folder NTFS permissions in particular the sites web user account.


So when a user visits the website they are prompted for a usernamen and password via the windows 2003 security logon????


Any help would be much appreicated.





Link to comment
Share on other sites

  • 1 year later...

Hi There,


We're having the same problem. Has anyone found a solution to this?


Here are the details, just in case:


- Running IIS 6.0

- admin folder requires NTFS authentication in order to access

- when product is added, image is put in correct directory, but when accessed, user is propted for username and password.

- images folder has proper permission settings.


Any help would be GREATLY appreciated.





Link to comment
Share on other sites

  • 3 years later...


upload of images works - display gives access denied on IIS



found a workaround on my box IIS7 (should also work with IIS6):

Gave IUSR(IIS7) or IUSR_%machinename% (IIS6) read permissions on the "c:\windows\temp" folder


root cause:

that uploaded files via php get temp'ed into the systems temp folder if not other specified in php.ini "upload_tmp_dir"

oscommerce then does a move_uploaded_file to the /images folder -> a move takes the files permissions to the destination and does not inherit the folder one's

originally the IIS anonymous user (IUSR) has no permissions on the temp folder (default c:\windows\temp)



rather than giving the IUSR read to c:\windows\temp - I suggest creating a own temp directory for php give the permissions for IUSR (read), Network Service (list folders /read data), SYSTEM (full) and configure upload_tmp_dir in php.ini to point to that dir.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...