Re: Premature End of Script Headers
| From: | Sascha Teifke | Date: | Wed, 21 Sep 2005 05:18:28 +0000 |
| Subject: | Re: Premature End of Script Headers | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-16662@lists.php.net to get a copy of this message | ||
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
replies-lists-php@listmail.innovate.net 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 <mailinglist@teifke.de> 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 ----------