Solved

Premature end of script headers: php.exe, referer: http://localhost/site/Login.php

Posted on 2004-08-18
4
1,785 Views
Last Modified: 2012-08-14
Hi, thanks for your help. I am hoping someone can pinpoint the cause of this problem for me. I greatly appreciate it. Thanks.

browser error:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@domain.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.0.46 (Win32) Server at localhost Port 80



In my error log file from apache, this is the description of the error:
Premature end of script headers: php.exe, referer: http://localhost/site/Login.php
0
Comment
Question by:frogpad
4 Comments
 
LVL 7

Expert Comment

by:NetExpert
ID: 11837725
The error message provided is generic and kind of useless. Have you installed PHP properly (test with phpinfo()?)
Look like a installation problem to me.
Please specify: operating system, server (probably apache 2.0.46 on Windows) and php mode (module/cgi).

Most of the case, after install php, you need to add
AddType application/x-httpd-php .php
and
LoadModule php4_module modules/libphp4.so
to http.conf of Apache server
The last line you will need to change to point to your php module.

0
 
LVL 25

Expert Comment

by:Squinky
ID: 11838833
It could be something as simple as a syntax error in one of your scripts, if PHP is otherwise working.
0
 
LVL 8

Accepted Solution

by:
GEM100 earned 500 total points
ID: 11841270
1. You may need to reinstall apache.
2. http://bugs.php.net/bug.php?id=14822

Try to run:

<?php
echo "GEM100 rules!";
?>

and see if it works at all.
0
 

Author Comment

by:frogpad
ID: 11998375
Thanks for your help, not sure what the problem was, but a reinstall did the charm. Thanks again.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now