Re: 500 internal PHP errors - custom error reporting
| From: | Cristian MARIN | Date: | Fri, 09 Jan 2004 11:01:43 +0000 |
| Subject: | Re: 500 internal PHP errors - custom error reporting | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-22531@lists.php.net to get a copy of this message | ||
Hello,
You just have to add this line for each error number you want to overwrite into the httpd.conf
(there are some commented ones coming with the default apache configuration)
ErrorDocument 500 "The server made a boo boo."
if you want to have a text displayed when this error appeared or:
ErrorDocument 500 d:/www/internal_error.html
for serving a static page or
ErrorDocument 500 http://server_name/page_name.html
for serving an URL
Regards,
Cristian MARIN
--
-------------------------------------------------
Cristian MARIN - Developer
InterAKT Online (www.interakt.ro)
Tel: +4021 312.53.12
Tel/Fax: +4021 312.51.91
cristic@interakt.ro
"Jim Macdiarmid" <jim.macdiarmid@comcast.net> wrote in message news:000001c3d595$99b846a0$6501a8c0@neptune...
In ASP/IIS 5.0, there is a way to have a custom error page displayed
that will show current environment variables, etc. Is there a way to do
this with PHP/Apache 2?
Thanks in advance,
Jim