Re: 500 internal PHP errors - custom error reporting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 000001c3d595$99b846a0$6501a8c0@neptune">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
   

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux