Forums

[resolved] Weird permissions with IIS7 and Uploaded Images (4 posts)

  1. rideon88
    Member
    Posted 2 years ago #

    So I recently installed 2.9.1 on a server running Win Server 2008 / IIS7 and the latest PHP 5.3.2RC1 VC9 compiled binaries.

    I have been having weird results when uploading images inside of wordpress. They upload and create thumbnails correctly, but the original image does not receive the correct permissions.

    Here's a screenshot of the permissions of the original uploaded iamge
    http://aaron.ryden.us/IISUSRS_permissions.png

    Where IIS_USERS group I assume is any anonymous unauthenticated internet user.

    Here's a screenshot of the error message in firefox when attempting to look at the original image uploaded through wordpress.
    http://aaron.ryden.us/500_error.png

    I'm not getting anything useful when searching for this topic so hopefully someone knows how to fix it.

  2. rideon88
    Member
    Posted 2 years ago #

    A bit of searching without the wordpress keyword brought up this solution:

    PHP uploads files to a temp directory and then moves the file to your directory.

    By default, it will choose c:\windows\temp.

    Allow IIS_IUSRS appropriate permissions for the temp folder (read maybe write?) and it should solve the problem

  3. ieanea
    Member
    Posted 1 year ago #

    That worked wonders Thanks for the post!

  4. pjs75
    Member
    Posted 1 year ago #

    All the info here was very helpful, though adding IIS_USERS to c:\inetpub\ with Modify, did not solve my issue.

    I had to explicityly grant Modify permission to user IUSR. I'm not enough of Windows guru to know why granted the group was not sufficient - I'm a bit hazy on Windows 2008 RC2.

    One way to find which users is being used to write files, is to look at permissions of files in c:\windows\temp, (only if you have access to box).
    I run on a VPS and have full admin access.

    Also, use a php script <? phpinfo(); ?> to get a dump of your PHP setup, it will show you the location of temp directory (if not c:\windows\temp).

    Pat.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.