perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Arnold <>
Subject Configuration problems
Date Wed, 09 Jun 2004 20:51:36 GMT

I've spent quite a bit of time experimenting and reading, but I am unable
to make progress with configuring mod_perl on our server. Please bear with
me, as I am a mathemtaics teacher, not a system guru by any means.

I am reading Paul Dubois's MySQL and Perl for the Web and I am stuck on
page 74 where he gives configuration instructions for mod_perl.

Our installation is what came out of the can when we installed Red Hat 9.

[root@scinux darnold]# /usr/sbin/apachectl -v
Server version: Apache/2.0.40
Server built:   Nov 27 2003 11:04:06

I followed Paul's advice and first tried:

[root@scinux darnold]# /usr/sbin/httpd -l
Compiled in modules:

OK, I said that mod_perl must then be available only as a DSO. I found on our system.

[root@scinux darnold]# locate

I wondered about the version so I did a:

[root@scinux darnold]# locate mod_perl

The last line of the output indicates our version of mod_perl.


Now, I followed Paul's instructions, create a folder /var/www/cgi-perl with
proper permissions, then and added these lines to httpd.conf:

LoadModule perl_module modules/
Alias /cgi-perl/ "/var/www/cgi-perl/"
<Location /cgi-perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    PerlSendHeader on           
    Options ExecCGI

I restarted the server with:

[root@scinux darnold]# /usr/sbin/apachectl restart
[Wed Jun 09 13:41:20 2004] [warn] module perl_module is already loaded,

Note the warning I received. When I comment out LoadModule perl_module
above, this warning disappears. However, in either case (with LoadModule
perl_module modules/ commented our uncommented), testing:

[root@scinux darnold]# HEAD / HTTP/1.0
200 OK
Content-Length: 904
Content-Type: text/html
Last-Modified: Wed, 07 Jan 2004 22:29:37 GMT
Client-Date: Wed, 09 Jun 2004 20:41:53 GMT

404 Not Found
Connection: close
Date: Wed, 09 Jun 2004 20:44:35 GMT
Server: Apache/1.3.29 (Unix) PHP/4.3.4
Content-Type: text/html
Client-Date: Wed, 09 Jun 2004 20:41:53 GMT
Client-Response-Num: 1
X-Powered-By: PHP/4.3.4

This means that mod_perl is not running. I was expecting some message about
mod_perl in the line: Server: Apache/1.3.29 (Unix) PHP/4.3.4.

So, my question. Can anyone help me with this problem? I would like to get
mod_perl going with our existing structure, if possible avoiding complete
installations of apache and mod_perl. Is there any simple thing I am
missing here?


Report problems:
Mail list info:
List etiquette:

View raw message