Well,
I tried it with SheBang and without.
My Apache-conf looks this way:
ScriptAlias /php/ "/opt/php5/bin/"
AddType application/x-httpd-cphp .cphp
AddHandler application/x-httpd-cphp .cphp
Action application/x-httpd-cphp /php/php
Where /opt/php5/bin/ is the place where my php5 binary resides (CGI Version)
The Output of /opt/php5/bin/php -v says:
PHP 5.0.5 (cgi-fcgi) (built: Sep 19 2005 19:56:03)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies
What else may lead to the "=ยง% Error 500??
Thank you in advance
Sascha
[EMAIL PROTECTED] wrote:
if you're calling this as a cgi (i.e., from your server's cgi
directory), you have to have:
#!/path/to/php/binary
at the top of your file.
if you've loaded php into apache (as a loadmodule or compiled in) you
can basically just put that function on a page as you did.
------------ Original Message ------------
Date: Monday, September 19, 2005 10:56:32 PM +0200
From: Sascha Teifke <[EMAIL PROTECTED]>
To: php-install@lists.php.net
Subject: [PHP-INSTALL] Premature End of Script Headers
Hello List,
I've compiled PHP 5.0.5 and I added it to my Apache Config as CGI.
My tiny test script:
<?php phpinfo(); ?> ends with the following error in error_log and an
error 500
in the Browser window:
premature end of script headers: php
Any Ideas where the error may be?
Thank you in advance.
Sascha
---------- End Original Message ----------