Is there anyone who really make PHP4.0b2 work as Apachie CGI?
| From: | Lao Wang | Date: | Tue, 07 Sep 1999 13:14:19 +0000 |
| Subject: | Is there anyone who really make PHP4.0b2 work as Apachie CGI? | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-4185@lists.php.net to get a copy of this message | ||
Dear Sirs:
I just installed PHP4.0b2. I want it to work as CGI version while my
php3 continues to work as Apache module. I tested
files in the tests directory and successed. But when I browse a test
file which successed in command line it failed and
gave message: No input file specified. No concerning record in error
log of apache found.
I searched for the same problem in this news group but no success
according to some suggestions.
Any help appreciated !
Here is in the httpd.conf:
AddType application/x-httpd-php3 .phtml
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php .php
Action application/x-httpd-php /cgi-bin/php.cgi
#AddHandler php-script .php
I copied the php binary to /cgi-bin/php.cgi
I used the option:
--enable-force-cgi-redirect
when compiling. But redirect seems not to work too.
By the way my linux is Redhat 5.2.
What's wrong? Thank you in advance.