[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.6

PERL CGI - Premature end of script headers:

Asked by andersongrant24 in Perl Programming Language, Server Side Includes (SSI)

Tags: perl

I've tried all kinds of permissions combinations and simplified the program as much as possible.  I just can't seem to find what's keeping perl from running as a CGI.

I'm getting this error in the log at:
/home/httpd/vhosts/northrockbp.com/logs/error_log

Premature end of script headers: /home/httpd/vhosts/northrockbp.com/cgi-bin/hello.pl

Here's the script I'm using:
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";

print "<html><head>\n";
print "<title>Hello, world!</title></head>\n";
print "<body><h1>Hello, world!</h1></body></html>\n";

The permissions on the file are:
-rwxr-xr-x    1 northroc psacln        184 Dec 19 09:53 hello.pl

The permissions on the cgi-bin are:
drwxr-xr-x    2 northroc psacln       4096 Dec 18 16:36 cgi-bin

The perl location is:
# which perl
/usr/bin/perl

The output from the command line is:
# perl hello.pl
Content-type: text/html

<html><head>
<title>Hello, world!</title></head>
<body><h1>Hello, world!</h1></body></html>

From the browser I'm getting the standard:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request...Apache/1.3.22 Server at www.northrockbp.com Port 80
This question has been solved and asker verified.
All Experts Exchange premium technology solutions are available to subscription members.
Subscribe now for full access to Experts Exchange and get
INSTANT ACCESS TO THIS SOLUTION
Plus...
30 Day FREE access, no risk, no obligation
Collaborate with the world's top tech experts
Unlimited access to our exclusive solution database
Never be left without tech help again
 
Zones: Perl Programming Language, Server Side Includes (SSI)
Tags: perl
Solution Provided By: Peewee
Participating Experts: 7
Solution Grade: B
 
 
 
Loading Advertisement...
 
 
Loading Advertisement...
20100524-EE-VQP-164