Re: Reloading Library Files

2002-05-18 Thread Stas Bekman
Ted Prah wrote: > Hi, > > I am new to mod_perl and am having problems seeing the > changes made to library files. Must I restart the server every > time I change a library file in order to see my changes? My > test code and environment is below. Hmm, I haven't used StatINC for a long time, any

Re: Seg fault on apache start

2002-05-18 Thread Stephen Clouse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, May 18, 2002 at 05:03:11PM -0400, Jaberwocky wrote: > I'm having some problems with this. Apache seg faults on the call to parse... http://perl.apache.org/guide/troubleshooting.html#Segfaults_when_using_XML_Parser - -- Stephen Clouse <[EMAI

Re: Modifying @INC via startup.pl

2002-05-18 Thread PinkFreud
Perhaps this might work: BEGIN { use lib qw(/dir/foo); } On Sat, May 18, 2002 at 07:50:01PM -0500, Gregory Matthews babbled thus: > X-Mailer: QUALCOMM Windows Eudora Version 5.1 > Date: Sat, 18 May 2002 19:50:01 -0500 > To: "Jaberwocky" <[EMAIL PROTECTED]> > From: Gregory Matthews <[EMAIL PROT

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: > >use lib

Re: Apache::DB

2002-05-18 Thread Gregory Matthews
Stas: Thanks again! Gregory At 01:30 AM 5/18/2002 +0800, you wrote: >[please don't forget that to CC the list!] > >Gregory Matthews wrote: >>Stas: >>Thanks for your reply on my issue in the Mod_Perl list. >>Excuse my ignorance, but how do I do the following: >>before you try to build Apache::DB

Re: error_log contents

2002-05-18 Thread Garth Winter Webb
Type this: $ perl -de 1 And tell me if it looks familiar to you. Looks like somehow, somewhere, the debugging flag is being set... G On Sat, 2002-05-18 at 14:11, Gregory Matthews wrote: > I am getting the following repeating code in my error log in doing some > testing on my script: > > DB<

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 @INC via startup.pl > I am tr

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. @INC shows: (@INC c

error_log contents

2002-05-18 Thread Gregory Matthews
I am getting the following repeating code in my error log in doing some testing on my script: DB<1> DB<1> DB<1> DB<1> DB<1> DB<1> DB<1> DB<1> Does anyone know what this means? It seems to go away when I restart apache. Gregory

Seg fault on apache start

2002-05-18 Thread Jaberwocky
I'm having some problems with this. Apache seg faults on the call to parse...   This is the code I'm calling:   package Something::Configure; sub new{  my $pkg = shift; my %params = @_; my $debug = (exists $params{debug} ? $params{debug} : 0 ); my $file = (exists $params{file} ? $params{file}

Re: Apache::DBI

2002-05-18 Thread Per Einar Ellefsen
At 19:59 18.05.2002, Gregory Matthews wrote: >Hello again: > >I figured out my Apache::DB problem with the help from Stas Bekman. Thanks! > >Now on to Apache::DBI. > >The documentation says NOT to use this module IF you are opening a special >connection for each of your users. > >Does this mean i

Re: Apache::DBI

2002-05-18 Thread Perrin Harkins
Gregory Matthews wrote: > Yes, my prog checks for valid username/password requests and issues the > proper response. So it sounds like Apache::DBI is a good solution then > since all users will be working under the same handle? Yes, that's correct.

Re: Apache::DBI

2002-05-18 Thread Gregory Matthews
Perrin: Yes, my prog checks for valid username/password requests and issues the proper response. So it sounds like Apache::DBI is a good solution then since all users will be working under the same handle? Gregory At 02:03 PM 5/18/2002 -0400, you wrote: >Gregory Matthews wrote: >>Does this me

Re: Apache::DBI

2002-05-18 Thread Perrin Harkins
Gregory Matthews wrote: > Does this mean if each user has to use a unique username/password to > OPEN the database? Yes, eaxctly. > My prog will use the same database:username:password > for all connection requests opened with a > "db_connect($database,$user,$password)" call, however, each us

Re: Apache::DB

2002-05-18 Thread Gregory Matthews
At 01:30 AM 5/18/2002 +0800, you wrote: >[please don't forget that to CC the list!] > >Gregory Matthews wrote: >>Stas: >>Thanks for your reply on my issue in the Mod_Perl list. >>Excuse my ignorance, but how do I do the following: >>before you try to build Apache::DB try to build test.c with the c

Apache::DBI

2002-05-18 Thread Gregory Matthews
Hello again: I figured out my Apache::DB problem with the help from Stas Bekman. Thanks! Now on to Apache::DBI. The documentation says NOT to use this module IF you are opening a special connection for each of your users. Does this mean if each user has to use a unique username/password to OP

Re: mod_perl and mod_cgi

2002-05-18 Thread Perrin Harkins
Konstantin Yotov wrote: > MaxClients 150 > MaxRequestsPerChild 0 You're probably running out of memory and going into swap, which will give terrible performance. MaxClients 150 is really high, and you should only set MaxRequestsPerChild to 0 if you're using Apache::SizeLimit or Apache::GTopLi

[OT] Re: '&' in regex

2002-05-18 Thread Per Einar Ellefsen
At 15:15 18.05.2002, Rizwan Majeed wrote: >I was trying this out : $SomeVar =~ /&/ ;$SomeVar =~ /'&'/ ;$SomeVar >=~ /\&/ ;none of these works. This is unrelated to mod_perl. Please ask your question somewhere related directly to Perl, such as the comp.lang.perl.misc newsgroup, perlmo

Re: '&' in regex

2002-05-18 Thread Perrin Harkins
Rizwan Majeed wrote: > I was trying this out : $SomeVar =~ /&/ ;$SomeVar =~ /'&'/ ;$SomeVar > =~ /\&/ ;none of these works. > > Need help This list is for mod_perl questions. For beginner Perl questions, you should try one of the mailing lists at http://lists.perl.org/ or post you

Re: '&' in regex

2002-05-18 Thread Mithun Bhattacharya
--- Rizwan Majeed <[EMAIL PROTECTED]> wrote: > I was trying this out : $SomeVar =~ /&/ ; > $SomeVar =~ /'&'/ ;$SomeVar > =~ /\&/ ;none of these works. Works for me in perl 5.6.1 [mithun@zorro mithun]$ perl -wT -e 'my $test = "you \& me"; print "voila\n" if $test =~ /\&/;' voila M

'&' in regex

2002-05-18 Thread Rizwan Majeed
I was trying this out : $SomeVar =~ /&/ ;$SomeVar =~ /'&'/ ;$SomeVar =~ /\&/ ;none of these works. Need help Thanks Riz - Original Message - From: "Mithun Bhattacharya" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 18, 2002 4:01 PM Subject: Re: Apache::DB

Re: Apache::DB

2002-05-18 Thread Mithun Bhattacharya
--- Ged Haywood <[EMAIL PROTECTED]> wrote: > print STDERR "[$date_time] $subroutine_name: > $something_interesting\n"; Ofcourse there is Apache::Log :). __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com

Re: Apache::DB

2002-05-18 Thread Ged Haywood
Hi all, On Sat, 18 May 2002, Stas Bekman wrote: > Gregory Matthews wrote: > > Stas: > > > > Out of curiosity, what do YOU use to debug perl running under mod_perl? > > Apache::DB I never need more than print STDERR "[$date_time] $subroutine_name: $something_interesting\n"; 73, Ged. PS: Tha

Re: modperl idle timeout....

2002-05-18 Thread Richard Clarke
Why don't you just set your maximum child requests to a reasonable number and have them restart themselves after they have executed what you would call "enough requests to need flushing". Ric. - Original Message - From: "Jim Morrison [Mailinglists]" <[EMAIL PROTECTED]> To: <[EMAIL PROTEC