At 18:57 19.05.2002, Gregory Matthews wrote:
>I added the below STDER statement and did NOT see the printout either on 
>screen or in my error_log file.
>
>It sounds like then my startup.pl file is not even being loaded?  Funny 
>though I can deliberately put a bogus module name or misspell use 
>strictttt; and I will be unable to restart the server because of it.  Can 
>this file be "read" and checked for correctness but not "loaded"?

Wow, now this is weird. Could you try something as simple as

file:startup.pl
------------------
use lib qw(/path/to/foo);
print STDERR "Loading startup.pl";
1;

And then load that with PerlRequire?

Came to think of it: could you try without Apache::DB? Maybe that's the 
source of your problems.

Finally, as a quick fix to your original problem: maybe you can use PERL5LIB:

PerlSetEnv PERL5LIB /path

in your httpd.conf.

This is all I can come up with, sorry.

>At 09:57 AM 5/19/2002 +0200, you wrote:
>>At 02:50 19.05.2002, Gregory Matthews wrote:
>>>Tried that...doesn't work either.
>>>
>>>@INC still cannot find my config.pl file.  If I add the use lib 
>>>statement to my script, all is o.k..  If I try to add it to my 
>>>startup.pl and call it at startup time, I get the error from @INC.
>>
>>Are you sure you are loading your startup.pl file before your module?
>>Are you sure it's getting loaded at all?
>>Try adding a debug statement in your startup.pl:
>>
>>print STDERR 'Loading startup.pl .... @INC = ', join ":", @INC;
>>
>>after your "use lib" part.
>>
>>>At 06:16 PM 5/18/2002 -0400, you wrote:
>>>>I did this:
>>>>
>>>>use lib qw(<path to files>);
>>>>
>>>>That adds the path to @INC. Someone correct me if that's the wrong way 
>>>>to do
>>>>things
>>>>
>>>>----- Original Message -----
>>>>From: "Gregory Matthews" <[EMAIL PROTECTED]>
>>>>To: <[EMAIL PROTECTED]>
>>>>Sent: Saturday, May 18, 2002 6:12 PM
>>>>Subject: Modifying @INC via startup.pl
>>>>
>>>>
>>>> > I am trying to:
>>>> >
>>>> > use lib qw(/dir/foo);
>>>> >
>>>> > in my startup.pl file but @INC is NOT showing the path. I keep getting
>>>> > "Can't locate config.pl in @INC" errors after restarting the server and
>>>> > calling the script.
>>>> >
>>>> > My prog reads:
>>>> >
>>>> > require qq(config.pl);
>>>> >
>>>> > I am not sure what is going on. @INC shows:
>>>> >
>>>> > (@INC contains: /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
>>>> > /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
>>>> > /usr/local/lib/perl5/site_perl/5.005 . /usr/local/www/
>>>> > /usr/local/www/lib/perl) at (eval 265) line 22.
>>>> >
>>>> > Why is the path to config.pl not showing up?  My defaults.conf reads:
>>>> >
>>>> > # mod_perl setup
>>>> > Alias /perl /usr/local/www/vhosts/host.com/perl
>>>> > PerlRequire /usr/local/www/vhosts/host.com/perl/libs/startup.pl
>>>> > PerlSetEnv PERLDB_OPTS "NonStop=1 LineInfo=/tmp/db.out AutoTrace=1
>>>>frame=2"
>>>> > PerlModule Apache::DB
>>>> > PerlWarn On
>>>> > PerlTaintCheck On
>>>> > <Directory "/usr/local/www/vhosts/host.com/perl">
>>>> >    PerlFixupHandler  +Apache::DB
>>>> >    SetHandler         perl-script
>>>> >    PerlHandler       +Apache::Registry
>>>> >    Options           +ExecCGI
>>>> >    allow from         all
>>>> >    PerlSendHeader     Off
>>>> > </Directory>
>>>> > # end mod_perl setup
>>>> >
>>>> > Thanks everyone.  This list is a lifesaver!
>>>> >
>>>> > Gregory
>>>> >
>>>> >
>>>> >
>>>> >
>>
>>--
>>Per Einar Ellefsen
>>[EMAIL PROTECTED]


Reply via email to