HTTP-404 has asked for the wisdom of the Perl Monks concerning the following question:

I be messing with me httpd.conf file a lot but i can't get Perl running with Apache, could you please help me, i'm on win2000 with ActivePerl this is my httpd.conf ---------------------------
ServerType standalone ServerRoot "C:/Program Files/Apache Group/Apache" PidFile logs/httpd.pid ScoreBoardFile logs/apache_runtime_status Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MaxRequestsPerChild 0 ThreadsPerChild 50 LoadModule php4_module modules/php4apache.dll AddType application/x-httpd-php .php Port 80 ServerAdmin admin@harik.d2g.com ServerName harik.d2g.com DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs" <Directory /> Options ExecCGI AllowOverride None </Directory> <Directory "C:/Program Files/Apache Group/Apache/htdocs"> Order allow,deny Allow from all </Directory> <IfModule mod_userdir.c> UserDir "C:/Program Files/Apache Group/Apache/users/" </IfModule> AccessFileName .htaccess <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> DefaultType text/plain <IfModule mod_mime_magic.c> MIMEMagicFile conf/magic </IfModule> HostnameLookups Off ErrorLog logs/error.log LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\ +"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog logs/access.log common <IfModule mod_alias.c> Alias /icons/ "C:/Program Files/Apache Group/Apache/icons/" <Directory "C:/Program Files/Apache Group/Apache/icons"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> <Directory "C:/Program Files/Apache Group/Apache/htdocs/cgi-bin" +> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory> </IfModule>

2001-03-20 Edit by Corion: Changed PRE tags to CODE tags

Replies are listed 'Best First'.
Re: Apache+Perl
by Beatnik (Parson) on Mar 21, 2001 at 14:21 UTC
    You might need

    AddType application/x-httpd-cgi .pl .cgi

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.
Re: Apache+Perl
by dws (Chancellor) on Mar 21, 2001 at 21:53 UTC
    We need more to go on.

    Try this simple script, and post the resulting line(s) from your web and error logs.

    [test.cgi] #!c:/perl/bin/perl.exe -w print "Content-type: text/plain\n\n"; print "it works!\n";