Re: Apache::Status 'PADLIST summary' and memory usage

2004-02-11 Thread Mark Maunder
Thanks very much Stas, and the list for the archived info. On Thu, 2004-02-12 at 02:43, Stas Bekman wrote: > Mark Maunder wrote: > > I'm creating some fairly big scalars (6 megs) under mod_perl containing > > strings, and was doing some memory profiling using Apache::Status. I > > noticed at the e

? with mod_perl on OS X

2004-02-11 Thread Pat Eyler
Hi, I'm trying to get mod_perl running on my OS X (panther) system, and am running into some issues with IO. I've got a trivial script which runs properly as a cgi, but fails under Apache::PerlRun or Apache::Registry: print "Content-type: text/plain\n\n"; print "foo\n"; if i do this: my $r = s

Re: Apache::Status 'PADLIST summary' and memory usage

2004-02-11 Thread Stas Bekman
Mark Maunder wrote: I'm creating some fairly big scalars (6 megs) under mod_perl containing strings, and was doing some memory profiling using Apache::Status. I noticed at the end of the memory usage for a particular sub, in a module, there is a 'PADLIST summary', and that there is some hefty memor

Apache::Status 'PADLIST summary' and memory usage

2004-02-11 Thread Mark Maunder
I'm creating some fairly big scalars (6 megs) under mod_perl containing strings, and was doing some memory profiling using Apache::Status. I noticed at the end of the memory usage for a particular sub, in a module, there is a 'PADLIST summary', and that there is some hefty memory usage by certain v

Re: directive and ps -ef output

2004-02-11 Thread Philippe M. Chiasson
On Wed, 2004-02-11 at 14:55 -0800, Stas Bekman wrote: > Mariano Absatz wrote: > [...] > I was trying to restore argv[0] to 'httpd', but it looks like perl does some > internal magic in main(), limiting the set_magic to PL_origalen which for some > reason is very short. so I get back things like '

Re: File uploads using Apache:;request in mod_perl2

2004-02-11 Thread Kevin Bosak
I too am having issues with file uploads using mod_perl2. I've gotten the beta of Apache::Request but it looks like from this thread that there's not yet a way to retrieve the uploaded file. Is this true? Pete Smith wrote: Hi, I am new to this list, but I have tried looking through the docs

Re: directive and ps -ef output

2004-02-11 Thread Stas Bekman
Stas Bekman wrote: Mariano Absatz wrote: Hi, I'm having a weird 'problem'... actually, it's just a nuisance, but I'd like to know if 1) it can be solved 2) it's only a nuisance or it could be hidin' something else... I'm using: apache httpd 2.0.48 w/mod_perl 1.99.12 (under RedHat linux 7.2 w/st

Re: directive and ps -ef output

2004-02-11 Thread Stas Bekman
Mariano Absatz wrote: Hi, I'm having a weird 'problem'... actually, it's just a nuisance, but I'd like to know if 1) it can be solved 2) it's only a nuisance or it could be hidin' something else... I'm using: apache httpd 2.0.48 w/mod_perl 1.99.12 (under RedHat linux 7.2 w/stock perl 5.6.1 inst

Re: [mp2] UDP communications in perl module running under mod_perl2

2004-02-11 Thread Philippe M. Chiasson
On Wed, 2004-02-11 at 10:53 -0800, Stas Bekman wrote: > Michael Maciag wrote: > >>Which Unix? I've heard about the troubles with sockets on AIX (w/ mod_perl > > > > 1) > > > > Solaris 8. > > > > > >>Have you read: > > > > Yes. However, unless I'm confused, that is a bit different in that it is

Re: handler inheritance

2004-02-11 Thread Sebastian Riedel
Perrin Harkins wrote: On Wed, 2004-02-11 at 15:27, Sebastian Riedel wrote: No, that doensn't work, it just gives this failure: [Wed Feb 11 21:22:59 2004] [error] Undefined subroutine &MyHandler::SubClass->handler::handler called. Oh! I forgot you need to protoype the handler method with

Re: handler inheritance

2004-02-11 Thread Perrin Harkins
On Wed, 2004-02-11 at 15:27, Sebastian Riedel wrote: > No, that doensn't work, it just gives this failure: > > [Wed Feb 11 21:22:59 2004] [error] Undefined subroutine > &MyHandler::SubClass->handler::handler called. Oh! I forgot you need to protoype the handler method with ($$). See http://per

Re: handler inheritance

2004-02-11 Thread Sebastian Riedel
Perrin Harkins wrote: On Wed, 2004-02-11 at 15:10, Sebastian Riedel wrote: SetHandler perl-script PerlHandler MyHandler::SubClass Try PerlHandler MyHandler::SubClass->handler - Perrin No, that doensn't work, it just gives this failure: [Wed Feb 11 21:22:59 2004] [error] U

Re: [mp2] Cannot load mod_perl.so into server. Undefined symbol "Perl _vmess"

2004-02-11 Thread Stas Bekman
Roman Bessyadovskii wrote: -8<-- Start Bug Report 8<-- 1. Problem Description: After successful compile mod_perl-1.99_12 i try load mod_perl.so in httpd (Apache/2.0.48) i recive message bellow (here output mod_perl-1.99_10, that i try to install from FreeBSD

Re: handler inheritance

2004-02-11 Thread Perrin Harkins
On Wed, 2004-02-11 at 15:10, Sebastian Riedel wrote: > > SetHandler perl-script > PerlHandler MyHandler::SubClass > Try PerlHandler MyHandler::SubClass->handler - Perrin -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

handler inheritance

2004-02-11 Thread Sebastian Riedel
Hi, I have a problem with mod_perl and base.pm, maybe it's a bug, but i'm not sure yet. Test machine is: Debian unstable with Apache 1.3.29, mod_perl 1.29 and Perl 5.8.3 This is the failure message from error.log: [Wed Feb 11 19:22:56 2004] [error] Undefined subroutine

Re: Logging via rotatelog in a handler -- wise?

2004-02-11 Thread Stas Bekman
Tofu Optimist wrote: Hi -- I am a new user of MP2. Pardon my basic questions. Here's my situation: My Apache generates 4 sets of logs. Three of them are generated by Apache directly: access, error, and a custom log tracking access for certain file types. The fourth is made by a MP2 handler de

Re: Request Object Work Flow - is_initial_req, is_main, main

2004-02-11 Thread Ged Haywood
Hi there, On Wed, 11 Feb 2004, Geoffrey Young wrote: > > I am very near in completing a module that allows one to dynamically > > re-map Apache's DocumentRoot directive based on a given URI. > > this is a really difficult thing you are trying to do. Did anyone find the problem to this solution?

RE: scoping issues

2004-02-11 Thread ian douglas
> No idea I need to see more code to say what's going wrong there. Have > you thought about using one of the session modules available from CPAN? > e.g. http://search.cpan.org/~jbaker/Apache-Session-1.54/Session.pm where > you can store sessions in MySQL, ... Yes, I've been using Apache::Session::

Re: @INC is not searched

2004-02-11 Thread Stas Bekman
Steffen Beyer wrote: On Tue, 10 Feb 2004 20:29:43 -0800 Stas Bekman <[EMAIL PROTECTED]> wrote: Try to strace(1) the process (start with httpd -X so you have only one process to watch) or whatever the equivalent OpenBSD uses. Thank you, I solved it. It's a good thing to have apache chrooted to /v

RE: scoping issues

2004-02-11 Thread Perrin Harkins
On Wed, 2004-02-11 at 12:42, ian douglas wrote: > Our real webapp.pl code is 25,000 lines long, I > certainly didn't want to post that in a message ;o) Okay, but it's much easier to help you if you post a real working example. If you're still not sure how to solve the problem, post a small workin

Re: [mp2] UDP communications in perl module running under mod_perl2

2004-02-11 Thread Stas Bekman
Michael Maciag wrote: Which Unix? I've heard about the troubles with sockets on AIX (w/ mod_perl 1) Solaris 8. Have you read: Yes. However, unless I'm confused, that is a bit different in that it is an example of using APR to work with the socket established by Apache to communicate with the cli

Re: my mod_perl Server hangs

2004-02-11 Thread Stas Bekman
Volker Kroll wrote: Hi. I have a problem with my response_handler. After some time the system hangs. I do find in the error_log: [Tue Feb 10 15:58:43 2004] [error] [client 127.0.0.1] failed to get bucket brigade: 70014:End of file found Many thousand times Can someone please give me a hint w

Re: @INC is not searched

2004-02-11 Thread Steffen Beyer
On Tue, 10 Feb 2004 20:29:43 -0800 Stas Bekman <[EMAIL PROTECTED]> wrote: > Try to strace(1) the process (start with httpd -X so you have only one > process to watch) or whatever the equivalent OpenBSD uses. Thank you, I solved it. It's a good thing to have apache chrooted to /var/www. Argh. ,)

RE: scoping issues

2004-02-11 Thread ian douglas
> To be blunt, this code has a lot of problems. ... and was written in 30 seconds to give an overview of what we *really* have. It wasn't an actual snippet of the code we really use. The "defined in foo.pl" comments were for readability for posting to the list, and yes, our cursors really DO have

my mod_perl Server hangs

2004-02-11 Thread Volker Kroll
Hi. I have a problem with my response_handler. After some time the system hangs. I do find in the error_log: [Tue Feb 10 15:58:43 2004] [error] [client 127.0.0.1] failed to get bucket brigade: 70014:End of file found Many thousand times Can someone please give me a hint where to search for

Re: Request Object Work Flow - is_initial_req, is_main, main

2004-02-11 Thread Geoffrey Young
Gary C. New wrote: > I am very near in completing a module that allows one to dynamically > re-map Apache's DocumentRoot directive based on a given URI. > > I've been able to get past several obstacles, but am having a very > difficult time understanding the request object work flow. > > My probl

RE: [mp2] UDP communications in perl module running under mod_perl2

2004-02-11 Thread Michael Maciag
> Which Unix? I've heard about the troubles with sockets on AIX (w/ mod_perl 1) Solaris 8. > Have you read: Yes. However, unless I'm confused, that is a bit different in that it is an example of using APR to work with the socket established by Apache to communicate with the client. I need to esta

Re: scoping issues

2004-02-11 Thread Perrin Harkins
On Tue, 2004-02-10 at 21:13, ian douglas wrote: > We have a 'base' script, which I'll call webapp.pl, which requires a number of > other scripts, including a script that loads up a number of cursors for our > database at startup so they don't get prepared over and over and over. The > scoping of th

RE: scoping issues

2004-02-11 Thread Thomas Schindl
Please always also reply to the list. No idea I need to see more code to say what's going wrong there. Have you thought about using one of the session modules available from CPAN? e.g. http://search.cpan.org/~jbaker/Apache-Session-1.54/Session.pm where you can store sessions in MySQL, ... Tom O

[mp2] Cannot load mod_perl.so into server. Undefined symbol "Perl _vmess"

2004-02-11 Thread Roman Bessyadovskii
-8<-- Start Bug Report 8<-- 1. Problem Description: After successful compile mod_perl-1.99_12 i try load mod_perl.so in httpd (Apache/2.0.48) i recive message bellow (here output mod_perl-1.99_10, that i try to install from FreeBSD 4.2-RELEASE ports, and in

Re: Testing mod_perl

2004-02-11 Thread Stas Bekman
Ged Haywood wrote: Hi there, On Tue, 3 Feb 2004, Hemond, Steve wrote: I just installed Apache2/mod_perl2 and wants to test it. ... [Tue Feb 03 11:23:46 2004] [error] failed to resolve handler `Apache::Registry' ... What's wrong? http://perl.apache.org/docs/2.0/user/intro/start_fast.html#Regist

Re: Trouble with Apache::Test while testing mod_perl 1.99_12

2004-02-11 Thread Stas Bekman
Ged Haywood wrote: Hi there, On Mon, 2 Feb 2004, Andrew Wyllie wrote: I'm running into a problem trying to test mod_perl. When I run make test, it looks like all the servers are starting up properly, but the test script says it's still waiting for the server to start up. I'm running FreeBSD 5

Re: [mp2] UDP communications in perl module running under mod_perl2

2004-02-11 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Apache/2.0.48 (Unix) mod_perl/1.99_12 Perl/v5.8.0 Which Unix? I've heard about the troubles with sockets on AIX (w/ mod_perl 1) Should I have any difficulty running a simple socket UDP Perl module under the above configuration? Run directly from Perl, I'm able to send/re

Re: scoping issues

2004-02-11 Thread Thomas Schindl
Hi, although that's more perl than mod_perl related I'd do the following: 1) make Perl-Modules out of e.g. mysql.pl e.g. MyModule::MySQLSupport 2) load them using use MyModule::MySQLSupport in webapp.pl which should also be a Perl-Module under mod_perl e.g. MyModule::WebApp 3) When you are us

Re: Installing modperl under different directory tree

2004-02-11 Thread Stas Bekman
Hamilton, Henrique H wrote: Does anyone know of a way to install modperl 2 under a different directory tree (say under /opt/modperl_1.9.12) in Redhat Linux 7.X? I guess you've meant 1.99_12. You just go as you normally would build mp2 but add: PREFIX=/opt/modperl_1.9.12 e.g. perl Makefile.PL ...

Re: Cannot load mod_perl.so into server. Undefined symbol "Perl_vmess "

2004-02-11 Thread Stas Bekman
Roman Bessyadovskii wrote: Hi all. After successful compile mod_perl-1.99_12 i try load mod_perl.so in httpd (Apache/2.0.48) i recive message bellow (here output mod_perl-1.99_10, that i try to install from FreeBSD 4.2-RELEASE ports, and in release 12 i have same proble) What i need to check?

Re: problem installing AxKit on RH9.0 (iconv not found error)

2004-02-11 Thread Stas Bekman
mark puttnam wrote: Hi, I have tried to install AxKit on RH9.0 using the instructions at http://axkit.org/wiki/view/AxKit/AxKitRedHat9# Mark, this is a modperl list... I think Axkit has its own mailing list (try googling for it). __

Re: Registry not loaded...script still works

2004-02-11 Thread Stas Bekman
Jonathan Mangin wrote: I have a static installation of mod_perl-1.29 with apache-1.3.29. Apache::Registry lines are commented in httpd.conf and startup.pl. Apache::Status shows that ::Registry is not loaded. Why does my script still work?? PerlRequire /usr/local/apache/perl/lib/startup.pl # PerlFre