[error.php]Which location?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm a newbie learning PHP APACHE MySQL from a manual.

I've reached the errors processing chapter, they made me type a nice
"error.php" file which handles errors 400, 403, 500, except they don't
say where to copy it.

I tried under c:\wamp\www\, c:\wamp\apache2\errors, but it doesn't

I modified httpd.conf that way:
ErrorDocument 400 /error.php?400
ErrorDocument 401 /error.php?401
ErrorDocument 403 /error.php?403

I restarted the AMP services.

Any help would me much appreciated!!

Re: Which location?

Try your DocumentRoot. Its probably set to "c:\wamp\apache2\htdocs"
but check your httpd.conf.

Also, the httpd.conf has commenting explaining what most directives do.
Try reading it as it can often help solve some confusion.

Re: Which location?


Unfortunately this AMP distribution for windows does not haved an
\htdocs directory, although it is mentionned in httpd.conf.
I created this directory and copied error.php in it, but still get the
traditional error page 404.

I'll ask directly on the WAMP forum, they probably had an idea of their
own, not obvious for a newbie.

Many thanks for your reply.

Site Timeline