4play
02-19-2004, 12:05 AM
im trying to setup apache so i can use it to test cgi scripts in perl locally.
apache keeps showing me the scripts rather then executing them
#!/usr/bin/perl
print "Content-type:text/html\n\n";
print <<EndOfHTML;
<html><head><title>Print Environment</title></head>
<body>
EndOfHTML
foreach $key (sort(keys %ENV)) {
print "$key = $ENV{$key}<br>\n";
}
print "</body></html>";
that should work properly especially after i chmod 755. im guessing i have not setup apache properly and yes perl is installed and working ;)
apache keeps showing me the scripts rather then executing them
#!/usr/bin/perl
print "Content-type:text/html\n\n";
print <<EndOfHTML;
<html><head><title>Print Environment</title></head>
<body>
EndOfHTML
foreach $key (sort(keys %ENV)) {
print "$key = $ENV{$key}<br>\n";
}
print "</body></html>";
that should work properly especially after i chmod 755. im guessing i have not setup apache properly and yes perl is installed and working ;)