• Something that’s been bugging me is how my server doesn’t seem to want to serve my custom error pages. Well, that’s not entirely true; it serves the 404.php just fine. But whenever I get an error 500 (which are pretty easy to force, just by putting a space in the middle of a ModRewrite rule), I get this:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] 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.
    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/1.3.37 Server at www.example.net Port 80

    That last bit, the “Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request” is the part that’s driving me mad. Why won’t it serve my custom 500.php? It’s in my theme directory, and my error handling rules in .htaccess are the following:

    # error handling
    ErrorDocument 403 /index.php?error=403
    ErrorDocument 404 /index.php?error=404
    ErrorDocument 500 /index.php?error=500

    Is it a problem with the server trying to serve a PHP error document? I tried changing /index.php?error=500 to the actual path to the 500.php file, but that didn’t seem to do anything. Any help would be greatly appreciated.

    -ian

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ianadams

    (@ianadams)

    Bump.

    Anyone?

    I get this 2 – don’t know what to do.

    500 errors have to be HTML pages or plain text. If the server has an internal error it is gonna struggle loading a PHP page ??

    Ian, does your custom 403 page work? I’m trying to set one up, but my theme’s 403.php page is never called.

    That error message is saying it’s trying to display your custom page, but it can’t… so it might work in some cases, but either the first error or another error is preventing it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Server doesn’t serve custom 500 error page’ is closed to new replies.