WordPress Development Stack Exchange is a question and answer site for WordPress developers and 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've uploaded a Wordpress site to the live server and I get this error whenever I try to insert an image into a post:

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.0 (Fedora) Server at www.sitename.com Port 80

Just to be clear - the error appears only when i try to insert the image into the page. I can upload it to Media just fine. Also, it happens with external images as well as local ones. It seems enough to have an IMG tag with something in the SRC attribute for this to happen.

It's very weird, I've installed Wordpress on many servers and never had this happen before.

share|improve this question
up vote 0 down vote accepted

The problem was with ModSecurity settings blocking some of the Wordpress scripts.

share|improve this answer
Please explain how you fixed it to turn this fragment into an answer. – toscho Sep 24 '12 at 14:51
Unfortunatelly I don't know the exact fix - I sent an email to the people responsible for configuring the server and they fixed it. Hopefully my answer above will point people in the right direction at least. – Andreyu Sep 27 '12 at 10:23

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.