Re: Apache::Reload and INC path partialy working

2003-08-14 Thread Geoffrey Young
Here's my perl.conf (sourced by httpd.conf) start LoadModule perl_module modules/mod_perl.so PerlSetEnv PERL5LIB /home/bruce/public_html/ffball/myff on second thought, try PerlSwitches -I/home/bruce/public_html/ffball/myff or PerlSwitches -Mlib=/home/bruce/public_html/ffbal

Re: Apache::Reload and INC path partialy working

2003-08-14 Thread Ron Savage
Hi Folks Fascinating to see this on a non-Windows box. Reloading modules after they have been editied, eg httpd like so: PerlModule Apache::Reload PerlInitHandler Apache::Reload PerlSetVar ReloadAll Off PerlSetVar ReloadModules "CGI CGI::Application ... Sweep::*" works about 99% of the time und

Re: Apache::Reload and INC path partialy working

2003-08-14 Thread Geoffrey Young
It seems that the reload module is finding the local modules okay as it shows up in the error_log as checking the mtime. But when they do change, it dies when it tries to reload them and says they aren't in the @INC path. ok. can you show us @INC before and after the reload attempt? I'm

Fwd: Re: Apache::Reload and INC path partialy working

2003-08-14 Thread Bruce Tennant
Forwarding message as I didn't realize I was missing the list. Geoffrey Young <[EMAIL PROTECTED]> wrote: Date: Tue, 12 Aug 2003 14:18:37 -0400From: Geoffrey Young <[EMAIL PROTECTED]>To: Bruce Tennant <[EMAIL PROTECTED]>Subject: Re: Apache::Reload and INC path partialy work

Apache::Reload and INC path partialy working

2003-08-14 Thread Bruce Tennant
's my perl.conf (sourced by httpd.conf)startLoadModule perl_module modules/mod_perl.soPerlSetEnv PERL5LIB /home/bruce/public_html/ffball/myffPerlSetVar INC /home/bruce/public_html/ffball/myffPerlModule Apache2PerlModule Apache::ReloadPerlInitHandler Apache::ReloadPerlSetVar Reload

Re: Apache::Reload and INC path partialy working

2003-08-14 Thread Bruce Tennant
Ugh!  Not use to lists that reply to author.   Okay to resay what I sent to Geoffrey.   using the -I switch in the config file works, unlike the PerlSetEnv PERL5LIBGeoffrey Young <[EMAIL PROTECTED]> wrote: >> Here's my perl.conf (sourced by httpd.conf)>> start LoadModule pe

[PATCH] Apache::DBI - AutoCommit => 1 and begin_work (inc example)

2003-06-12 Thread Patrick Mulvany
Hi, Came accross a bug when when trying to reduce creation of handles on a site. Currently Apache::DBI makes the assumption that it AutoCommit => 1 then the handle does not need cleaning up. This is not neccessariliy true as begin_work switches off the AutoCommit for one transaction. First tim

Re: [error] Can't locate CGI.pm in @INC

2003-05-30 Thread Ed
On Thu, May 29, 2003 at 04:12:51PM +1000, Stas Bekman wrote: > Brown, Jeffrey wrote: > >Problem solved! > > > >You all are a fantastic resource to newbies! > > > >Jeff > > > >-Original Message- > >From: Ed [mailto:[EMAIL PROTECTED] > >Sent: Wednesday, May 28, 2003 9:28 PM > >To: Brown, Jef

Re: [error] Can't locate CGI.pm in @INC

2003-05-29 Thread Stas Bekman
Brown, Jeffrey wrote: Problem solved! You all are a fantastic resource to newbies! Jeff -Original Message- From: Ed [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 9:28 PM To: Brown, Jeffrey; [EMAIL PROTECTED] On Wed, May 28, 2003 at 09:11:06PM -0700, Brown, Jeffrey wrote: Her

RE: [error] Can't locate CGI.pm in @INC

2003-05-29 Thread Brown, Jeffrey
Problem solved! You all are a fantastic resource to newbies! Jeff -Original Message- From: Ed [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 9:28 PM To: Brown, Jeffrey; [EMAIL PROTECTED] On Wed, May 28, 2003 at 09:11:06PM -0700, Brown, Jeffrey wrote: > Here are the results fro

Re: [error] Can't locate CGI.pm in @INC

2003-05-29 Thread Ed
On Wed, May 28, 2003 at 09:11:06PM -0700, Brown, Jeffrey wrote: > Here are the results from the log file: > > [Wed May 28 20:50:21 2003] [error] No such file or directory at > /htdocs/perl/first.pl line 6 during global destruction. openbsd's httpd is chrooted. Ed.

RE: [error] Can't locate CGI.pm in @INC

2003-05-29 Thread Brown, Jeffrey
Here are the results from the log file: [Wed May 28 20:50:21 2003] [error] No such file or directory at /htdocs/perl/first.pl line 6 during global destruction. Jeff -Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 8:36 PM To: Brown, Jeffrey

RE: [error] Can't locate CGI.pm in @INC

2003-05-29 Thread Perrin Harkins
On Wed, 2003-05-28 at 23:25, Brown, Jeffrey wrote: > Do you mean give the path in my perl script? > > So the line in my code: > > use CGI qw(:standard); > > would be: > > use /usr/libdata/perl5/CGI qw(:standard); Actually, what I had in mind was just this: open(CGI, '/usr/libdata/perl5/CGI.pm

RE: [error] Can't locate CGI.pm in @INC

2003-05-29 Thread Randy Kobes
On Wed, 28 May 2003, Brown, Jeffrey wrote: > Do you mean give the path in my perl script? > So the line in my code: > use CGI qw(:standard); > would be: > use /usr/libdata/perl5/CGI qw(:standard); I think what Perrin had in mind was to try, in your CGI script, something like open(FILE, '

RE: [error] Can't locate CGI.pm in @INC

2003-05-29 Thread Brown, Jeffrey
PROTECTED] On Wed, 2003-05-28 at 22:39, Brown, Jeffrey wrote: > [Wed May 28 19:33:57 2003] [error] Can't locate CGI.pm in @INC (@INC > contains: [...] > /usr/libdata/perl5/CGI.pm This sort of thing is usually a permissions problem. Try opening that file (full path to CGI.pm) fro

RE: [error] Can't locate CGI.pm in @INC

2003-05-29 Thread Perrin Harkins
On Wed, 2003-05-28 at 23:15, Brown, Jeffrey wrote: > Here are the permissions on the file: > > -r--r--r-- 1 root wheel 224666 Apr 28 06:35 CGI.pm > > The BSD OS is new to me, I am more familure with redhat...but there are > some definite perks to OpenBSD and that is why I run it. Anyway wheel

RE: [error] Can't locate CGI.pm in @INC

2003-05-29 Thread Brown, Jeffrey
GI.pm in @INC (@INC > contains: [...] > /usr/libdata/perl5/CGI.pm This sort of thing is usually a permissions problem. Try opening that file (full path to CGI.pm) from your CGI and see if it lets you. - Perrin

Re: [error] Can't locate CGI.pm in @INC

2003-05-29 Thread Stas Bekman
ocate CGI.pm in @INC (@INC contains: /usr/local/lib/site_perl/5.6.1/i386-openbsd /usr/libdata/perl5/i386-openbsd/5.6.1 /usr/local/libdata/perl5/i386-openbsd/5.6.1 /usr/libdata/perl5 /usr/local/libdata/perl5 /usr/local/libdata/perl5/site_perl/i386-openbsd /usr/libdata/perl5/site_perl/i386-openbsd

Re: [error] Can't locate CGI.pm in @INC

2003-05-29 Thread Perrin Harkins
On Wed, 2003-05-28 at 22:39, Brown, Jeffrey wrote: > [Wed May 28 19:33:57 2003] [error] Can't locate CGI.pm in @INC (@INC > contains: [...] > /usr/libdata/perl5/CGI.pm This sort of thing is usually a permissions problem. Try opening that file (full path to CGI.pm) from your CGI

[error] Can't locate CGI.pm in @INC

2003-05-29 Thread Brown, Jeffrey
I have installed OpenBSD 3.2, with Apache 1.3.26, and mod_perl 1.26 which was installed as a package. I have rebooted, stopped and started apache. I have permissions of 755 on my perl scripts and here is my error log:   [Wed May 28 19:33:57 2003] [error] Can't locate CGI.pm in @INC

Re: [mp2] adding SERVER_ROOT and SERVER_ROOT/lib/perl to @INC

2003-04-06 Thread Stas Bekman
I've committed the code that adds SERVER_ROOT and SERVER_ROOT/lib/perl to @INC, but it's disabled if an explicit MP_COMPAT_1X=0 is passed to Makefile.PL (it's enabled by default). I'll document shortly what other mp1-compat features can be disabled by pa

Re: Addition of directory to @INC variable via startup script/mod_perl

2003-03-24 Thread Perrin Harkins
Jason Jolly wrote: When I stop/start the server and run a script with the following code: foreach $item (@INC) { print ($item . ""); } I only get the output: /usr/local/lib/perl5/5.8.0/sun4-solaris /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_

Addition of directory to @INC variable via startup script/mod_perl

2003-03-24 Thread Jason Jolly
::Registry();    use CGI();    use CGI::Session();    use CGI::Carp();    use DBI();    use Net::LDAP();       $ENV{MOD_PERL} or die "not running under mod_perl!";       1;   When I stop/start the server and run a script with the following code:       foreach $item (@INC) {    pr

Re: [mp2] adding SERVER_ROOT and SERVER_ROOT/lib/perl to @INC

2003-03-18 Thread Nick Tonkin
ing that feature and adding > >> the path myself in startup.pl or httpd.conf. > > > > > > I'm +0 on adding this feature. While I have never used it myself, I see > > no harm in keeping back-compatibility with 1.0. Unless someone has a > > reason for not hav

Re: [mp2] adding SERVER_ROOT and SERVER_ROOT/lib/perl to @INC

2003-03-18 Thread Geoffrey Young
Stas Bekman wrote: Perrin Harkins wrote: Stas Bekman wrote: The question is, do we want to have this feature in mp2? I thought it was cool to have it automatically add a path relative to the server root, because it makes it feel more like you are writing real Apache modules, and not just CG

Re: [mp2] adding SERVER_ROOT and SERVER_ROOT/lib/perl to @INC

2003-03-18 Thread Stas Bekman
Perrin Harkins wrote: Stas Bekman wrote: The question is, do we want to have this feature in mp2? I thought it was cool to have it automatically add a path relative to the server root, because it makes it feel more like you are writing real Apache modules, and not just CGI scripts. It's just

Re: [mp2] adding SERVER_ROOT and SERVER_ROOT/lib/perl to @INC

2003-03-18 Thread Perrin Harkins
Stas Bekman wrote: The question is, do we want to have this feature in mp2? I thought it was cool to have it automatically add a path relative to the server root, because it makes it feel more like you are writing real Apache modules, and not just CGI scripts. It's just a warm fuzzy thing reall

[mp2] adding SERVER_ROOT and SERVER_ROOT/lib/perl to @INC

2003-03-18 Thread Stas Bekman
Nick Tonkin wrote: On Mon, 17 Mar 2003, Perrin Harkins wrote: Goehring, Chuck Mr., RCI - San Diego wrote: Where do you put your .pm files for application-specific code? Under mod_perl 1, I just put them in /lib/perl, which is automatically added to @INC by mod_perl. Can someone confirm if

Re: about @INC and handlers directory

2003-02-02 Thread Stas Bekman
Now my questions: 1) is this directory structure correct??? 2) can it be improve??? 3) security matters? 4) IMPORTANT: how to set the @INC and where any help, tips, URL are welcome The URL is: http://perl.apache.org/docs/ If you have commons subs, you should be fine as

about @INC and handlers directory

2003-02-01 Thread Iñaki Martínez
: 1) is this directory structure correct??? 2) can it be improve??? 3) security matters? 4) IMPORTANT: how to set the @INC and where any help, tips, URL are welcome Thanks in advance

AW: PerlSwitches -M and @INC

2003-01-27 Thread Helmut Zeilinger
Apache2; use ModPerl::Registry; 1; The result of @INC in a perl script: /usr/local/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/Apache2 /test2/lib /usr/local/lib/perl5/5.8.0/i686-linux-thread-mult

Re: PerlSwitches -M and @INC

2003-01-25 Thread Stas Bekman
lSwitches -Mlib=/et/www/envirotex/lib If you use the +Clone, it already inherits everything from the parent, including @INC. So you don't need the last 3 lines. It works just fine for me with 'PerlOptions +Clone'. Perhaps you can send in your httpd.conf after you have reduced it t

Re: PerlSwitches -M and @INC

2003-01-23 Thread Dr. Helmut Zeilinger
erlOptions +Parent PerlOptions +Clone PerlModule Apache2 PerlModule Apache::compat PerlSwitches -Mlib=/et/www/envirotex/lib the result is: "[Thu Jan 23 09:12:19 2003] [error] Can't locate Emma/AuthCookieHandler.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8

Re: PerlSwitches -M and @INC

2003-01-22 Thread Stas Bekman
I one of my V-hosts i say (as described in the documentation): PerlOptions +Parent PerlSwitches -Mlib=/et/www/envirotex/lib When I start the server i get the error message: " [Wed Jan 22 13:52:07 2003] [error] Can't locate loadable object for module Apache::Constants in @INC (@I

PerlSwitches -M and @INC

2003-01-22 Thread Helmut Zeilinger
osts i say (as described in the documentation): PerlOptions +Parent PerlSwitches -Mlib=/et/www/envirotex/lib When I start the server i get the error message: " [Wed Jan 22 13:52:07 2003] [error] Can't locate loadable object for module Apache::Constants in @INC (@I

Re: Why is my mod_perl's @INC different?

2002-12-28 Thread perrin
> How did this happen? Why does my command line perl use i386-linux, > while my mod_perl uses i686-linux? Simple: they are compiled to use different installations of Perl. If you want to unify them, you can find out what mod_perl is using and put it first in your path (so that "perl" will run it)

Why is my mod_perl's @INC different?

2002-12-28 Thread Philip Mak
When I use perl from the command line, my @INC is this: $ perl -e"print join(':', @INC)" /usr/lib/perl5/5.6.1/i386-linux:/usr/lib/perl5/5.6.1:/usr/lib/perl5/site_perl/5.6.1/i386-linux:/usr/lib/perl5/site_perl/5.6.1:/usr/lib/perl5/site_perl/5.6.0:/usr/lib/perl5/site_perl:. Wh

Re: Per Vhost @INC

2002-12-10 Thread Kyle Oppenheim
I think you are confusing @INC and %INC. You should probably read up on the difference between the two. The mod_perl guide provides a lot of background on this issue: http://perl.apache.org/docs/general/perl_reference/perl_reference.html#use__ __requiredo_INC_and__INC_Explained In any

Per Vhost @INC

2002-12-10 Thread siberian
, run multiple instances of this software with different versions for a variety of reasons. Using a PerlRequire in the vhost seems to add the @INC for the entire vhost population on the server, not just my vhost. This results in 'first match wins' behavior since I would now have an @INC

Re: Apache::Reload and @INC

2002-11-28 Thread Stas Bekman
in PERL5LIB are gone away from @INC. I have Apache 1.3.27, mod_perl 1.27, Apache::Reload 0.07, perl 5.8.0 on RH7.2 and try PerlSetEnv PERL5LIB in main config section as well as in VirtualHost sections. I have bulk of VirtualHosts and would like make @INC different for each one(i.e. not use lib

Re[2]: Apache::Reload and @INC

2002-11-27 Thread Igor Vylusko
in config all libs defined in >> PERL5LIB are gone away from @INC. >> I have Apache 1.3.27, mod_perl 1.27, Apache::Reload 0.07, perl 5.8.0 >> on RH7.2 and try PerlSetEnv PERL5LIB in main config section as well as >> in VirtualHost sections. >> I have bulk of VirtualHosts

Re: Apache::Reload and @INC

2002-11-27 Thread Stas Bekman
defined in PERL5LIB are gone away from @INC. I have Apache 1.3.27, mod_perl 1.27, Apache::Reload 0.07, perl 5.8.0 on RH7.2 and try PerlSetEnv PERL5LIB in main config section as well as in VirtualHost sections. I have bulk of VirtualHosts and would like make @INC different for each one(i.e. not use

Apache::Reload and @INC

2002-11-27 Thread Igor Vylusko
are gone away from @INC. I have Apache 1.3.27, mod_perl 1.27, Apache::Reload 0.07, perl 5.8.0 on RH7.2 and try PerlSetEnv PERL5LIB in main config section as well as in VirtualHost sections. I have bulk of VirtualHosts and would like make @INC different for each one(i.e. not use lib ... in startup.pl

Re: @INC + use Lib

2002-11-14 Thread Stas Bekman
Pierre Smolarek wrote: I've been having problems with use lib. I read the extract at http://perl.apache.org/docs/1.0/guide/porting.html#_INC_and_mod_perl and realised that you can hardcode @INC via httpd.conf or startup.pl. however, i tried adding PerlSetEnv PERL5LIB to a .htaccess fil

@INC + use Lib

2002-11-14 Thread Pierre Smolarek
I've been having problems with use lib. I read the extract at http://perl.apache.org/docs/1.0/guide/porting.html#_INC_and_mod_perl and realised that you can hardcode @INC via httpd.conf or startup.pl. however, i tried adding PerlSetEnv PERL5LIB to a .htaccess file but that doesn'

Apache::Reload - patch - fixes problems with using dynamic @INC

2002-10-13 Thread Randy Harmon
I started using a dynamic @INC (set up in a TransHandler), and discovered that Apache::Reload (v0.07) was not doing its job correctly in that case. Note, changing @INC in a transhandler won't have the desired Apache::Reload effects unless the PerlInitHandler for Apache::Reload is placed

Re: @INC

2002-08-29 Thread Ufuk Yuzereroglu
Well what you said is true. I actuallay had perl 5.6.1 but I tried to use an old httpd executable compiled with 5.6.0. Adding directories to @INC would help me but each time before I would start httpd, I'd have to do that. Instead I recompiled mod_perl/apache/ssl/php bundle. And that helped

RE: @INC

2002-08-29 Thread Jesse Erlbaum
Hi Darren -- > Can't you use the perl startup file to re-write the INC array? > > I thought I'd seen a post along those lines a while back. Sure you can. I use PERL5LIB and an "unshift(@INC, ...)" all the time to push an extra path at server startup. However,

RE: @INC

2002-08-29 Thread Darren Ward
Can't you use the perl startup file to re-write the INC array? I thought I'd seen a post along those lines a while back. Darren -Original Message- From: Jesse Erlbaum [mailto:[EMAIL PROTECTED]] Sent: Friday, 30 August 2002 6:29 AM To: [EMAIL PROTECTED] Subject: RE: @INC

RE: @INC

2002-08-29 Thread Jesse Erlbaum
Hi Ufuk -- >How can I have @INC array contain the directory names > /usr/lib/perl/5.6.1 ... instead of /usr/lib/5.6.0. > Apache does not run beacuse of the value of @INC. You need to recompile Apache/mod_perl. -Jesse-

@INC

2002-08-29 Thread Ufuk Yuzereroglu
How can I have @INC array contain the directory names /usr/lib/perl/5.6.1 ... instead of /usr/lib/5.6.0. Apache does not run beacuse of the value of @INC.   UY

RE: modifying @INC at startup and version of perl used

2002-08-29 Thread Jesse Erlbaum
Hi Jamie -- > So are you forced to use the version of perl that was chosen when > mod_perl was installed? Guess so, am trying to do a local > non-root install of apache and mod_perl to see if this is so. Yes -- you are bound to use the version of Perl which was compiled into Apache. If you wan

RE: modifying @INC at startup and version of perl used

2002-08-29 Thread Jamie . Echlin
n, Jamie >Cc: [EMAIL PROTECTED] >Subject: Re: modifying @INC at startup and version of perl used > > >[EMAIL PROTECTED] wrote: >[...] > > > > So are you forced to use the version of perl that was chosen when > > mod_perl was installed? Guess so, am trying to do a loca

Re: modifying @INC at startup and version of perl used

2002-08-29 Thread Stas Bekman
[EMAIL PROTECTED] wrote: [...] > So are you forced to use the version of perl that was chosen when > mod_perl was installed? Guess so, am trying to do a local non-root > install of apache and mod_perl to see if this is so. It helps to RTFM: http://perl.apache.org/docs/1.0/guide/install.html#

RE: modifying @INC at startup and version of perl used

2002-08-29 Thread Jamie . Echlin
Thanks, but, didn't think i was a beginner... this is more of a mod_perl question because I'm aware of how to set @INC etc for normal perl scripts. Anyway I tried your advice, but, from perldoc perlvar: $] The use of this variable is deprecated and for $^V: Use of uninitialize

Re: modifying @INC at startup and version of perl used

2002-08-29 Thread mmaunder
rsion of perl mod_perl is configured to use, and if this can be >changed as a non-root user, and how to set the @INC. > > I have a simple startup script that prints @INC, which prints > @INC: /sbcimp/run/pd/perl/5.005_03/lib/sun4-solaris > /sbcimp/run/pd/perl/5.005_03/lib > /sbcimp/run/

modifying @INC at startup and version of perl used

2002-08-29 Thread Jamie . Echlin
the @INC. I have a simple startup script that prints @INC, which prints @INC: /sbcimp/run/pd/perl/5.005_03/lib/sun4-solaris /sbcimp/run/pd/perl/5.005_03/lib /sbcimp/run/pd/perl/5.005_03/lib/site_perl/sun4-solaris /sbcimp/run/pd/perl/5.005_03/lib/site_perl this makes me think I am running 5.005_03

Re: @INC

2002-07-29 Thread Ruslan V. Sulakov
Thanks, Ilya! You are right! /usr/bin/perl contains old binary from v5.00503 So, I've change it to a link pointing to /usr/local/bin/perl Now all works fine! Ruslan > Looks like your sys admin had installed perl from core and from ports > and as result you have two perl installation on systems. P

Re: @INC

2002-07-29 Thread Ilya Martynov
>>>>> On Mon, 29 Jul 2002 13:43:13 +0400, "Ruslan V. Sulakov" <[EMAIL PROTECTED]> said: RVS> My @INC contains WRONG directories!!! Help! RVS> How can I change @INC in perl for installing of Apache::SubProcess and other RVS> modules? RVS> At this

@INC

2002-07-29 Thread Ruslan V. Sulakov
My @INC contains WRONG directories!!! Help! How can I change @INC in perl for installing of Apache::SubProcess and other modules? At this time I cannot install any Apache::* related modules, because of bad @INC Platform: FreeBSD I have Apache::* modules installed in: /usr/local/lib/perl5

Re: New mod_perl website [Was Re: Modifying @INC via startup.pl]

2002-05-20 Thread Stas Bekman
Drew Taylor wrote: > This is a little OT, but I really love the new look of the website you > mention below. Major kudos to all those who helped put together the new > look-n-feel & content. Thanks Drew, but please hold off on any comments, since we are still tuning the design to work better i

New mod_perl website [Was Re: Modifying @INC via startup.pl]

2002-05-20 Thread Drew Taylor
This is a little OT, but I really love the new look of the website you mention below. Major kudos to all those who helped put together the new look-n-feel & content. Drew >At 11:53 PM 5/19/2002 +0200, you wrote: >>Thank you very much Gregory, I have patches the online docs. >> >>By the way, th

Apache::DBI debugging (was: Re: Modifying @INC via startup.pl)

2002-05-20 Thread Per Einar Ellefsen
At 23:36 19.05.2002, Gregory Matthews wrote: >># Initialize the database connections for each child >>Apache::DBI->connect_on_init >>("DBI:mysql:database=test;host=localhost", "user","password", >>{ PrintError => 1, # warn() on errors >>RaiseError => 0, # don't die on error >>AutoCommit => 1, # c

Re: Modifying @INC via startup.pl

2002-05-19 Thread Gregory Matthews
0:21 PM 5/19/2002 +0200, you wrote: >>>At 22:03 19.05.2002, Gregory Matthews wrote: >>>>Tom: >>>> >>>>Fixed it. I needed to add a 1; to the end of my startup.pl file. I was >>>>using a startup.pl file example from apache.org which did NOT hav

Re: Modifying @INC via startup.pl

2002-05-19 Thread Gregory Matthews
.2002, Gregory Matthews wrote: >>Tom: >> >>Fixed it. I needed to add a 1; to the end of my startup.pl file. I was >>using a startup.pl file example from apache.org which did NOT have this. >>Then in doing some research, found out that it needed it. Now the @INC >>

Re: Modifying @INC via startup.pl

2002-05-19 Thread Per Einar Ellefsen
At 22:03 19.05.2002, Gregory Matthews wrote: >Tom: > >Fixed it. I needed to add a 1; to the end of my startup.pl file. I was >using a startup.pl file example from apache.org which did NOT have this. >Then in doing some research, found out that it needed it. Now the @INC is &g

Re: Modifying @INC via startup.pl

2002-05-19 Thread Gregory Matthews
Tom: Fixed it. I needed to add a 1; to the end of my startup.pl file. I was using a startup.pl file example from apache.org which did NOT have this. Then in doing some research, found out that it needed it. Now the @INC is being updated at startup. Thanks for your help! Gregory At 11:40

Re: Modifying @INC via startup.pl

2002-05-19 Thread Gregory Matthews
ur 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

Re: Modifying @INC via startup.pl

2002-05-19 Thread Per Einar Ellefsen
ath 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

Re: Modifying @INC via startup.pl

2002-05-19 Thread Gregory Matthews
If I run apachectl configtest, I can see the below statement, "Loading startup.pl...", so it appears that it is at least reading it (which I knew before), but for some reason, @INC does not show an updated path per my call, use lib qw(...); . In addition, I am using the Apache::

Re: Modifying @INC via startup.pl

2002-05-19 Thread Gregory Matthews
server because of it. Can this file be "read" and checked for correctness but not "loaded"? Gregory 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

Re: Modifying @INC via startup.pl

2002-05-19 Thread Per Einar Ellefsen
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

Re: Modifying @INC via startup.pl

2002-05-18 Thread PinkFreud
om: Gregory Matthews <[EMAIL PROTECTED]> > Subject: Re: Modifying @INC via startup.pl > Cc: [EMAIL PROTECTED] > > 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 a

Re: Modifying @INC via startup.pl

2002-05-18 Thread Gregory Matthews
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. At 06:16 PM 5/18/2002 -0400, you wrote: >I did this: &g

Re: Modifying @INC via startup.pl

2002-05-18 Thread Jaberwocky
I did this: use lib qw(); 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 @

Modifying @INC via startup.pl

2002-05-18 Thread Gregory Matthews
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. @IN

Re: PerlVINC and Can't locate Foo.pm in @INC ...

2002-05-10 Thread Stas Bekman
is attempted (other standard directories edited out > for brevity): > > [Fri May 10 13:39:39 2002] [error] Can't locate DAT/Client/WWW.pm in @INC > (@INC contains: /home/ajm6q/cvs/dat-head/lib [... edited out ...]) at > /usr/lib/perl5/site_perl/5.6.1/i386-linux/Apache/PerlVINC.

PerlVINC and Can't locate Foo.pm in @INC ...

2002-05-10 Thread Aaron J Mackey
DAT/Client/WWW.pm in @INC (@INC contains: /home/ajm6q/cvs/dat-head/lib [... edited out ...]) at /usr/lib/perl5/site_perl/5.6.1/i386-linux/Apache/PerlVINC.pm line 55. The file is, of course, actually there: % ls -l /home/ajm6q/cvs/dat-head/lib/DAT/Client/WWW.pm -rwxrwxr-x1 ajm6qwebwork

Re: Ordering in %INC for PerlRestart

2002-04-10 Thread Geoffrey Young
Fran Fabrizio wrote: > > >> Thanx for the reply (I hardly get replies for subjects > >> with restart :-( I guess I'm the only one using > >> PerlFreshRestart (sic !). > > > > > > Hopefully you are the only one! > > Pardon my newbie-ness, but can someone explain the perils of > PerlFreshRestart i

Re: Ordering in %INC for PerlRestart

2002-04-10 Thread Fran Fabrizio
>> Thanx for the reply (I hardly get replies for subjects >> with restart :-( I guess I'm the only one using >> PerlFreshRestart (sic !). > > > Hopefully you are the only one! Pardon my newbie-ness, but can someone explain the perils of PerlFreshRestart in a bit more depth? I hadn't heard of

Re: Ordering in %INC for PerlRestart

2002-04-10 Thread Perrin Harkins
Sreeji K Das wrote: > Thanx for the reply (I hardly get replies for subjects > with restart :-( I guess I'm the only one using > PerlFreshRestart (sic !). Hopefully you are the only one! > My requirement is to do a neat kill of children and > then do a complete restart. I don't want any existing

Re: Ordering in %INC for PerlRestart

2002-04-10 Thread Sreeji K Das
modules. > > > > [snip] > > > >>However, here my modules are getting loaded before > the > >>PerlRequire'd is loaded (since %INC is a hash). > >> > >>First, can some1 suggest a solution for this ? > > > > > > I always s

Re: Ordering in %INC for PerlRestart

2002-04-08 Thread Perrin Harkins
Ged Haywood wrote: > Hi there, > > On Tue, 2 Apr 2002, [iso-8859-1] Sreeji K Das wrote: > > >>I use PerlFreshRestart on to reload my modules. > > [snip] > >>However, here my modules are getting loaded before the >>PerlRequire'd is loaded (since

Re: Ordering in %INC for PerlRestart

2002-04-07 Thread Ged Haywood
Hi there, On Tue, 2 Apr 2002, [iso-8859-1] Sreeji K Das wrote: > I use PerlFreshRestart on to reload my modules. [snip] > However, here my modules are getting loaded before the > PerlRequire'd is loaded (since %INC is a hash). > > First, can some1 suggest a solution for t

Ordering in %INC for PerlRestart

2002-04-01 Thread Sreeji K Das
Hi I use PerlFreshRestart on to reload my modules. This is the problem I face: I have PerlRequire "bin/startup.pl" which "require"s a lot of perl modules. However, on restart (kill USR1), mod_perl does something like: %temp = %INC; %INC = (); while (($k, $v) = each

Re: @INC Not exported in older perl's?

2002-02-20 Thread Stas Bekman
05 and now there is a > particular issue that I'm having trouble understanding. What happens > is that an included module 'require's another module, but it's @INC is > different than the one defined in the original, single CGI script. > > While one quick fix wo

Re: Influencing @INC list

2002-02-12 Thread Ged Haywood
n the way, and then add the missing paths with use lib(...)? There's lots of stuff about @INC in the Guide. 73, Ged.

Re: Influencing @INC list

2002-02-11 Thread Stephen Reppucci
: > > > >/usr/local/siteA <- directory tree containing everything for server A > >/usr/local/siteB <- directory tree containing everything for server B > > > > The default perl installation on this unix system is under > > /usr/local/lib/perl5 and

@INC Not exported in older perl's?

2002-02-07 Thread Elizabeth Barham
aving trouble understanding. What happens is that an included module 'require's another module, but it's @INC is different than the one defined in the original, single CGI script. While one quick fix would be to simply add "use lib '.'" to the beginning of this partic

Re: PerlModule not updating %INC

2001-11-21 Thread David Pisoni
At 11.00 -0500 11/21/2001, Perrin Harkins wrote: > > >David, are you using Apache::ReadConfig or anything that uses it? > >- Perrin Nope, not using ReadConfig. And to address another point, the behavior is consistant regardless of whether or not PerlFreshRestart is on. David

RE: PerlModule not updating %INC

2001-11-21 Thread Geoffrey Young
ok, here was my test... [geoff@mainsheet apache]$ diff -u conf/httpd.conf.default conf/httpd.conf --- conf/httpd.conf.default Wed Nov 21 02:00:16 2001 +++ conf/httpd.conf Wed Nov 21 11:59:35 2001 @@ -38,6 +38,8 @@ # server as "/usr/local/apache/logs/foo.log". # +PerlModule My::Foo +

RE: PerlModule not updating %INC

2001-11-21 Thread Geoffrey Young
> -Original Message- > From: Perrin Harkins [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 21, 2001 11:12 AM > To: Geoffrey Young; [EMAIL PROTECTED]; David Pisoni > Subject: Re: PerlModule not updating %INC > > > > IIRC, I ran a test with only h

Re: PerlModule not updating %INC

2001-11-21 Thread Perrin Harkins
> IIRC, I ran a test with only httpd.conf.default with only these additions > > PerlModule My::Foo > > then > > package My::Foo; > warn "initializing..."; > > > in lib/perl and I got 'initializing' on each restart. no Apache::ReadConfig > going on here. And no PerlFreshRestart?

RE: PerlModule not updating %INC

2001-11-21 Thread Geoffrey Young
> -Original Message- > From: Perrin Harkins [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 21, 2001 11:01 AM > To: Geoffrey Young; [EMAIL PROTECTED]; David Pisoni > Subject: Re: PerlModule not updating %INC > > > > I wonder if this has something t

Re: PerlModule not updating %INC

2001-11-21 Thread Perrin Harkins
the initial one that Apache does when it reparses httpd.conf) > %INC might be getting mucked up... It shouldn't. I thought the interpreter didn't actually get broken down on restart at all unless you have PerlFreshRestart on. However, I see that Doug said this: "i think that

RE: PerlModule not updating %INC

2001-11-21 Thread Geoffrey Young
> -Original Message- > From: Perrin Harkins [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 20, 2001 6:43 PM > To: David Pisoni; [EMAIL PROTECTED]; Robert Landrum > Subject: Re: PerlModule not updating %INC > [snip] > > It sounds like this is a real bug wi

Re: PerlModule not updating %INC

2001-11-20 Thread David Pisoni
use Apache::StatINC on our development server, but we never preload any modules... > We just use > > >SetHandler perl-script >PerlHandler My::Special::Module > > >and Apache::StatINC works. > >If you preload, It's not going to put the module into %INC. Otherwise A

Re: PerlModule not updating %INC

2001-11-20 Thread Perrin Harkins
> If you preload, It's not going to put the module into %INC. > Otherwise Apache::StatINC would intentionally overwrite that shared > memory and destroy the purpose for using PerlModule in the first > place. ...and that's why you shouldn't use StatINC on a production

Re: PerlModule not updating %INC

2001-11-20 Thread Robert Landrum
any modules... We just use SetHandler perl-script PerlHandler My::Special::Module and Apache::StatINC works. If you preload, It's not going to put the module into %INC. Otherwise Apache::StatINC would intentionally overwrite that shared memory and destroy the purpose for using Perl

Re: PerlModule not updating %INC

2001-11-20 Thread David Pisoni
"ISA Tree", most of them did not appear in the "Loaded >Modules" section. (I also did a test handler with a dump of the contents of %INC, >and said modules were missing.) The only modules of ours which DID appear were those >which were ALSO called for with 'use&#

  1   2   3   >