Hello B. >From the FAQ: My CGI/Perl Code Gets Returned as Plain Text Instead of Being Executed by the Webserver
Check your configuration files and make sure that the ExecCGI is turned on in your configurations. <Location /perl> SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI allow from all PerlSendHeader On </Location> Kind regards > I just installed Apache and mod_perl, but for some reason when I execute > scripts through my Apache server it shows all of the Perl code: > > #!C:/Perl/bin/Perl.exe > print "Content-type: text/html\n\n"; > > foreach $var (sort(keys(%ENV))) { > $val = $ENV{$var}; > $val =~ s|\n|\\n|g; > $val =~ s|"|\\"|g; > print "${var}=\"${val}\"\n"; > } > > I got the path found on the first line from an example Perl script > (printenv.pl) that came with the latest version of the Apache server. > > Could anybody give me a hand with a suggestion or two? > >