I would make sure in your apache httpd.conf you had
#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.cgi
</IfModule>
#
# 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/lib/cgi-bin/
#
# "/usr/lib/cgi-bin" could be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory /usr/lib/cgi-bin/>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
# AddHandler allows you to map certain file extensions to "handlers",
# actions unrelated to filetype. These can be either built into
# the server or added with the Action command (see below).
#
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
AddHandler cgi-script .cgi .sh .pl
From: linux china [mailto: [EMAIL PROTECTED]]
Sent: Friday, May 19, 2006 10:41 AM
To: debian-user@lists.debian.org
Subject: run perl cgi script
hi,
I run a perl script which is put on /usr/lib/cgi-bin directory from IE, but a download window appears instead of returning the result.
I say the cgi.load in the directory /etc/apache2/mods-enabled/, but I can't see mod_cgi by greping the output of apache2ctl -l, so could someone help me? why the script can't run?
I didn't find mod_dir.c directive in the config file, nor the module in my in apache2 directory.
Is it necessary? if is, how to install it for my debian?
On 5/20/06, Jerry DuVal <[EMAIL PROTECTED]> wrote: