making versioned libraries work on the same server

2006-01-11 Thread Daniel McBrearty
Hi, If I am developing an app that has a bunch of perl modules as part of the repository (the modules are dedicated for this project), how do I get Apache/mod_perl to use the correct version? Say my repository exports like this: projectDir | | MyLib (contains "X.pm", "Y.pm" ...) | | sit

Re: making versioned libraries work on the same server

2006-01-11 Thread Tom Schindl
What version of mp are you using: mp1: http://perl.apache.org/docs/1.0/guide/modules.html#Apache__PerlVINC___Allows_Module_Versioning_in_Location_blocks_and_Virtual_Hosts mp2: Any mp2 you can give every v-host it's own perl interpreter with a different lib-path: http://perl.apache.org/d

Re: making versioned libraries work on the same server

2006-01-11 Thread John ORourke
You could check %INC to see exactly which file it's including: -- use MyLib::X; warn "Using MyLib::X from $INC{'MyLib/X.pm'}\n"; -- John Daniel McBrearty wrote: Hi, If I am developing an app that has a bunch of perl modules as part of the repository (the modules are dedicated for this

Apache::AuthDBI problem when using grp_table

2006-01-11 Thread Sean Davis
Using Apache::AuthDBI-0.9901. I get the following error in the error log (and a 500 Server error) if I include a grp_table, but it works fine without the grp_table. Undefined subroutine &Apache::Constants::OK called at /Library/Perl/5.8.6/Apache/AuthDBI.pm line 742.\n This is line 742 from Aut

Re: making versioned libraries work on the same server

2006-01-11 Thread Perrin Harkins
Daniel McBrearty wrote: Til now I've been using use lib "../.."; use MyLib::X; use lib is fine, but do it from your startup.pl and use the full path. You can use FindBin and set it relative to your script's directory. I don't know what the working dir of one of teh mod_perl processes would

Re: Apache::AuthDBI problem when using grp_table

2006-01-11 Thread Philip M. Gollucci
Sean Davis wrote: Using Apache::AuthDBI-0.9901. I get the following error in the error log (and a 500 Server error) if I include a grp_table, but it works fine without the grp_table. Undefined subroutine &Apache::Constants::OK called at /Library/Perl/5.8.6/Apache/AuthDBI.pm line 742.\n I'll

newbie installation trouble

2006-01-11 Thread Joe Deal
sh-2.05b# make test MP_APXS=/usr/local/apache2/bin/apxs cd "src/modules/perl" && make make[1]: Entering directory `/tmp/mod_perl-2.0.2/src/modules/perl' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/tmp/mod_perl-2.0.2/src/modules/perl' make[1]: Entering directory `/tmp/mod_pe

Re: newbie installation trouble

2006-01-11 Thread Barry Hoggard
On Jan 11, 2006, at 5:16 PM, Joe Deal wrote: [snip] [ error] server failed to start! (please examine t/logs/error_log) ++ | Please file a bug report: http://perl.apache.org/bugs/ | +-

Re: newbie installation trouble

2006-01-11 Thread Tyler MacDonald
Joe Deal <[EMAIL PROTECTED]> wrote: > . > > waiting 120 seconds for server to start: not ok > [ error] giving up after 121 secs. If you think that your system > is slow or o

Re: [mp2] "Expected token not present" error in logs

2006-01-11 Thread Barry Hoggard
On Jan 8, 2006, at 10:04 PM, Philip M. Gollucci wrote: Apache2: - Apache2::Request : 2.06-dev CGI: 3.15 ExtUtils::MakeMaker: 6.17 LWP: 5.803 mod_perl : 1.999021 mod_perl2 : 2.02 I'm not quite sure how Barry did this, but this

Re: newbie installation trouble

2006-01-11 Thread Glenn Gallien
Joe Deal wrote: sh-2.05b# make test MP_APXS=/usr/local/apache2/bin/apxs ... [warning] result: OK [warning] the client side drops 'root' permissions and becomes 'nobody' /usr/local/apache2/bin/httpd -d /tmp/mod_perl-2.0.2/t -f /tmp/mod_perl-2.0.2/t/conf/httpd.conf -D APACHE2 -D PERL_USEITH

Re: newbie installation trouble

2006-01-11 Thread Joe Deal
The error log states: END in modperl_extra.pl, pid=14282 [Thu Jan 05 11:44:37 2006] [crit] (13)Permission denied: apr_proc_detach failed Pre-configuration failed Permission denied where? Joe Deal DOIT Physicians Total Care 5415 S. 125th E. Avenue Suite 205 Tulsa, OK 74146 800. 759. 3650 (O)