Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using wordpress on my Win Server 2008 R2. When I try to view an uploaded image, I get error 500. All the small preview images work.



Not working


I have checked that directory and that file exists. When I open that image with paint and save it without editing, it starts to work and no error 500 anymore.

What could be the problem? Is something breaking the image when uploading?

share|improve this question
Usually IIS Error 500 means a PHP error. Try to enable the PHP error logging to a file in PHP.INI. – lrosa Sep 5 '10 at 18:25
I just having the same problem, see this post, hope it help:… – user149467 Dec 13 '12 at 7:42
up vote 1 down vote accepted

This is probably a permissions problem related to the temp folder where images are uploaded to. Check this blog post which will almost certainly be your same problem:

HTH, John

share|improve this answer
Yes, I had the same problem. My solution was to change the anonymous authentication from 'IUSR' to 'Application Pool Identity' and define a new application pool. Now the files have permissions defined for that application pool. I still wonder why IUSR didn't work, because it did have permissions for that file. – Mika Kolari Sep 6 '10 at 6:57

You need change permission in folder: windows/temp. PHP save in TEMP and copy to /uploads with TEMP permissions.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.