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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 10:01:38 2025 UTC