ok... i've compiled php4 as a cgi on red hat 6.2 and I'm attempting to use it with apache.
during the install I configured the binary with:
--enable-discard-path
--enable-force-cgi-redirect
everything compiled fine and at the shell my test cgis work w/o a problem. via apache however I get an error to the effect of "premature end of script headers."
I've just combed through the archives and it seems like 20 different people have reported this error yet there is no solution.
other cgi's work w/ apache w/o any problems and the following lines are in my httpd.conf file:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /usr/local/bin/php
any ideas?
also, when php is compiled as a cgi where does the php.ini end up and is there anything I need to put in it in order to make it play nice w/ apache?
any help greatly appreciated