Re: [mp2] utf8 data garbled on second + subsequent loads

2005-02-10 Thread Roman Vašíček
I expect multiple decoding of the same text. Try to use conditional decoding $text = Encode::decode_utf8($text) if !Encode::is_utf8($text); or let us look at your code. If you are sure that source data encoding is utf8 and only utf8 flag is missing it is possible to use (but probably not

Apache.pm failed to load!

2005-02-10 Thread Vicki Brown
Help? We're running FreeBSD 4.7-RELEASE #3 Perl 5.8.5 Server version: Apache/1.3.27 (Unix) Everything has been running just fine until today when we accidentally powered down the server (the hardware as well as the web server). Now all we get in the httpd error log is Apache.pm fai

undefined symbol 'mysql_close' lazy binding failed!

2005-02-10 Thread Roman
Hi all, I'm new to mod_perl and to this mailing list. I use mod_perl for that mass virtual hosting through MySQL, I used this wonderful howto : http://davidcoulson.net/writing/lxf/39/apache.pdf So my httpd.conf contains that : - package My::MySQLTrans; use Apache::DBI; use

Re: [mp1 and mp2] Grokking memory

2005-02-10 Thread Richard F. Rebel
Ugh, okay. Last BSD system I really payed much attention to was a BSDI system, and that was years ago. There was a simple way to calculate shared memory between processes at the time in BSD/OS, but alas, I am sure it's somewhat different from Linux and I surely don't remember it. On Thu, 2005-0

Re: [mp1 and mp2] Grokking memory

2005-02-10 Thread Richard F. Rebel
Hi Perrin, Does this report or help illustrate shared COW pages between apache processes? I thought that particular part of /proc//statm reported the pages potentially shared with other processes as they are part of dynamically loaded libraries. On my 2.6 kernel: bash-2.05b$ echo $$ 25964 bash

[mp2] utf8 data garbled on second + subsequent loads

2005-02-10 Thread angie ahl
Firstly may I appologise for the length of this, I fear I won't get to the bottom of it otherwise. All of the following is being done on OS X 10.3 Server: Apache/2.0.52 (Unix) mod_perl/1.999.21 Perl/v5.8.6 I noticed today that some of my utf8 data was becoming corrupted but couldn't see why. Hebr

Re: [mp1 and mp2] Grokking memory

2005-02-10 Thread ben syverson
Arg -- I'm not being specific enough again. Sorry. This is all in FreeBSD, which I know handles memory much differently than Linux. Here's a sample line from top: PID USERNAMEPRI NICE SIZERES STATETIME WCPU CPU COMMAND 91778 nobody40 13496K 12584K select

Re: [mp2] erratum: ap_bucket_save should be ap_save_brigade

2005-02-10 Thread Stas Bekman
Dorian Taylor wrote: same issue, now with a function that exists. ;) Dorian, I still don't understand what are you talking about. Neither of the two is a part of the mod_perl 2 API. Perhaps if you show us the error message you are getting it'll be more clear. -- _

Re: [mp1 and mp2] Grokking memory

2005-02-10 Thread Perrin Harkins
On Thu, 2005-02-10 at 18:28 -0500, Richard F. Rebel wrote: > As far as I know, especially on linux, there is no way to tell exactly > how 'shared' your apache processes are, except by using apache+mod_perl > with GTop (and it's associated apache module). I certainly don't know > of a way to get th

Re: [mp1 and mp2] Grokking memory

2005-02-10 Thread Richard F. Rebel
Gosh, I am going to take a crack at this, but it's been a long while. I know somewhere this stuff is documented. On Linux these things are not terribly well documented anywhere that I have found. Okay, the VIRT/VSZ/VSS is the virtual memory size of your process. This includes all shared pages

Re: At the end of my rope with apache and mod_perl

2005-02-10 Thread Boysenberry Payne
What happens which you type: which perl perl -v perldoc DBD::mysql ok, here you are: from ~/ which perl /opt/local/bin/perl perl -v This is perl, v5.8.6 built for darwin-2level ... perldoc DBD::mysql No documentation found for "DBD::mysql" Mind you I'm in the process of reinstalling DBD::mysql...

Re: [mp1 and mp2] Grokking memory

2005-02-10 Thread ben syverson
Hi Richard, Sorry -- I should have been more specific: On Feb 10, 2005, at 4:40 PM, Richard F. Rebel wrote: How are you detecting that a process is growing by a couple megs? Via "top" on the command line. Also, you mention that the processes grow by a couple megs. By this do you mean that each sub

Re: [mp1 and mp2] Grokking memory

2005-02-10 Thread Richard F. Rebel
Hi Ben, How are you detecting that a process is growing by a couple megs? Are you looking at the VSS (virtual segment size) because if you are, on most un*x-es this figure should remain roughly the same despite shared segments. Also, you mention that the processes grow by a couple megs. By thi

[mp1 and mp2] Grokking memory

2005-02-10 Thread ben syverson
I don't think I'm getting mod_perl's shared memory scheme yet. I have a package that gets loaded in my startup.pl, and it basically does this: use vars qw(%words); open FILE ... while { $words{$_} = 1; } close FILE; ...creating a hash of words from a CR-delimited list of words. The hash

Re: preferred LB methods

2005-02-10 Thread Ron Savage
Hi FolksHere's a post I captured some time in the distant past:o Balance and Pound. I tried Balance first since itwas written in C, had a small footprint, and had very few features (it'sonly a tcp proxy with round robin balancing and fai

Re: libapreq2 - missing prerequisite

2005-02-10 Thread Barry Hoggard
On Feb 10, 2005, at 4:45 PM, Joe Schaefer wrote: Parse::RecDescent grepping apreq's trunk produced nothing matching that term. Perhaps you are asking about ExtUtils::XSBuilder's prereq list? That could be it, since I had to install that during the process. Sorry for the confusion. Barry

Re: [OSCon 2005 guidelines] what talks to submit

2005-02-10 Thread Slava Bizyayev
Thanks Perrin and Nicholas, It was my fault, now the proposal is submitted and confirmed OK. :-) Slava On Thu, 2005-02-10 at 19:12, Perrin Harkins wrote: > On Thu, 2005-02-10 at 13:04 +, Slava Bizyayev wrote: > > I've submitted my proposal, but it looks like there is no way to verify > > whe

Re: libapreq2 - missing prerequisite

2005-02-10 Thread Joe Schaefer
Barry Hoggard <[EMAIL PROTECTED]> writes: > Parse::RecDescent grepping apreq's trunk produced nothing matching that term. Perhaps you are asking about ExtUtils::XSBuilder's prereq list? -- Joe Schaefer

libapreq2 - missing prerequisite

2005-02-10 Thread Barry Hoggard
I'm just installed libapreq2-2.04_03-dev on a new system. The make failed when it couldn't find Parse::RecDescent but I didn't get a warning about that module being needed when I did perl Makefile.PL. -- Barry Hoggard Tristan Media LLC w: www.tristanmedia.com yahoo/aim: hoggardb

[mp2] "Apache.pm was not loaded"

2005-02-10 Thread ben syverson
I'm getting this error when I start Apache w/ mp2: Apache.pm was not loaded at /usr/local/etc/apache2/perl/startup.pl line 64 The line in question contains an Apache::DBI->connect_on_init. Is Apache::DBI not safe for 2.0? - ben

Re: Memory Issues

2005-02-10 Thread Perrin Harkins
On Thu, 2005-02-10 at 17:48 -0200, Leo wrote: > Because application data should be the same across all processes (and I > didn't think to use your suggestioned solutions below) when a request > comes in, I tie the application session, check to see if my modification > counter are equal. If it

Re: Memory Issues

2005-02-10 Thread Leo
Thanks Perrin Perrin Harkins wrote: Yes, although I think you mean "proxy" rather than "redirect." You're right. mod_proxy However the configuration of my lightweight apache seems daunting. It's not very hard to set up reverse proxying. You don't even need mod_rewrite for the basic thi

Re: Memory Issues

2005-02-10 Thread Perrin Harkins
On Thu, 2005-02-10 at 16:56 -0200, Leo wrote: > As a slight adaptation, I could have an apache server dedicated to each > virdual domain waiting on some high port number. And configure a > lightweight apache on port 80 (serving lightweight stuff for all domain) > to redirect (using mod_rewrite

Re: [OSCon 2005 guidelines] what talks to submit

2005-02-10 Thread Perrin Harkins
On Thu, 2005-02-10 at 13:04 +, Slava Bizyayev wrote: > I've submitted my proposal, but it looks like there is no way to verify > whether it arrives to destination or not. Website does not indicate > anything, and there are no email notification even... I got an e-mail in response to my submiss

Re: [OSCon 2005 guidelines] what talks to submit

2005-02-10 Thread Slava Bizyayev
Hi everyone, On Thu, 2005-02-03 at 02:56, Stas Bekman wrote: > > To remind: OSCON will be August 1-5 in Portland, OR. > > http://conferences.oreillynet.com/os2005/ > > Proposals are due on Feb 13, so don't procrastine and submit your > > proposals now: http://conferences.oreillynet.com/cs/os2005/

Re: At the end of my rope with apache and mod_perl

2005-02-10 Thread Barry Hoggard
On Feb 10, 2005, at 2:01 PM, Geoffrey Young wrote: sorry for showing up late, but do the OS X-specific install instructions here not help or no longer apply? http://www.modperlcookbook.org/chapters/ch01.pdf I had forgotten about those. I haven't needed to use them lately. The regular 1.x cod

Re: At the end of my rope with apache and mod_perl

2005-02-10 Thread Geoffrey Young
Barry Hoggard wrote: > What happens which you type: > > which perl > perl -v > perldoc DBD::mysql > > Do all of those work? Can you tell us what they output? > > Since you are not using SSL for now, get rid of the SSL-related lines. > I'm sorry. I didn't realize you didn't understand that p

Memory Issues

2005-02-10 Thread Leo
Hello all: I have apache2 setup with virtual domains. I am thinking about hosting some mod_perl pages in a number of domains. I don't anticipate much traffic for now, so I can experiment with this stuff :) Issue 1: What strategies can I use to separate or isolate memory per virtual domain. I

Re: At the end of my rope with apache and mod_perl

2005-02-10 Thread Barry Hoggard
What happens which you type: which perl perl -v perldoc DBD::mysql Do all of those work? Can you tell us what they output? Since you are not using SSL for now, get rid of the SSL-related lines. I'm sorry. I didn't realize you didn't understand that part. Use this to compile the static apache.

Re: preferred LB methods

2005-02-10 Thread Malcolm J Harwood
On Thursday 10 February 2005 11:54 am, Matthew Berk wrote: > Am fresh off the chapters dealing with load balancing in Practical > mod_perl, but wanted to ask if folks have had any success using LVS in > lieu of the recommended Squid Well, I can't claim success yet, as we haven't gone into produc

Re: preferred LB methods

2005-02-10 Thread Geoffrey Young
Matthew Berk wrote: > Folks, > > Am fresh off the chapters dealing with load balancing in Practical > mod_perl, but wanted to ask if folks have had any success using LVS in > lieu of the recommended Squid or if anyone's had any success with other > OS projects like Balance. Personally, I'm used

Re: contention for require()'d code library

2005-02-10 Thread Perrin Harkins
On Thu, 2005-02-10 at 12:01 -0500, Matthew Berk wrote: > I have come up with a bit of a hackish, near term solution. Wanted to > share it with the group. > > - check to see if a subroutine in the library is defined() > - if not, delete() the library name from %INC > - require() the library

Re: contention for require()'d code library

2005-02-10 Thread Matthew Berk
I have come up with a bit of a hackish, near term solution. Wanted to share it with the group. - check to see if a subroutine in the library is defined() - if not, delete() the library name from %INC - require() the library This corrects the behavior we were seeing quite well, without much ov

preferred LB methods

2005-02-10 Thread Matthew Berk
Folks, Am fresh off the chapters dealing with load balancing in Practical mod_perl, but wanted to ask if folks have had any success using LVS in lieu of the recommended Squid or if anyone's had any success with other OS projects like Balance. Personally, I'm used to shelling out for Cisco,

Re: At the end of my rope with apache and mod_perl

2005-02-10 Thread Boysenberry Payne
How can remove my fink directories from the @INC var? Do I just uninstall everything in the directories and just leave it, or is there a way to permanently remove it from being in the @INC? On Feb 10, 2005, at 7:57 AM, Peter Dyballa wrote: Am 10.02.2005 um 14:44 schrieb Boysenberry Payne: I was try

Re: Custom Form using PerlHandler with redirection

2005-02-10 Thread Geoffrey Young
Pratik wrote: >>tried on success authentication .. >>$r->header_out('redirect.html'); >>return REDIRECT; > > > Shouldn't you be doing : > > use Apache::Constants qw(REDIRECT OK); > [] > [] > $r->header_out(Location => 'redirect.html'); that would help :) in cases like

Re: At the end of my rope with apache and mod_perl

2005-02-10 Thread Boysenberry Payne
First of all I want to say thanks for your time and explanations... I'm going to try and re-explain my scenario, only because this thread has kind of bounced between two, kind of confusing them. And, to make it more complicated for me, it's on 4 lists. So here I go. About a week ago I decided to

Re: Custom Form using PerlHandler with redirection

2005-02-10 Thread Pratik
> tried on success authentication .. > $r->header_out('redirect.html'); > return REDIRECT; Shouldn't you be doing : use Apache::Constants qw(REDIRECT OK); [] [] $r->header_out(Location => 'redirect.html'); $r->status(REDIRECT); $r->send_http_header; return OK; Thanks, Pra

[mp2] erratum: ap_bucket_save should be ap_save_brigade

2005-02-10 Thread Dorian Taylor
same issue, now with a function that exists. ;)

Custom Form using PerlHandler with redirection

2005-02-10 Thread [EMAIL PROTECTED]
Hello, I am not sure how to workaround this issue. Was hoping someone could hit me with any suggestion:) I am using a custom form instead of the usual Basic or Digest popup. Authentication works fine however redirection is not working. tried on a successful authentication.. redirection a old f

Re: mod_perl - DBD::Oracle exec format error for Oracle.sl

2005-02-10 Thread Silvio Wanka
[EMAIL PROTECTED] wrote: I spent quite a bit of time getting DBD::Oracle to install on this HP-UX B.11.00 E 9000/800 box. I followed the instructions in README.hpux in the DBD::Oracle installation directory. Within this readme is also instructions for getting Apache and mod_perl running. I ended