in reply to Setting up Apache to execute .cgi file

This is a Perl forum, and you question is not a Perl question. The appropriate place to ask Apache questions in on the Apache support mailing list.


Did you tell Apache that .cgi files are CGI programs? Add

AddHandler cgi-script cgi pl

to your <Directory>.

Replies are listed 'Best First'.
Re^2: Setting up Apache to execute .cgi file
by monarch (Priest) on Jul 28, 2005 at 03:17 UTC
    Don't forget the
    ScriptAlias /cgi-bin/ /home/george/Apache/cgi-bin/
    directive.

    Also you might have a look at http://www.thesitewizard.com/archive/addcgitoapache.shtml which has a tutorial on how to set up CGI scripts on Apache for Win32.. now I know you're not using Win32 but have a read through there anyway for the general CGI configuration steps. (At least you chmod'd your script, that's a good start).

      ScriptAlias was included by default. Still in the same situation. Thanks for the link Nagesh
Re^2: Setting up Apache to execute .cgi file
by chakkaln (Sexton) on Jul 28, 2005 at 02:42 UTC
    Hi There, Thanks for the response. I added the line you suggested but there is no change as it still displays the code <Directory "/home/nagesh/apache/cgi-bin"> AllowOverride None Options ExecCGI Order allow,deny Allow from all AddHandler cgi-script cgi pl </Directory> Do I have to change any permission for the script I am trying to run? Thanks Nagesh
      Did you restart the Apache server? Apache needs a restart to re-read the config file.

      Cheers,

      Brent

      -- Yeah, I'm a Delt.
        Yes but with out any success