I'm getting max connection errors for Apache::DBI

2006-02-07 Thread Boysenberry Payne
I'm using Apache/2.0.54 (Unix) mod_apreq2-20050712/2.1.3-dev mod_perl/2.0.1 Perl/v5.8.0 After a certain level of usage I get the following error: failed: Too many connections at /usr/lib/perl5/5.8.0/Habitat/Apache2/DB.pm line 64\n, When I do a server restart it's fine for a while. What do I ne

Build problem 'make: 1254-002 Cannot find a rule to create target static from dependencies.

2006-02-07 Thread Chris Hamilton
I am trying to build mod_perl-2.0.2 on AIX 5.2 using the xlC compiler. I have successfully compiled a static version of PERL 5.8.7 and Apache httpd-2.2.0. First I ran perl Makefile.PL and when prompted entered the path for apxs (/usr/local/apache2/bin/apxs) I then ran the make and got an erro

module bug?

2006-02-07 Thread Ken Perl
I see a info in the error.log when I access the uri / and works fine, [Wed Feb 08 13:22:35 2006] [info] [client 10.0.0.1] Module bug? Request filename is missing for URI / Is the info reported by modperl2? anything wrong? -- perl -e 'print unpack(u,"62V5N\"FME;G\!E

Re: [MP2] set breakpoint

2006-02-07 Thread Ken Perl
You catched my problem, I didn't load debugger before this handler, thanks. After I changed the order in the httpd config file, my problem is solved, It stopped at the point I wanted, my $r = shift; Thanks again. On 2/8/06, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Tue, 2006-02-07 at 16:1

Re: mod_perl 2 newbie

2006-02-07 Thread Jie Gao
On Tue, 7 Feb 2006, JupiterHost.Net wrote: > Date: Tue, 07 Feb 2006 13:09:06 -0600 > From: JupiterHost.Net <[EMAIL PROTECTED]> > To: modperl@perl.apache.org > Subject: mod_perl 2 newbie > > Hello List! > > I'd like to build mod_perl/2.0.2 statically built into apache as per: > > http://perl.apa

Re: mod_perl 2 newbie

2006-02-07 Thread John ORourke
I don't know about a manual build but some installs put the perl stuff in file(s) in /usr/local/apache2/conf.d/, so it may not be mentioned in httpd.conf. JupiterHost.Net wrote: grep -i perl /usr/local/apache2/conf/httpd.conf have no output. So how do I tell if mod_perl 2 is compiled into

Re: mod_perl 2 newbie

2006-02-07 Thread JupiterHost.Net
Jonathan Vanasco wrote: There's no point to build MP2 into apache there's barely any difference in performance between the static and module versions most people i know just run the module version - its far easier to set up , and you don't have to rebuild everything on every new releas

Re: odd bug - script not executed only when passed certain argument

2006-02-07 Thread John ORourke
If it's a late night thing you'll be needing suggestions... - do ?lang=jp right after restarting the server - do ?lang=xx where xx is some random (invalid) combination of letters - clarify "does not run" - does not produce expected output? crashes? does not execute a certain bit of your code? - m

odd bug - script not executed only when passed certain argument

2006-02-07 Thread Daniel McBrearty
Hi I have a very odd bug here that is making me scratch my head. Essentially, I have a script which gets executed normally - except when one particular argument is passed to it. Then it doesn't execute - it gets spat out as a text document. My server config is maybe a bit unusual. I have this in

Re: OT? ModPerl , OSX, XML::Parser

2006-02-07 Thread David Wheeler
On Feb 7, 2006, at 12:06, Jonathan Vanasco wrote: I'm trying to get XML::Parser installed on my osx dev box. First of all, do you have XCode installed? You won't be able to install any XS modules unless you have a compiler, and gcc comes with XCode. Next, do you have libexpat installed?

Re: mod_perl 2 newbie

2006-02-07 Thread Jonathan Vanasco
There's no point to build MP2 into apache there's barely any difference in performance between the static and module versions most people i know just run the module version - its far easier to set up , and you don't have to rebuild everything on every new release

OT? ModPerl , OSX, XML::Parser

2006-02-07 Thread Jonathan Vanasco
I'm trying to get XML::Parser installed on my osx dev box. its not looking good. i can't find any info on it not compiling on google, except for a reference to a potential library conflict in libexpat between apache2 and XML::Parser does anyone know if there's any truth to that? and if s

Re: caching data in a module

2006-02-07 Thread Daniel McBrearty
Thanks Jonathan Just to be clear - the hash and the method to init it are declared and defined in MyModule like this: {  my $hash = 0; sub init {   # fill in the hash completely } sub getValue {   # get stuff (die if $hash == 0, because not init'd) } } in startup.pl is only use MyModule (); M

Apache2::compat Question

2006-02-07 Thread Cory Omand
Hello, I am trying to set up Apache::RPC::Server (RPC-XML-0.58) under MP2 (MP 2.0.2 + Apache 2.0.55 on Solaris 10 SPARC). This module was written to the MP1 API, therefore I'm loading Apache2::compat as the first 'use' statement in my server startup.pl. However, the module makes use of Apac

mod_perl 2 newbie

2006-02-07 Thread JupiterHost.Net
Hello List! I'd like to build mod_perl/2.0.2 statically built into apache as per: http://perl.apache.org/docs/2.0/user/install/install.html#Static_mod_perl However instead of making apache2 as part of mod_perl2 I'd like to 1) configure/make/etc mod_perl 2 2) add other modules 3) build apache

Re: Where is Your Apache2 Installed?

2006-02-07 Thread David Wheeler
On Feb 7, 2006, at 10:43 , Geoffrey Young wrote: that is part of the interactive config foo that I don't really understand, particular like, or use. I don't blame you, since it's clearly broken. :-) I guess what I had in mind was the custom which() subroutine and some stuff that looks for

Re: Sanity check, mod_perl 2.0 works on Apache 2.2.0 right?

2006-02-07 Thread Jonathan Vanasco
MP might work (i'm not sure), but someone was having problems with libapreq - which i believe doesn't work with 2.2.0 On Feb 7, 2006, at 9:57 AM, JupiterHost.Net wrote: Didn't see this anywhere for sure and just wanted to verify before I started a project: mod_perl 2.0 works on Apache

Re: caching data in a module

2006-02-07 Thread Jonathan Vanasco
if it is in the hash at startup, all the children will access that hash and share it. if it written to after startup.pl, use memcached On Feb 7, 2006, at 1:31 PM, Daniel McBrearty wrote: that any memory that gets written to will be seen as dirty, and therefore not shared. But if it is only

Re: Where is Your Apache2 Installed?

2006-02-07 Thread Geoffrey Young
> Uh, so, if it doesn't have MP_APXS it dies, and if it has it it dies. > Is that really how it should work? that is part of the interactive config foo that I don't really understand, particular like, or use. I guess what I had in mind was the custom which() subroutine and some stuff that looks

Re: Where is Your Apache2 Installed?

2006-02-07 Thread David Wheeler
On Feb 7, 2006, at 10:14 , David Wheeler wrote: Apache-Test contains some code for digging out httpd when it's not in your path - see TestConfig.pm for some stuff you might be able to steal. Thanks Geoff, I'll do that. Taking a quick look, I see this: my $mp2_build = modperl_b

caching data in a module

2006-02-07 Thread Daniel McBrearty
Hi all I have some multilingual pages running on mysql/modperl. I'm thinking that certain text will be retrieved again and again from the db, hence I'm thinking about caching it in a hash. There is alreaday a specific method I get that retrieves these values so just a rewrite of that method would

Re: identifying mod_perl process at runtime

2006-02-07 Thread Daniel McBrearty
Thanks all. The ENV var is indeed the best way. On 2/7/06, Frank Wiles <[EMAIL PROTECTED]> wrote: On Tue, 7 Feb 2006 06:58:24 +0100Daniel McBrearty <[EMAIL PROTECTED]> wrote:> If I have a library which is used for both mod_perl and standard cgi > processes, and I want to know at runtime which, how

Re: Where is Your Apache2 Installed?

2006-02-07 Thread David Wheeler
On Feb 7, 2006, at 09:08 , Tom Schindl wrote: and is it working and how? The first line reads in my case reads like this: -8<- package ModPerl::Config; use strict; use Apache2::Build (); [...] -8<- But that's not Apache2::Bui

Re: Where is Your Apache2 Installed?

2006-02-07 Thread David Wheeler
On Feb 7, 2006, at 09:03 , Geoffrey Young wrote: Apache-Test contains some code for digging out httpd when it's not in your path - see TestConfig.pm for some stuff you might be able to steal. Thanks Geoff, I'll do that. Best, David

Re: timestamp of Apache::DB

2006-02-07 Thread Perrin Harkins
On Tue, 2006-02-07 at 08:56 +0100, John Doe wrote: > Ken Perl am Dienstag, 7. Februar 2006 07.44: > > when Apache::DB is initialized it will write a line of log into > > error.log, but without a timestamp, > > [notice] Apache::DB initialized in child 1957 > > May I add one? > > > > -- > > perl -e '

Re: [MP2] set breakpoint

2006-02-07 Thread Perrin Harkins
On Tue, 2006-02-07 at 16:10 +0800, Ken Perl wrote: > hi, > I'd like to set a breakpoint at the first line in the module's handler, > sub handler { > my $r = shift; <-- here > ... ... >$r->set_handlers(PerlResponseHandler => \&contentHandler); > } > > So, I tried Per

Re: Where is Your Apache2 Installed?

2006-02-07 Thread Tom Schindl
David Wheeler wrote: > On Feb 7, 2006, at 08:38 , Tom Schindl wrote: > >> Your line works like a charme ;-) >> >> -8<- >> [EMAIL PROTECTED] ~]$ /opt/myperl/bin/perl -MApache2::BuildConfig -le 'print >> Apache2::BuildConfig->new->MP_APXS, $/' >> /opt/myapache/bin/apx

Re: Where is Your Apache2 Installed?

2006-02-07 Thread Geoffrey Young
David Wheeler wrote: > On Feb 7, 2006, at 08:38 , Tom Schindl wrote: > >> Your line works like a charme ;-) >> >> -8<- >> [EMAIL PROTECTED] ~]$ /opt/myperl/bin/perl -MApache2::BuildConfig -le 'print >> Apache2::BuildConfig->new->MP_APXS, $/' >> /opt/myapache/bin/a

Re: Where is Your Apache2 Installed?

2006-02-07 Thread David Wheeler
On Feb 7, 2006, at 08:38 , Tom Schindl wrote: Your line works like a charme ;-) -8<- [EMAIL PROTECTED] ~]$ /opt/myperl/bin/perl -MApache2::BuildConfig -le 'print Apache2::BuildConfig->new->MP_APXS, $/' /opt/myapache/bin/apxs [EMAIL PROTECTED] ~]$ ---

Re: Where is Your Apache2 Installed?

2006-02-07 Thread Tom Schindl
David Wheeler wrote: > On Feb 7, 2006, at 3:13 AM, Tom Schindl wrote: > >> I always thought that could be retrieved from "Apache2::BuildConfig" >> e.g. to get where you apx is located you could use: >> >> print Apache2::BuildConfig->new()->MP_APXS . "\n"; > > > Doesn't seem to work for me: > >

Re: apache2 -t... can't find Apache.pm? (fwd)

2006-02-07 Thread Ben Kim
>> 1. Are the permissions right? >when launching apache as root, permissions aren't very significant, are they? ... I don't use debian so can't tell if debian does it differently, but I actually face that error often when I create a new perl module in the perl lib directory. (since my root's defa

Re: Where is Your Apache2 Installed?

2006-02-07 Thread David Wheeler
On Feb 7, 2006, at 3:13 AM, Tom Schindl wrote: I always thought that could be retrieved from "Apache2::BuildConfig" e.g. to get where you apx is located you could use: print Apache2::BuildConfig->new()->MP_APXS . "\n"; Doesn't seem to work for me: geertz% perl -MApache2::BuildConfig -le 'pri

Re: Sanity check, mod_perl 2.0 works on Apache 2.2.0 right?

2006-02-07 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: JupiterHost.Net wrote: Didn't see this anywhere for sure and just wanted to verify before I started a project: mod_perl 2.0 works on Apache 2.2.0 (IE the next step up from 2.0) correct? TIA! Hi There , Yes it does ! KEv Thanks Kev :)

Re: [MP2] set breakpoint

2006-02-07 Thread Frank Wiles
On Tue, 7 Feb 2006 16:10:47 +0800 Ken Perl <[EMAIL PROTECTED]> wrote: > hi, > I'd like to set a breakpoint at the first line in the module's > handler, sub handler { > my $r = shift; <-- here > ... ... >$r->set_handlers(PerlResponseHandler => \&contentHandler); > }

Re: identifying mod_perl process at runtime

2006-02-07 Thread Frank Wiles
On Tue, 7 Feb 2006 06:58:24 +0100 Daniel McBrearty <[EMAIL PROTECTED]> wrote: > If I have a library which is used for both mod_perl and standard cgi > processes, and I want to know at runtime which, how can I do that? The environment variable $ENV{MOD_PERL} should be set if it is running unde

Sanity check, mod_perl 2.0 works on Apache 2.2.0 right?

2006-02-07 Thread JupiterHost.Net
Didn't see this anywhere for sure and just wanted to verify before I started a project: mod_perl 2.0 works on Apache 2.2.0 (IE the next step up from 2.0) correct? TIA!

Re: reload or restart httpd

2006-02-07 Thread Ken Perl
I also turned the debug on, but didn't see any debug message in the error.log, anyone knows why? PerlSetVar ReloadDebug On On 2/7/06, Ken Perl <[EMAIL PROTECTED]> wrote: > tried adding the two lines to the conf file, didn't work. > > On 2/6/06, Sean Davis <[EMAIL PROTECTED]> wrote: > > > > > >

Re: Ocassionally POST data is missing

2006-02-07 Thread Tom Schindl
B10m wrote: > * Peter Klump <[EMAIL PROTECTED]> [2006-02-07 13:44:56+0100] > > [POST data not arriving; using reverse proxy, or SSL?] > > >>No - neither SSL nor proxies are involved. I tried my luck anyway in >>downgraded Apache2 to 2.0.54 - however the error still persists :-(. >> >>Any other

Re: Ocassionally POST data is missing

2006-02-07 Thread B10m
* Peter Klump <[EMAIL PROTECTED]> [2006-02-07 13:44:56+0100] [POST data not arriving; using reverse proxy, or SSL?] > No - neither SSL nor proxies are involved. I tried my luck anyway in > downgraded Apache2 to 2.0.54 - however the error still persists :-(. > > Any other thoughts on this? I re

Re: Ocassionally POST data is missing

2006-02-07 Thread Peter Klump
Hi, No - neither SSL nor proxies are involved. I tried my luck anyway in downgraded Apache2 to 2.0.54 - however the error still persists :-(. Any other thoughts on this? Thanks a lot, Thomas -Ursprüngliche Nachricht- Von: David Wheeler [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 7. Fe

Re: timestamp of Apache::DB

2006-02-07 Thread Clinton Gormley
On Tue, 2006-02-07 at 07:03 -0500, Mark Galbreath wrote: > Apache 2.1 does not recognize in httpd.conf. Does this have > something to do with it's mod_perl autoload feature? > > mark It probably has more to do with the fact that it should be , not clint

Re: timestamp of Apache::DB

2006-02-07 Thread Mark Galbreath
Apache 2.1 does not recognize in httpd.conf.  Does this have something to do with it's mod_perl autoload feature?   mark>>> Ken Perl <[EMAIL PROTECTED]> 07-Feb-06 04:04:46 AM >>> Cool, I guess you mean add these lines into the conf file,use CGI::Carp;Thanks, It works.On 2/7/06, John Doe <[EMAIL

Re: [MP2] set breakpoint

2006-02-07 Thread John ORourke
Ken Perl wrote: No IDE for me too, I am using vi on a Debian terminal too. warn is easy and good, I also want a more common and more powerful interactive debugger tool, now I am trying Apache::DB and have this trouble. My bad... I was completely unaware of Apache::DB! John On 2/7/06, Joh

Re: Where is Your Apache2 Installed?

2006-02-07 Thread Tom Schindl
Hi, I always thought that could be retrieved from "Apache2::BuildConfig" e.g. to get where you apx is located you could use: print Apache2::BuildConfig->new()->MP_APXS . "\n"; Tom David Wheeler wrote: > Hi All, > > I want to create App::Info::HTTPD::Apache2 to complement > App::Info::HTTPD::A

Re: mp2 error

2006-02-07 Thread Tom Schindl
Are you sure that you the appropriate perl is used when you called perl Makefile.PL Tom The Doctor wrote: > I compiled mod perl 2.0.2 using perl 5.8.8 and upon installation > telnet localhost 80 gives me > > Apache/2.0.55 (Unix) DAV/2 mod_ruby/1.2.4 mod_python/3.1.3 Python/2.3.2 > FrontPage/5.

Re: reload or restart httpd

2006-02-07 Thread Ken Perl
tried adding the two lines to the conf file, didn't work. On 2/6/06, Sean Davis <[EMAIL PROTECTED]> wrote: > > > > On 2/6/06 9:06 AM, "Ken Perl" <[EMAIL PROTECTED]> wrote: > > > Yes, I am using Apache2, the doc is very useful. > > in httpd.conf file, I use PerlInitHandler example.pm's handler() as

Re: timestamp of Apache::DB

2006-02-07 Thread Ken Perl
Cool, I guess you mean add these lines into the conf file, use CGI::Carp; Thanks, It works. On 2/7/06, John Doe <[EMAIL PROTECTED]> wrote: > Ken Perl am Dienstag, 7. Februar 2006 07.44: > > when Apache::DB is initialized it will write a line of log into > > error.log, but without a timestamp,

Re: [MP2] set breakpoint

2006-02-07 Thread Ken Perl
No IDE for me too, I am using vi on a Debian terminal too. warn is easy and good, I also want a more common and more powerful interactive debugger tool, now I am trying Apache::DB and have this trouble. On 2/7/06, John ORourke <[EMAIL PROTECTED]> wrote: > What sort of IDE, debugger, and platform a

Re: [MP2] set breakpoint

2006-02-07 Thread John ORourke
What sort of IDE, debugger, and platform are you using? Personally for debugging handlers I find it easier to just stick a line like: warn "got here, r=$r\n" then just tail -f the error_log. Proper old school. Then again I develop with vi on an 80x24 terminal, am I missing out on something?

[MP2] set breakpoint

2006-02-07 Thread Ken Perl
hi, I'd like to set a breakpoint at the first line in the module's handler, sub handler { my $r = shift; <-- here ... ... $r->set_handlers(PerlResponseHandler => \&contentHandler); } So, I tried PerFixupHandler, PerlHandler and PerlInitHander respectively in below L