Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

WWWXXXDOCO, nu vot, WWWXXXAPC, dhcpd lease file "binding state", WWWXXXDOCO, how to setup procmail to process html2text, how to setup procmail html2text, WWWXXXAPC., XXXCNZZZ, ss4000 recovery array



#1: .htaccess/PHP5 (as CGI) problem

Posted on 2004-12-31 22:11:14 by ncf

Ok, I'm working on a custom PHP installation on a shared host. I
installed everything correctly and .phpx scripts work. But if I try to
use a mod_rewrite in the .htaccess file to redirect all non-existant
files to a 404.php file (i.e., http://domain/non-existant-file.phpx
will print out "No input file specified"), Apache acts like the phpx
files do not exist. I have included the PHP section of my .htaccess

I will NOT be able to check back here as my news reader isn't back up
and running yet, so it would be much appreciated if any replies were
sent to my email. My email is available in the header of this message.
(Unfortunately, Google will not let me remove my email from the header)

Thanks in advance for any and all help!


AddHandler custom-php .phpx
Action custom-php /cgi-bin/php5.cgi

#this next part was submitted by n74 at <<URL REMOVED>>
#it solves the "No input file specified" issue
RewriteEngine on
Rewritecond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule \.*$ /404.php
###Modified from \.php$ to \.*$ in order to catch all 404 errors

Report this message

#2: Re: .htaccess/PHP5 (as CGI) problem

Posted on 2004-12-31 22:13:58 by ncf

I may have forgotten to that it is now thinking that every phpx file is
non-existant, even if the file does exist. I have, for the time being,
reverted to only catching the regular php files and would like help as
soon as possible as I'm trying to migrate my entire server's files to
PHP5. Thanks.

Report this message