Apache Server configuration support - ErrorDocument directive + local URL path + PHP = failure?

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > August 2006 > ErrorDocument directive + local URL path + PHP = failure?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ErrorDocument directive + local URL path + PHP = failure?
9to5clone@gmail.com

2006-08-18, 1:38 pm

I can get the ErrorDocument directive to work with a fully qualified
URL, but not with a local URL path. From reading posts I suspected it
was the result of a lack of proper ServerName, but I tried different
combinations of ServerName being populated as:

*:80
hostname.domain.com:80
www.domain.com:80

....with the UseCanonicalName set to "On" and "Off" and so far have not
had any luck. I'm running RHEL3, with apache 2.0.55 and php 4.4.1.

Oddly enough if I set the local URL to an HTML file:

ErrorDocument 404 /server_error.html

It will work. If I set to a php file:

ErrorDocument 404 /server_error.php

I get a blank screen. I have display_errors set to "= On" in my
php.ini file. So any php errors in my code should display. I even
tried overwriting the content of my server_error.php file with plain
HTML (no php code that could create an error). Still no luck.

If I set the ErrorDocument to point to a fully qualified URL, such as:

ErrorDocument 404 http://www.domain.com/server_error.php

Regardless of whether it's a php page with php code or not, it works.
However, since I'm using a fully qualified URL (an "external URL") it
does not create the REDIRECT_ variables I need to capture error
information when generating automated emails to the server
administrator.

I set my httpd.conf error LogLevel to "debug" but all I get is:

[Fri Aug 18 11:19:41 2006] [error] [client 10.3.0.3] File does not
exist: /var/www/vhosts/www/html/asdf
[Fri Aug 18 11:19:41 2006] [notice] child pid 26825 exit signal
Segmentation fault (11)

Any assistance you may be able to provide would be deeply appreciated.
I'm running out of ideas. (Heeeeeeeeeeeeeeeeelp!!!)

John

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com