php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #28313 Problem with PHP 5 on Windows XP.
Submitted: 2004-05-07 15:34 UTC Modified: 2004-05-11 12:06 UTC
From: pmedes at charter dot net Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.0.0RC2 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: pmedes at charter dot net
New email:
PHP Version: OS:

 

 [2004-05-07 15:34 UTC] pmedes at charter dot net
Description:
------------
I am running Apache 2 on Windows XP.  I had PHP 4.3.6 running fine, but then I tried to manually install PHP 5 according to the install.txt that came with the distribution.  I now get the message "Premature end of script headers: php.exe" when I try to run a php script.

The changes i made to php.ini-dist:
extension_dir="c:\php"
doc_root="c:\Program Files\Apache Group\Apache2\htdocs"




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-07 16:42 UTC] wez@php.net
Use php-cgi.exe in your apache configuration instead of php.exe (which is the CLI version).

Making this a documentation problem.
 [2004-05-07 17:29 UTC] nlopess@php.net
This already stated in the migration appendix.
There is also another bug open to update the install.txt file.
 [2004-05-07 18:37 UTC] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2004-05-07 19:06 UTC] derick@php.net
hmm, that's what you get by those very annoying mail delays.
 [2004-05-11 12:06 UTC] pmedes at charter dot net
Tried the change, but now I'm getting a"HTTP 404 Not Found..." when I switch to "http://localhost".  Can you check these entries?:

# 3/1/04 pjm:
ScriptAlias /php5/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"

Danke.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 02:00:01 2025 UTC