Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-08-18
4
Medium Priority
?
1,860 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: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 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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 look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

972 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