I created simply test file (<?php phpinfo(); ?>) and tried to install php
as CGI under my RedHat 9.
PHP 4.3.8 was compiled from source tarball. mod_php under Apache 1 and 2
works, only CGI does not work! :( Apache logs contains "Premature end of
script headers". Web browser can see "Internal message" :(
I checked two, different instalation in httpd.conf. None of them works
correctly and I do not know why.
First approach:
ScriptAlias /php4/ "/usr/local/php4/bin"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php4/php"
Second approach:
ScriptAlias /php4/ "/usr/local/php4/bin/"
AddHandler php-script .php
Action php-script "/php4/php"
--
JZ