View previous topic :: View next topic |
Author |
Message |
langguy -
Joined: 01 Jul 2003 Posts: 2
|
Posted: Tue Jul 01, 2003 7:27 am Post subject: Custom Error Pages with PHP |
|
|
Abyss doesn't seem to like custom error pages written in PHP. They always generate internal [500] errors. I have PHP properly installed and working. The CGI path for PHP is the root directory [eg. all PHP scripts can be executed on my server regardless of what directory it's in]. I have my error pages in the /errors/ directory. If I request http://127.0.0.1/errors/404error.php it processes fine. If I request a file that doesnt exist, however, I don't get my 404error.php file, but the standard IE 404 page. I have the parameters in the options for custom error pages set correctly [I believe]: Error Code = 404, Assiciated URL = /errors/error404.php. If I make a copy of error404.php but use an HTML extension, it loads correctly, but it will not load the custom error page as a PHP file. My log says it generates errors 404 and 500. What can I do? |
|
Back to top |
|
|
badai -
Joined: 24 Apr 2003 Posts: 82
|
Posted: Tue Jul 01, 2003 2:18 pm Post subject: Re: Custom Error Pages with PHP |
|
|
mine work just fine.
langguy wrote: | Abyss doesn't seem to like custom error pages written in PHP. They always generate internal [500] errors. I have PHP properly installed and working. The CGI path for PHP is the root directory [eg. all PHP scripts can be executed on my server regardless of what directory it's in]. I have my error pages in the /errors/ directory. If I request http://127.0.0.1/errors/404error.php it processes fine. If I request a file that doesnt exist, however, I don't get my 404error.php file, but the standard IE 404 page. I have the parameters in the options for custom error pages set correctly [I believe]: Error Code = 404, Assiciated URL = /errors/error404.php. If I make a copy of error404.php but use an HTML extension, it loads correctly, but it will not load the custom error page as a PHP file. My log says it generates errors 404 and 500. What can I do? |
|
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Tue Jul 01, 2003 11:06 pm Post subject: |
|
|
Try typing the full path URL instaed of using /errors/error404.php , use
http://your_domain/errors/error404.php 8)
Mine doesn't work with 404 errors localy either _________________ This web server is the best ! |
|
Back to top |
|
|
badai -
Joined: 24 Apr 2003 Posts: 82
|
Posted: Wed Jul 02, 2003 2:12 am Post subject: |
|
|
mine work fine. i put it in root directory
|
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jul 03, 2003 12:54 pm Post subject: Re: Custom Error Pages with PHP |
|
|
The fact that IE displays its own error page is not related to the server. You should configure IE to not display "friendly error pages". _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
langguy -
Joined: 01 Jul 2003 Posts: 2
|
Posted: Thu Jul 03, 2003 5:59 pm Post subject: |
|
|
os17fan: your reply was the only one that was helpful. that solved the problem.
badai: I originally had it in the root directory, but it didn't work there either
aprelium: I think it is server-related. If i deleted my entry in the custom error pages, I would get abyss' standard 404 page. But, when I put my own in there, I got IE's 404 page.
But, I have it working now, thanks |
|
Back to top |
|
|
badai -
Joined: 24 Apr 2003 Posts: 82
|
Posted: Sun Jul 06, 2003 2:27 pm Post subject: |
|
|
you don't believe me? fire up your IE and go to
http://tago.pointnetwork-asia.com/any_thing
see the php custom error page yourself
langguy wrote: | os17fan: your reply was the only one that was helpful. that solved the problem.
badai: I originally had it in the root directory, but it didn't work there either
aprelium: I think it is server-related. If i deleted my entry in the custom error pages, I would get abyss' standard 404 page. But, when I put my own in there, I got IE's 404 page.
But, I have it working now, thanks |
|
|
Back to top |
|
|
|