Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 80039 invoked from network); 9 Jun 2004 20:51:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Jun 2004 20:51:41 -0000 Received: (qmail 10271 invoked by uid 500); 9 Jun 2004 20:51:45 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 10174 invoked by uid 500); 9 Jun 2004 20:51:44 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 10160 invoked by uid 99); 9 Jun 2004 20:51:44 -0000 Message-Id: <3.0.5.32.20040609135136.00839430@mail.northcoast.com> X-Sender: darnold@mail.northcoast.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Wed, 09 Jun 2004 13:51:36 -0700 To: modperl@perl.apache.org From: David Arnold Subject: Configuration problems Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, 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: core.c prefork.c http_core.c mod_so.c OK, I said that mod_perl must then be available only as a DSO. I found mod_perl.so on our system. [root@scinux darnold]# locate mod_perl.so /usr/lib/httpd/modules/mod_perl.so 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. /usr/share/doc/mod_perl-1.99_07/README 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/mod_perl.so Alias /cgi-perl/ "/var/www/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, skipping Note the warning I received. When I comment out LoadModule perl_module modules/mod_perl.so above, this warning disappears. However, in either case (with LoadModule perl_module modules/mod_perl.so 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? Thanks. -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html