Support » Fixing WordPress » 500 Internal Server Error – WP 2.1

Viewing 15 replies - 1 through 15 (of 18 total)
  • If it’s doing this randomly and on every page, it’s almost 99% certain your host is dropping the server connection occasionally for whatever reason. Maybe you should ask them if they are/have done upgrades/changes recently.

    Thank you for contacting Online Support. We are not currently experiencing any issues with our hosting accounts. This error indicates that you are using more than the number of concurrent connections allowed for your hosting plan. If you require more connections, you will need to upgrade.

    These are the limits.

    Economy: 50 connections
    Deluxe: 100 connections
    Premium: 150 connections”

    I am on “Economy”; what should I do?

    switch providers.


    I’m having a (possibly) similar issue:
    – shared Linux
    – WP 2.1
    – intermittent 500 Internal Server Errors
    – happening in various themes (I use MistyLook)

    My issues that are not similar:
    – usually only occurring on home page

    My issues that may or may not be like yours:
    – error occurs the same in FF and IE (have not tested other browsers)

    If you change your Home Page to something other than most recent posts, do you still get the error? When I do that, my error immediately & completely disappears. Only thing I’ve been able to figure out so far, is the error seems to be tied to publishing posts to Categories (Tags) – either certain ones or ones that are nested 3-deep (Example nested hierarchy: Food > Lunch > Sandwiches).

    When I
    (1) change my newest (“offending”) post to draft AND
    (2) make my Home Page show most recent posts again
    the Home page is fixed.

    Also when I
    (1) change categories for my new post (like only post to categories/tags that are 1-category deep) AND
    (2) republish my new post AND
    (3) make my Home Page show most recent posts the Home Page is fixed.

    Not sure if I’m on the right track or not, but for now this seems to be the fix for me. I’m keeping track of my intermittent 500 Internal Server Errors and the fixes here.

    I also am having same “500 internal server error” problems. It is almost at random, could happen on any page (except admin side), and goes away after a couple of refreshes.

    The number of 500 errors increased considerably after upgrading to 2.1. Back at 2.0.x it was neglible. Now it is not. Need to fix it this time.

    Any ideas?

    Glad I found this thread – I have asked about this in IRC and on a mailing list with no luck so far, so I’m glad to learn that I’m not alone. Definitely noticed this go way up starting in 2.1. I just updated to 2.1.1 and have seen the bug twice since then.

    I’m having the error as well. I’m trying to figure out the problem with my host. First step is trying to get the server error logs from them so I can figure out which scripts are actually causing this problem. Anyone else had any success getting error logs?

    I’ve currently got the front page of my blog turned to a static page where I’m tracking progress on this issue (

    alright, there is closed bug over here (closed, but never fixed) about server 500 errors relating to long posts.

    Is anyone having this problem only with long posts on the front page or is it random . . .

    I looked into my access logs and saw that I had 10,780 (yes, ten thousand!) of these 500 Internal Server Errors.

    For me, I haven’t seen any correlation between the size of the post and likelihood it’ll be a 500 error.

    However I do get them very often in my “post preview” window.

    I contacted my host and here is what they said:

    An error 500 occurs most often when either your logs have become to large, or in many cases, when there are too many open connections to your database at the same time.

    Please check your PHP encoding and ensure that all of your database calls fully close to ensure that they are not being left open, which can cause an increase in these errors.

    Did 2.1 increase the number of mysql connections it requires? (compared to 2.0.7)

    Any help is appreciated.

    I contacted my host. They reviewed the logs and said that it was their problem and they had something configured wrong. They went and fixed something (wouldn’t tell me what) and now everything seems to be working fine (at least I haven’t got any more Server 500 errors). Wish I knew what they did so I could share it.


    Regarding your host’s comment:

    Please check your PHP encoding and ensure that all of your database calls fully close to ensure that they are not being left open, which can cause an increase in these errors.

    WordPress does not explicitly close database connections. It relies on PHP to automatically close them at the end of script execution.
    See this: WordPress Support > Closing db connections

    On, on their page about mysql_close() they discuss the issue of closing databases explicitly. I am not an expert, but it appears it’s typically ‘bad form’ to explicitly close db connections. The database will close as soon as its script finishes. After reading that a few weeks ago on (when I was researching the very same thing) I decided to remove all the mysql_close() commands I’d written into some PHP scripts I run (not my WordPress blog–it was for something else) and I have seen an improvement in speed on those scripts since then. And no 500 internal server errors on those sites either, not that I’d ever had them before.
    See this: PHP.NET mysql_close page

    I posted my 500 internal server error issues in this topic a few weeks ago. I’ve had no issues at all since updating to 2.1.2, knock on wood. I’m not sure if that has anything to do with not seeing the error anymore. I do still watch for it.
    My 500 internal sever error problems and related discussion.

    Better check with your hosts, those still having problems: the php 4.4.5 release had some issues, perhaps similar to this; my host retrograded to 4.4.4 until 4.4.6 was released. If your host is NOT running 4.4.4 or 4.4.6, ask them to fix at least your server space by downgrading to 4.4.4 or upgrading to 4.4.6.

    You can do a quick check yourselves to see what php version: create a file in notepad (NOT WORDPAD OR WORD); save it as phpinfo.php. In the file put this and only this, and save it:


    Upload this to your site root; access using your browser (something like – this will give a lot of info about what the backend programs running your site are set up with, including what versions of apache, php, mysql, etc.

    I am having this same problem, and I have a dedicated hosting plan. It definately has something to do with new posts being added. On my site, we set posts to post for future times/dates, and once the post time hits, the site goes dead with the following error:

    Error establishing a database connection

    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.

    * Are you sure you have the correct username and password?
    * Are you sure that you have typed the correct hostname?
    * Are you sure that the database server is running?

    Nobody seems to know what’s going on here, but it sounds like it’s a huge issue.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘500 Internal Server Error – WP 2.1’ is closed to new replies.