Advertisement

09.04.2003 at 10:13AM PDT, ID: 20729221
[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!

7.8

Apache will not run  cgi scripts

Asked by robbiek in Apache Web Server

Tags: ,


I installed Mod_Perl 2.0 on Apache 2.0.43 without any problems.
http://perl.apache.org/docs/2.0/user/install/install.htm

I added the following lines to httpd.conf file to tell Apache to use the
Perl module I just installed:

LoadModule perl_module modules/mod_perl.so
PerlModule Apache2

The /usr/local/apache2/2.0.43/cgi-bin folder and files have 755 permissions. However Apache will not run my cgi scripts that are stored  in usr/local/apache2/2.0.43/cgi-bin/ and I get  an internal server error.
My error log says the following
[Thu Sep 04 13:42:50 2003] [error] [client 137.43.112.72] Premature end of script headers: test.html
[Thu Sep 04 13:43:04 2003] [error] [client 137.43.112.72] attempt to invoke directory as script: /usr/local/apache2/2.0.43/cgi-bin/
[Thu Sep 04 13:43:15 2003] [error] [client 137.43.112.72] Premature end of script headers: hello.cgi

Can anybody help me with this problem. Part of my httpd.conf file is below

[code]

Listen (My WebServer IP:80)

#
# Dynamic Shared Object (DSO) Support
#

 LoadModule perl_module modules/mod_perl.so
 PerlModule Apache2



# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/usr/local/apache2/2.0.43/cgi-bin/"

<IfModule mod_cgid.c>
#
# Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
# for setting UNIX socket for communicating with cgid.
#
#Scriptsock            logs/cgisock
</IfModule>

#
# "/usr/local/apache2/2.0.43/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/apache2/2.0.43/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>


[/code]

Start Free Trial
[+][-]09.04.2003 at 05:04PM PDT, ID: 9292446

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Apache Web Server
Tags: run, script
Sign Up Now!
Solution Provided By: FaithRaven
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09.08.2003 at 05:43AM PDT, ID: 9309049

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.15.2004 at 01:42PM PDT, ID: 12069536

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.20.2004 at 07:49PM PDT, ID: 12108722

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 - Hierarchy