ID: 14822 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Apache2 related Operating System: windows xp professional PHP Version: 4.1.0 New Comment:
Hi all, Support folks, please take note. This issue is not exclusive to Apache 2. Im running WinXP Pro (no service packs) PHP4.2.3 Apache 1.3.27 And receive the same error in error.log "Premature end of script headers: e:/applications/servers/php-4.2.3-win32/php.exe" Evidently Im using the PHP binary rather than the apache module. For the record, I've tried changing the httpd.conf and replacing the line: "Action application/x-httpd-php /php/php.exe" with "Action application/x-httpd-php /php/php-cli.exe" but no success. Id rather not downgrade down to Windows 2000 but without a swift resolution, this may well be the only option. Can anyone help? Many thanks in advance. Cheers. Pete. Previous Comments: ------------------------------------------------------------------------ [2002-12-02 11:36:20] [EMAIL PROTECTED] I had this problem as well on XP. I changed the line Action application/x-httpd-php /php/php.exe to Action application/x-httpd-php /php/php-cgi.exe in httpd.conf and this seemed to work. I don't know why. Hope this helps. ------------------------------------------------------------------------ [2002-10-04 08:31:04] [EMAIL PROTECTED] well, same thing is here... OS winXP, the problem is not just related to Apache2 according to my understanding, since i've uninstalled it, and installed the apache 1.3... and the same 500 internal error, Premature end of script headers: D:/php/core/php.exe now the thing is that as long as i try to run php files in the root directory, it works, but the same file, containging <? echo "hello" ?> and nothing else wont work in any sub folder.... it will only be executed by the php.exe (ver 2 and i tried more than one... always the same). Now everything worked a week ago, and stoped working, the minute i added a user in the XP pro. priviously i had only one user who was the administrator and no login to XP was needed. Then i've added a new user, gave that new user administrators premissions and gave the old user limited permissions. the next time i tried to do somthing in a sub folder of localhost/Any_Sub_Folder/phpFile.php, won't work and gives the error. hope that helps a bit. Shanor. ------------------------------------------------------------------------ [2002-05-11 07:57:19] [EMAIL PROTECTED] I get this when I try to use a .htaccess file like the following: <Files view> ForceType application/x-httpd-pshp </Files> Hope this helps ------------------------------------------------------------------------ [2002-04-06 11:09:22] [EMAIL PROTECTED] You need latest CVS versions of both PHP and Apache2 for it to work. And Apache2 is still beta and a moving target, so it's not really possible to have stable releases of it. ------------------------------------------------------------------------ [2002-03-11 02:48:05] [EMAIL PROTECTED] I run Windows 2000, Apache 1320R2 and PHP 4.0.1 (upgrading to 4.1.1 as we speak). I allso have the same problem with: Premature end of script headers: C:/php/php.exe Though... Only in Internet Explorer 6.0. Netscape 6.2 works fine. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/14822 -- Edit this bug report at http://bugs.php.net/?id=14822&edit=1