php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29309 Premature end of script headers: c:/php/php.exe
Submitted: 2004-07-21 19:00 UTC Modified: 2004-08-02 13:27 UTC
Votes:8
Avg. Score:4.5 ± 0.9
Reproduced:8 of 8 (100.0%)
Same Version:6 (75.0%)
Same OS:6 (75.0%)
From: raymondackermann at icqmail dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 5.0.0 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: raymondackermann at icqmail dot com
New email:
PHP Version: OS:

 

 [2004-07-21 19:00 UTC] raymondackermann at icqmail dot com
Description:
------------
I saved my scripts (with every script is the same thing) in the htdocs of apache and when I open http://localhost/example.php then the browser says:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. 
Please contact ...
Error log says: Premature end of script headers: c:/php/php.exe

I tried to reinstall php and apache but it's always the same thing. 

Reproduce code:
---------------
<?php
echo "hi";
?>

Expected result:
----------------
hi


Actual result:
--------------
http://localhost/example.php then the browser says:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. 
Please contact ...
Error log says: Premature end of script headers: c:/php/php.exe

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-02 12:52 UTC] erik2049 at hotmail dot com
the same problem :(
 [2004-08-02 13:27 UTC] edink@php.net
You need to use c:/php/php-cgi.exe
 [2004-08-05 08:31 UTC] arman_c at hushmail dot com
I also have the same problem, here are the lines in my httpd.conf file:

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "c:/php/php-cgi.exe"

It works even though I changed it to php-cgi.exe. Help would be greatly appreciated.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 11:01:33 2024 UTC