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
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
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
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
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
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
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
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/ |
+-
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
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
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
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)
12 matches
Mail list logo