Closed Thread Icon

Topic awaiting preservation: 404s on dreamhost (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=25436" title="Pages that link to Topic awaiting preservation: 404s on dreamhost (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: 404s on dreamhost <span class="small">(Page 1 of 1)</span>\

 
GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 04-05-2005 16:21

http://www.embege.com/nonexistentpage.php

why does this not lead to a 404 error, but gives me:

"No input file specified."



edit: for those interested, dreamhost runs a wiki since today: http://wiki.dreamhost.com/

(Edited by GRUMBLE on 04-05-2005 17:38)

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 04-05-2005 17:15

php displays that when it's run as cgi and can't find the file.

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 04-05-2005 17:15

php returns that if it's run as a cgi and can't find the file.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 04-05-2005 17:26

aha thanks.

i think its dreamhost standard for php to be run as cgi, right?

any possibilities to get a 404 even when php runs as cgi?

synax
Maniac (V) Inmate

From: Cell 666
Insane since: Mar 2002

posted posted 04-05-2005 21:02

You could write your own error pages ... http://andredion.com/no_page_here.php

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 04-05-2005 23:24

actually i do have my own 404-page, but it only works for non-php urls:

www.embege.com/somethinnullandvoid

synax, do you run php in cgi mode? if so, how did you do this 404-page?

JKMabry
Maniac (V) Inmate

From: raht cheah
Insane since: Aug 2000

posted posted 04-05-2005 23:44

nice positive post 'naxer!

GRUMBLE: I know for a fact he does it like so cuz I unashamedly robbed him of it

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 04-06-2005 00:00

thanks, but i still dont think this will catch the php-cgi error.
also, where is the $code variable coming from? i dont think apache sends this to a php script.

but i'd be happy to be proven wrong...

synax
Maniac (V) Inmate

From: Cell 666
Insane since: Mar 2002

posted posted 04-06-2005 00:30

Here be the relevant parts of me .htaccess file:

code:
ErrorDocument 400 /error.php?code=400
ErrorDocument 401 /error.php?code=401
ErrorDocument 403 /error.php?code=403
ErrorDocument 404 /error.php?code=404
ErrorDocument 500 /error.php?code=500
ErrorDocument 501 /error.php?code=501
ErrorDocument 502 /error.php?code=502
ErrorDocument 503 /error.php?code=503



GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 04-06-2005 00:35

that's about the same as i have.
the problem is that it doesnt even get that far. the apache sees the ending ".php" and then calls the cgi executable of php to do the rest. (is that right?)

still, i'd be interested if you are running php in cgi mode or apache module mode.

thanks!

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 04-06-2005 01:50

Check the dreamhost Knowledge Base. They've got an article on there about using mod_rewrite to make custom error pages work with PHP run as a CGI


Justice 4 Pat Richard

synax
Maniac (V) Inmate

From: Cell 666
Insane since: Mar 2002

posted posted 04-06-2005 02:51

Ahhh yes. I'm getting the same problem as you when I run my PHP as CGI. I found other people at DH with the same problem (via the support forums) but they had found no solution. I also couldn't find this article you speak of, Skaarjj. Perhaps you could provide us with a link?

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 04-06-2005 11:10

yepp, personally, ive never been a friend of PHP as CGI. why run an extra process if apache is running already?

here is that article on custom 404s using CGI:
https://panel.dreamhost.com/kbase/index.cgi?area=2933

thanks guys!

btw: rumors say, dreamhost will roll out PHP5 in may.

« BackwardsOnwards »

Show Forum Drop Down Menu