Solved

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

Posted on 2004-08-18
4
1,795 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 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
preventing spam with mailto 22 36
mysqli insert query problems 4 22
Google Maps API and PHP 25 34
Can't Setup WAMP. Keep Being Told I've Got the Wrong Directory... 3 20
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

832 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