Re: (OT ?) issue with get_remote_host

2005-02-12 Thread jonathan vanasco
Thank you. Again. (I seem to say that a lot) I was googling for portions of the error string, and diving through the pages of mod_perl cooking and practical_mod_perl -- i saw nothing. Google actually had 4 entries, at most, for most portions of the error string, which I found odd. Anyways

End result of Wiki-ish system design + final question

2005-02-12 Thread ben syverson
Thanks to all who responded for sharing their feedback and experience regarding my Wiki-like thing -- I think the result is a much better system! I have just one question, which I'll put up front -- at the end, I will describe my more-or-less "final" setup. The question is: I have a mod_perl ha

Re: (OT ?) issue with get_remote_host

2005-02-12 Thread Stas Bekman
jonathan vanasco wrote: I don't know if this is an issue with mod_perl or libapreq2 all attempts to get_remote_host error with: Can't locate auto/Apache/Request/get_remote_.al in @INC libapreq2-2.04-dev Mac OSX 10.3.7 Darwin ModPerl 2.0.RC4 (mod_perl/1.999.21) Apache/2.0.52

Re: [mp2] slurping files

2005-02-12 Thread ben syverson
On Feb 12, 2005, at 10:52 AM, Stas Bekman wrote: Ben, the answer is here: http://perl.apache.org/docs/2.0/api/Apache/RequestRec.html#C_filename_ Ah -- I see! Thanks Stas, - ben

(OT ?) issue with get_remote_host

2005-02-12 Thread jonathan vanasco
I don't know if this is an issue with mod_perl or libapreq2 all attempts to get_remote_host error with: Can't locate auto/Apache/Request/get_remote_.al in @INC libapreq2-2.04-dev Mac OSX 10.3.7 Darwin ModPerl 2.0.RC4 (mod_perl/1.999.21) Apache/2.0.52 Perl

Re: Apache.pm failed to load!

2005-02-12 Thread Vicki Brown
At 10:15 -0500 02/12/2005, Geoffrey Young wrote: >I suspect that the perl compiled with mod_perl was a different perl than the >one you expected. I did upgrade to Perl 5.8.5 sometime back and didn't rebuild mod_perl at the time (although I also left 5.6.1 in place and swear I've restarted the Apac

Re: Apache.pm failed to load!

2005-02-12 Thread Geoffrey Young
> I suspect that the perl compiled with mod_perl was a different perl than the > one you expected. I'll take a look and see if I can't make that error > message a bit better (like spitting out @INC as well or something). ok, this patch seems to be a bit better. if I remove Apache.pm from perl's

Re: [mp2] Memory not being shared

2005-02-12 Thread Kurt Hansen
Hello, Richard F. Rebel wrote: I sent a message just prior to this that contained a forward from the linux kernel mailing list that explains this further, but: The method you are using to check changed with 2.6.10 and may readily account for the changes you are seeing in your figures. In the end, y

Re: [mp2] slurping files

2005-02-12 Thread Stas Bekman
ben syverson wrote: What's the best way to slurp a file in mod_perl 2? I'm trying to use: $r->filename('somefile.txt'); $text = ${ $r->slurp_filename() }; But it returns: Error: read 23 bytes, expected 512 ('(null)') The file is 23 bytes -- is mod_perl expecting files to end in a null char? Ben, th

measuring shared memory on linux (was [Fwd: Re: /proc/*/statm, exactly what does "shared" mean?)]

2005-02-12 Thread Stas Bekman
Richard F. Rebel wrote: Hello Perrin and other modperl users, I have forwarded an email from Hugh Dickens as a follow up on recent discussion of mod_perl+apache forked children and copy-on-write pages. Thanks for pursuing that issue at the linux kernel list, Richard. As you have suggested it doesn

build problems with apache 1.3.33 and mod_perl 1.29

2005-02-12 Thread John Klassa
Untarred a fresh apache 1.3.33 and mod_perl 1.29... Ran the configure example straight out of the docs (changed directory names to match my reality :-)): perl Makefile.PL APACHE_SRC=../apache_1.3.33/src \ APACHE_PREFIX=/home/http DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 Ran m

Re: Apache.pm failed to load!

2005-02-12 Thread Geoffrey Young
Vicki Brown wrote: > At 15:38 -0500 02/11/2005, Perrin Harkins wrote: > >>Do you have a backup of your application code? I'd suggest building a >>fresh apache/perl/mod_perl, verifying that it works, and then putting >>your code in place. There are plenty of docs on perl.apache.org to help >>yo

Re: [mp2] Memory not being shared

2005-02-12 Thread Richard F. Rebel
Stas, As far as the kernel issue goes, you are right there has been changes. The meaning of 'SHARE' pages reported by the Linux kernel has changed over time. This does not necessarily mean your processes aren't sharing via COW pages, just in how the kernel reports them. I posted a response from

Re: [mp2] Memory not being shared

2005-02-12 Thread Richard F. Rebel
Hi Kurt, I sent a message just prior to this that contained a forward from the linux kernel mailing list that explains this further, but: The method you are using to check changed with 2.6.10 and may readily account for the changes you are seeing in your figures. In the end, you should not be u

[Fwd: Re: /proc/*/statm, exactly what does "shared" mean?]

2005-02-12 Thread Richard F. Rebel
Hello Perrin and other modperl users, I have forwarded an email from Hugh Dickens as a follow up on recent discussion of mod_perl+apache forked children and copy-on-write pages. As I had suspected, for our interest, the 'shared' figure represented by TOP, ps, and other tools (based on /proc//sta

[mp2] slurping files

2005-02-12 Thread ben syverson
What's the best way to slurp a file in mod_perl 2? I'm trying to use: $r->filename('somefile.txt'); $text = ${ $r->slurp_filename() }; But it returns: Error: read 23 bytes, expected 512 ('(null)') The file is 23 bytes -- is mod_perl expecting files to end in a null char? - ben