[wplug] executing perl cgi scripts with apache2 on debian
John Harrold
jmh17 at pitt.edu
Wed Jul 14 10:23:53 EDT 2004
I've recently moved our webserver over to debian from redhat and I cannot
for the life of me get it to execute our cgi scripts. I created a test
script to figure things out. The test script looks like
<script file_name=/tmp/perltest/myfile.pl>
#! /usr/bin/perl
use strict;
use warnings;
use CGI qw/:standard/;
use CGI::Carp qw(fatalsToBrowser);
print header,
start_html('A Simple Example'),
h1('A Simple Example'),
</script>
And in /etc/apache2/conf.d/mainsite I added
<Location /tmp/perltest>
Options All
AllowOverride All
AddHandler cgi-script .pl
</Location>
ScriptAliasMatch ^/perltest/ "/tmp/perltest/myfile.pl"
ScriptAliasMatch ^/perltest "/tmp/perltest/myfile.pl"
Now whenever I try to access the script with a browser
http://site/perltest/
the web server returns something with a mime type 'test/x-perl'. I can execute
te perl script from the command line as the webservers user. I seem to recall
that the path to the script and the script must have permissions 0755, so I
made sure that was correct. I still cannot get apache to execute our scripts.
Can anyone offer any advice here?
--
----------------------------------------------------------
| /"\
john harrold | \ / ASCII ribbon campaign
jmh at member.fsf.org | X against HTML mail
the most useful idiot | / \
----------------------------------------------------------
What difference does it make to the dead, the orphans,
and the homeless, whether the mad destruction is brought
under the name of totalitarianism or the holy name of
liberty and democracy?
--Gandhi
----------------------------------------------------------
gpg --keyserver keys.indymedia.org --recv-key F65A739E
----------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://penguin.wplug.org/pipermail/wplug/attachments/20040714/2120c811/attachment-0001.bin
More information about the wplug
mailing list