Return-Path: Delivered-To: apmail-httpd-test-dev-archive@www.apache.org Received: (qmail 17817 invoked from network); 9 Feb 2005 17:36:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Feb 2005 17:36:59 -0000 Received: (qmail 13704 invoked by uid 500); 9 Feb 2005 17:36:58 -0000 Delivered-To: apmail-httpd-test-dev-archive@httpd.apache.org Received: (qmail 13673 invoked by uid 500); 9 Feb 2005 17:36:58 -0000 Mailing-List: contact test-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: test-dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list test-dev@httpd.apache.org Received: (qmail 13654 invoked by uid 99); 9 Feb 2005 17:36:58 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from xwing.e-techservices.com (HELO e-techservices.com) (205.132.149.195) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 09 Feb 2005 09:36:57 -0800 Received: from xwing.e-techservices.com (localhost.localdomain [127.0.0.1]) by e-techservices.com (8.12.8/8.12.6) with ESMTP id j19HatTJ031323 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 9 Feb 2005 12:36:55 -0500 Received: from localhost (jjm@localhost) by xwing.e-techservices.com (8.12.8/8.12.6/Submit) with ESMTP id j19HatA6031319 for ; Wed, 9 Feb 2005 12:36:55 -0500 X-Authentication-Warning: xwing.e-techservices.com: jjm owned process doing -bs Date: Wed, 9 Feb 2005 12:36:55 -0500 (EST) From: Jim Martinez X-X-Sender: jjm@xwing.e-techservices.com To: test-dev@httpd.apache.org Subject: preload modules at sever startup In-Reply-To: Message-ID: 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'm looking for some suggestions for a library problem with Apache::Test, which I'm using to develop a web application. Hope this is the place to ask. Using Apache 1 and Mod perl 1, how can I preload perl modules at server startup? My extra.conf.in contains something like this: PerlModule Foo::Bar SetHandler perl-script PerlHandler Foo::Bar::myhandler "make test" fails. The apache server won't start because it can't find Foo::Bar, needed by the line "PerlModule Foo::Bar" In the link below, I read about "PerlSwitches -I@ServerRoot@/../lib" http://perl.apache.org/docs/general/testing/testing.html#Extending_Configuration_Setup Is PerlSwitches for MP2 only? In the link above I'd call the root development directory /path/to/Apache-Amazing, just so that you understand what I mean by root development directory. Here is a listing of the root development directory: CVS/ Changes MANIFEST MANIFEST.OLD MANIFEST_maybe META.yml Makefile Makefile.PL README blib/ docs/ lib/ pm_to_blib t/ Of course Foo::Bar is in lib/Foo/Bar.pm (until Apache::Test moves it to blib/ ) If I set PERL5LIB to the root development directory, the "make test" runs fine (well it shows me my programming errors is what I mean). Should I create a starup.pl file that does something like: BEGIN { use lib @ServerRoot@../lib } Then and add lines to extra.conf.in to run startup.pl. Or is there a better way? A hard coded path won't work in my situation (which is why I use the @ServerRoot@). Thanks in advance, Jim