Solved

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

Posted on 2004-08-18
4
1,838 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:Marcus Bointon
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

623 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