I still get the same error under the following condition:
Environment:
RedHat 6.2
Apache 1.3.12 mod_perl 1.21
PHP 4.0.3-dev
Compiled as an executable and installed in /usr/local/bin/php
httpd.conf
AddType application/x-httpd-php
Action application/x-httpd-php /usr/local/bin/php
Various other httpd.conf attemps all produce the same error:
Premature end of script headers
The file is mode 0755
#!/usr/local/bin/php -q
<Head>
<Title>Test PHP</Title>
</Head>
<Body>
<?php
phpinfo();
?>
</Body>
I noticed on the screen that the trailing was not produced, so I added it. However, adding it or deleting it makes no difference.
Piping output to an html file and serving it via Apache works.
I'd really prefer running this as a DSO module, but first I would like to get it running even in CGI mode.
I would really like this to get up and running.
Thanks - /mde/