On Thu, 15 Mar 2007, Michael Folsom <[EMAIL PROTECTED]> wrote:- >David, Richard, & Bruce - > >Thanks to all - I have learned lots however still not enough to solve >the original problem - > >Anyway, after I edit mod_perl.con to include the suggested changes I >still can't run scripts from /srv/www/perl-lib that work in >/srv/www/cgi-bin --
Okay, I know I missed out a change that's required. >.................................................................... >edited mod_perl.conf ><Directory "/srv/www/perl-lib"> > AllowOverride None > Options None > Order allow,deny > Allow from all ></Directory> My working mod_perl.conf contains the following changes: <Directory "/srv/www/perl-lib"> AllowOverride None # # Options None # # make sure scripts can be executed # Options +ExecCGI -Includes Order allow,deny Allow from all </Directory> <IfModule mod_perl.c> PerlRequire "/etc/apache2/mod_perl-startup.pl" # Can't call scripts in /perl-lib/ without having /perl-lib mapped somewhere # ScriptAlias /perl-lib/ "/srv/www/perl-lib/" <Location /perl-lib/> # mod_perl mode SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders Options +ExecCGI </Location> # ScriptAlias /perl/ "/srv/www/cgi-bin/" ScriptAlias /perl/ "/srv/www/perl-lib/" <Location /perl/> # mod_perl mode SetHandler perl-script ... After editing, restart apache2 and then it should work. I'll say should, as it still might not, even though it does here: [EMAIL PROTECTED]:~> telnet localhost 80 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /perl-lib/test.pl HTTP/1.0 HTTP/1.1 200 OK Date: Fri, 16 Mar 2007 11:57:21 GMT Server: Apache/2.2.3 (Linux/SUSE) Connection: close Content-Type: text/plain mod_perl 2.0 bounces to the beat! Regards, David Bolt -- Member of Team Acorn checking nodes at 50 Mnodes/s: http://www.distributed.net/ RISCOS 3.11 | SUSE 10.0 32bit | SUSE 10.1 32bit | openSUSE 10.2 32bit RISCOS 3.6 | SUSE 10.0 64bit | SUSE 10.1 64bit | openSUSE 10.2 64bit TOS 4.02 | SUSE 9.3 32bit | | openSUSE 10.3a1 32bit -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]