Apache 1.3.44 and PHP403

Apache 1.3.44 and PHP403

Post by .Ray » Sun, 12 Nov 2000 04:00:00



I have a perl and a php script both printing out Hello World, the output are
very similar when called from a DOS prompt:

--- BEGIN --------------
C:\webroot\php>yo.php
X-Powered-By: PHP/4.0.3pl1
Content-type: text/html

<html><body><h1>Hello World</h1></body></html>

C:\webroot\php>yo.pl
Content-type: text/plain

<html><body><h1>Hello world</h1></body></html>

C:\webroot\php>
--- END -----------------

When I use my broswer to call yo.pl as a cgi it's fine.
When I call yo.php on the other hand, I get internal error, and the error
log says

"[<DATE>] [error] [client <IP ADDR>] Premature end of script headers:
f:/webroot/php/yo.php"

What is going on?  The php script is definitely printing a http a header
with blank lines before the actual html as above.  Is the "X-Powered-By"
line causing problems?

It's taken me about 4 hours to get to this stage with PHP, and I've began to
wonder if I should have  tried it on my SuSE6.4 installation instead as most
docs are Linux focused. :-(

Ray

 
 
 

Apache 1.3.44 and PHP403

Post by .Ray » Tue, 14 Nov 2000 04:00:00


Whoops, should be Apache 1.3.14

 
 
 

1. apache 2.0.44/Win 2k SP3/Apache will not stop

I start apache in a console window. Everything works fine. Then I want to
stop the program so I do CTRL C.

Apache just hangs there and after about 5 minutes I get a BSOD with the
following:

Stop 0x00000076 (0x00000000 0x811F5820 0x0000001 0x00000000)
PROCESS_HAS_LOCKED_PAGES

I reinstalled Apache from scratch and no change.

Any help is appreciated.

Steve

2. Password on linksys router

3. 44 (hex) type 44 Partition

4. Discovered unfinished junkmail filter in OE6.

5. Apache 2.0.44 Server on WinXP Pro, behind a firewall

6. WMP9: how to overcome Zone Alarm?

7. NO logs with Apache 2.0.44 and rotatelogs.exe

8. Please help with adding new users to XPpro.....

9. Installation Problems - Apache 2.0.44

10. Installing PHP 4.3.0 with Apache 2.0.44 on Windows 2000 (Lengthy Post)

11. Installing FrontPage extensions on Apache 2.0.44 (Win 32)

12. Help: unable to access the Apache Web Server 2.0.44

13. Apache/2.0.44 (Win32) Server , file downloads logging e.t.c - How to ???