Re: [opensuse] mod_perl in OpenSuse 10.2



On Thu, 15 Mar 2007, Michael Folsom <mwfolsom@xxxxxxxxx> 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:

davjam@donnas:~> 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: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [SLE] Apache2 Modules - mod_perl and jakarta tomcat
    ... > SetHandler perl-script ... > PerlOptions +ParseHeaders ... > Options +ExecCGI ...
    (SuSE)
  • Re: fetchmail problem
    ... >>seems that it got me little further, but got into new error messages. ... you should not get a connection at all. ... >exim4, sendmail, postfix, masqmail... ... I did telnet localhost 25 ...
    (Debian-User)
  • TCP Socket Question
    ... Earlier today in my C++ class, our instructor introduced us to sockets. ... string then closes the connection. ... This server and has been used by 1 users. ...
    (comp.unix.programmer)
  • Re: [opensuse] Setting up new email server on 10.3
    ... jimmee:/home/jim # telnet localhost 25 ... I just hangs at that point, nothing else happens until is says connection closed by foreign host. ... set up virtual domains so that I can add one or more as the need arrises. ... So I'm not sure working in Yast at this point will affect my main.cf? ...
    (SuSE)
  • Re: Debian Sarge mod_perl Apache 1.3
    ... >> my browser ask me if I want to save it: apache seems to not recognize the ... > SetHandler perl-script ... > PerlHandler Apache::Registry ... > Options +ExecCGI ...
    (comp.lang.perl.modules)