Hi Guys, I recently setup a custom server with Opensuse Linux and Apache2 with mod_php. All is running great except I would like to create a custom error page which I have written in php. I have written this page and made it accessible and tested it using 404 and 403 errors. However, when I make a simple php page to produce a 500 error I am not redirected to the error page instead Google Chrome displays a generic 500 error message same with Firefox. Oddly enough, I am directed to the error page when executing a bad perl script via CGI. In httpd.conf I have added this line same as my 404 error page ErrorDocument 404 /error.php ErrorDocument 500 /error.php Anyone have any idea what I wrong?
Are you sure you are not looking at the so called "friendly error message" of the Browser. I'm unsure about Chrome, but this is how to disable it in FF: Type in de addressbar: about:config. In the filterbar type: error and press enter. Now set the value of the ‘browser.xul.error_pages.enabled‘ to ‘true‘. Restart Firefox.
Nope, I am infact looking at apache's error message which is not being sent. Here's a URL that you can test the 500 error live. I've also provided a 404 URL test. hxxp://webapp.riverspringscharter.org/fail hxxp://webapp.riverspringscharter.org/test.php