Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image folder permission errors with IIS


awardle

Recommended Posts

Posted

:o

 

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.

 

Thanks

 

Aaron

  • 1 year later...
Posted

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.

 

Thanks!

 

JM

  • 3 years later...
Posted

problem:

upload of images works - display gives access denied on IIS

 

workaround:

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)

 

note:

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.

Archived

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

×
×
  • Create New...