I installed Mod_Perl 2.0 on Apache 2.0.43 without any problems.
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>