Linux module and CGI install
| From: | pw | Date: | Tue, 13 Jan 2004 18:14:39 +0000 |
| Subject: | Linux module and CGI install | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-12491@lists.php.net to get a copy of this message | ||
> Hello,
>
> I have installed PHP4 under redhat with apache1.3.23.
>
> PHP works fine as a module and all functions work as expected.
>
> What I need is for PHP to *also* work as a CGI. The applications
> that I am connecting to PHP are not thread safe and require PHP
> as CGI.
>
> I am trying to iron out whether the errors I get are because of
> PHP or because of the apache configuration.
>
> My Apache config reads as follows:
>
> ###############################################
> <IfModule mod_php4.c>
> AddType application/x-httpd-php .php .php4 .php3
> AddType application/x-httpd-php-source .phps
> </IfModule>
>
> Action phtml-script cgi-bin/php
> AddHandler phtml-script .phtml
>
> ###############################################
> Action for phtml-script points to a link in my cgi directory to the
> php executable.
>
> The error I get is :
>
> Invalid URI in request GET /somepath/index.phtml HTTP/1.1
>
> This happens for all .phtml files. (not for .php .php3 .php4)
>
> Thanks for any insight.
>
> Pete