Re: mod_perl httpd doesn't start as DSO

2003-11-26 Thread BeerBong
> > But... > > I found a line in startup.pl, which brokes Apache: > > use DBD::Oracle > > > > I don't know why, but simple scripts on this machine kinda > > -- > > use strict; > > use DBI; > > > > $ENV{ORACLE_HOME} = "/u01/app/oracle/product/8.1.7"; > > $ENV{NLS_LANG} = "AMERICAN_AMERIC

Re: Caching CGI scripts running under Apache::Registry

2003-11-26 Thread Perrin Harkins
> Thanks to your pointers, I've managed to write a subclass of > Apache::RegistryNG which captures what would have been the output of > Apache::RegistryNG and writes it into '/tmp/foo'. (Attached file). > > However, I cannot get this same module to actually send correctly the > captured output... H

Re: Updating 'constant' datastructures in MP2

2003-11-26 Thread Perrin Harkins
> hup it as in graceful restart? But I don't need it to re-read all of > my Perl modules, plus their inherent initializations... I just need > e.g. a hash updated... I agree with Stas -- it would be easier to use something like a dbm. MLDB::Sync works well for this stuff. When I've had to do th

Re: Updating "constant" datastructures in MP2

2003-11-26 Thread Stas Bekman
I think Apache::DB_File is just what you are after. Is that on CPAN? I can't find it. I _can_ find Apache::Session::DB_File and Apache::Session::Store::DB_File, is that what you mean? Sorry, I messed up the names and owners. I meant Tie::DB_Lock by Ken Williams, David's DB_File::Lock is som

Re: Updating "constant" datastructures in MP2

2003-11-26 Thread Elizabeth Mattijsen
At 14:02 -0800 11/26/03, Stas Bekman wrote: Elizabeth Mattijsen wrote: my $updating; $SIG{123} = sub { return if $updating++; # make sure only one at a time #update data structures; $updating = 0; }; That's what you told me back in July, which I liked. Though I haven't seen it at work

Re: Updating "constant" datastructures in MP2

2003-11-26 Thread Stas Bekman
Elizabeth Mattijsen wrote: If you are talking about serving HTTP, you probably want PerlInitHandler. Similar to Apache::Reload. But PerlInitHandler runs in the child, does it not? They all run in the child. The only hooks run by the parent process that spawns the child processes is PostConfig an

Re: Updating "constant" datastructures in MP2

2003-11-26 Thread Elizabeth Mattijsen
At 13:41 -0800 11/26/03, Stas Bekman wrote: If I remember correctly, you mentioned this to me back at YAPC::Paris in July. But back then you said you are going to gracefully restart the child processes, after updating the parent's data so that the newly spawned processes will see the updated in

Re: make test fails- can't find My::child_init

2003-11-26 Thread Stas Bekman
John Saylor wrote: [...] and this is what's in the error log: [Wed Nov 26 15:41:19 2003] [error] Can't locate My/child_init.pm in @INC (@INC c ontains: /usr/lib/perl5/5.8.0/i686-linux /usr/lib/perl5/5.8.0 /usr/lib/perl5/sit e_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_

Re: Updating "constant" datastructures in MP2

2003-11-26 Thread Stas Bekman
Elizabeth Mattijsen wrote: At 11:13 -0800 11/26/03, Stas Bekman wrote: Elizabeth Mattijsen wrote: I was wondering whether the following trick could somehow work with mod_perl 2. And excuse my preference for prefork MPM's: I guess that's the hammer to work on all my nails (pun intended). I'm o

Re: Updating "constant" datastructures in MP2

2003-11-26 Thread Elizabeth Mattijsen
At 11:13 -0800 11/26/03, Stas Bekman wrote: Elizabeth Mattijsen wrote: I was wondering whether the following trick could somehow work with mod_perl 2. And excuse my preference for prefork MPM's: I guess that's the hammer to work on all my nails (pun intended). I'm open to other solutions to th

Re: make test fails- can't find My::child_init

2003-11-26 Thread John Saylor
hi ( 03.11.26 10:45 -0800 ) Stas Bekman: > Aha! Sorry for missing this point. Any luck with this patch? > Index: t/docs/startup.pl > === > RCS file: /home/cvs/modperl/t/docs/startup.pl,v > retrieving revision 1.44 > diff -u -r1.44 st

Re: qpsmtpd Was: Re: mod_perl smtp server

2003-11-26 Thread Stas Bekman
C. Jon Larsen wrote: qpsmtpd - http://develooper.com/code/qpsmtpd/ - is written in a way so it should be possible to make it run under mod_perl. - ask I was considering using qpsmtpd to front end a sendmail-driven MailScanner box that gets about 30K messages per day. The thought was that qpsmtpd

Re: repost: mod_perl get method params with SSI

2003-11-26 Thread Stas Bekman
Igor wrote: I am calling an ssi-enabled html page and it has an SSI request to a mod_perl script. I am making a request to http://localhost/info.shtml?name=john&age=25&sex=m Or something similar. Now. How can I get the params passed to shtml from within mod_perl program ? I tried the script bel

qpsmtpd Was: Re: mod_perl smtp server

2003-11-26 Thread C. Jon Larsen
> qpsmtpd - http://develooper.com/code/qpsmtpd/ - is written in a way > so it should be possible to make it run under mod_perl. > > - ask I was considering using qpsmtpd to front end a sendmail-driven MailScanner box that gets about 30K messages per day. The thought was that qpsmtpd would be

Re: Updating "constant" datastructures in MP2

2003-11-26 Thread Stas Bekman
Elizabeth Mattijsen wrote: I was wondering whether the following trick could somehow work with mod_perl 2. And excuse my preference for prefork MPM's: I guess that's the hammer to work on all my nails (pun intended). I'm open to other solutions to this "problem"! Liz, when you are talking abou

Re: make test fails- can't find My::child_init

2003-11-26 Thread Stas Bekman
John Saylor wrote: when i run make test i keep getting errors like this: [Tue Nov 25 17:12:11 2003] [error] Can't locate My/child_init.pm in @INC [...] it's all in the mod_perl tests. this is not my code at all! this is the part where the webserver starts up before doing the mod_perl testing. i g

Re: Unable to install mod_perl using several tutorials...

2003-11-26 Thread Stas Bekman
tvilliers wrote: [...] but via the web, I get an Internal Server Error and in the error_log Premature end of script headers: /var/www/cgi-bin/index.pl print "Content-type:text/html\n\n" ; and " " are missing. Should be: print "Content-type: text/html\n\n"; __

[admin] please trim quoted text in your replies!

2003-11-26 Thread Stas Bekman
Jonathan and others, please quote only the relevant context you are replying to. If you have to do the awful reply-on-top, just delete the whole quoted text, we already have the original messages to find the context, and the quoting at the bottom is unusable anyway. May I suggest that when you

RE: MIME::Lite and Excel

2003-11-26 Thread Goehring, Chuck Mr., RCI - San Diego
Eric I arrived at this method (works under mod_perl)to send images as attachements: $msg = build MIME::Lite From => $aApobj->getEmail_Address, To => $recip, Subject => $Sub, Type => 'TEXT', Data => $lPB; $OpStatus .= "Recipient: $recip."; if($aReceipt ne '

Re: PerlSetVar with '0' value

2003-11-26 Thread Stas Bekman
Enrico Sorcinelli wrote: [...] Index: src/modules/perl/Apache.xs [...] -if (!SvTRUE(RETVAL)) { +if (!SvOK(RETVAL)) { [...] Hi Geoff, the patch seems to work fine. I've applied it over mp 1.29 (with Apache 1.3.28) Since this is a bug, fixing it is a right thing to do. If someone was relying

Re: mod_perl httpd doesn't start as DSO

2003-11-26 Thread Stas Bekman
BeerBong wrote: Program received signal SIGABRT, Aborted. [Switching to Thread 1024 (LWP 17423)] 0x40107781 in kill () from /lib/libc.so.6 (gdb) source ~alexei/forge/furnace/libapache-mod-perl-1.26/.gdbinit (gdb) up #1 0x40373cd3 in Perl_my_unexec () from /usr/lib/libperl.so.5.6 (gdb) curinfo Atte

Re: Caching CGI scripts running under Apache::Registry

2003-11-26 Thread Jean-Michel Hiver
> If you're willing to enter the wild-n-wooly world of object-oriented > mod_perl handlers you might consider trying Apache::CacheContent > (available on CPAN), which is based on Cookbook::CacheContent in the > mod_perl Developer's Cookbook. Aha! Cheers for this. I've made /some/ progress, but it'

Re: Unable to install mod_perl using several tutorials...

2003-11-26 Thread Jonathan Villa
Ok, I should have read the FAQ for Openwebmail first... which says that openwebmail cannot be used with mod_perl... that would have saved me some time in thinking that perhaps it was because of mod_perl and joining this list... thanks for at least reading this... Jonathan Villa wrote: Sorry f

Re: Caching CGI scripts running under Apache::Registry

2003-11-26 Thread Randal L. Schwartz
> "Jean-Michel" == Jean-Michel Hiver <[EMAIL PROTECTED]> writes: Jean-Michel> However certain dynamic pages remain uncached, such as: Jean-Michel> http://mkdoc.com/.sitemap.html Jean-Michel> http://mkdoc.com/.print.html Jean-Michel> What I need is a generic apache handler which would cac

Re: MIME::Lite and Excel

2003-11-26 Thread Sven Geisler
Hi Eric, Did you try Path instead of FH? Sven. Am Mit, 2003-11-26 um 17.54 schrieb [EMAIL PROTECTED]: > Hey all, > >I am trying to get MIME::Lite to attach an Excel spreadsheet created via > Spreadsheet::WriteExcel to an outgoing email and something is not working > quite right. > >He

Re: MIME::Lite and Excel

2003-11-26 Thread Chris Grau
On Wed, Nov 26, 2003 at 04:54:08PM -, [EMAIL PROTECTED] wrote: > Hey all, > >I am trying to get MIME::Lite to attach an Excel spreadsheet created via > Spreadsheet::WriteExcel to an outgoing email and something is not working > quite right. [snip] This doesn't appear to have anything to d

MIME::Lite and Excel

2003-11-26 Thread ero
Hey all, I am trying to get MIME::Lite to attach an Excel spreadsheet created via Spreadsheet::WriteExcel to an outgoing email and something is not working quite right. Here's the code: my $mail = MIME::Lite->new( From =>'[EMAIL PROTECTED]', To =

Re: Unable to install mod_perl using several tutorials...

2003-11-26 Thread Chris Grau
On Wed, Nov 26, 2003 at 10:41:56AM -0600, Jonathan Villa wrote: > Sorry for the repeats > > I noticed that on the top of the pages, there is > > #!/usr/bin/suidperl -T > > so I tried that on the command line and get this: > > Script is not setuid/setgid in suidperl I'm not familiar with su

Re: Unable to install mod_perl using several tutorials...

2003-11-26 Thread Jonathan Villa
Sorry for the repeats I noticed that on the top of the pages, there is #!/usr/bin/suidperl -T so I tried that on the command line and get this: Script is not setuid/setgid in suidperl ??? Jonathan Villa wrote: I did the Content-Type and nothing new... So you're saying that Openwebmail d

Re: Unable to install mod_perl using several tutorials...

2003-11-26 Thread Jonathan Villa
I even tried a simple index.html within the /var/www/cgi-bin dir... FYI, I do have suidperl installed Jonathan Villa wrote: I did the Content-Type and nothing new... So you're saying that Openwebmail does not require mod_perl? This is the main thing I need to get setup...so perhaps I should l

Re: Unable to install mod_perl using several tutorials...

2003-11-26 Thread Jonathan Villa
I did the Content-Type and nothing new... So you're saying that Openwebmail does not require mod_perl? This is the main thing I need to get setup...so perhaps I should look into the openwebmail forum for a solution? The only thing that confuses me is how does a web based program work without

Re: Unable to install mod_perl using several tutorials...

2003-11-26 Thread tvilliers
On Wed, 26 Nov 2003 09:36:39 -0600, Jonathan Villa wrote: > Ok, I'm trying to install OpenWebMail but I keep getting an Internal > Server Error when I try to access it via the web. > > Here is what I have/did > > Installed: Apache 1.3.29/mod_ssl 2.8.16-1.3.29/PHP 4.3.4 Installed: v5.8.2 > built

Unable to install mod_perl using several tutorials...

2003-11-26 Thread Jonathan Villa
Ok, I'm trying to install OpenWebMail but I keep getting an Internal Server Error when I try to access it via the web. Here is what I have/did Installed: Apache 1.3.29/mod_ssl 2.8.16-1.3.29/PHP 4.3.4 Installed: v5.8.2 built for i686-linux I'm trying to install mod_perl 1.29 and I've followed sev

RE: authentication with smb

2003-11-26 Thread Tauber, Mathias HDP
> 1. Updated Authen::Smb with this: > > use Fcntl qw(:flock); > ... > open S, "> /full/path/to/AuthenSmb.lck" or > die "Can't open AuthenSmb.lck: $!\n"; > flock S, LOCK_EX; > my $res = Valid_User($username, $password, $server, $backup, $domain); > close S; I was given this solution, to fix the pr

Re: mod_perl httpd doesn't start as DSO

2003-11-26 Thread BeerBong
> Program received signal SIGABRT, Aborted. > [Switching to Thread 1024 (LWP 17423)] > 0x40107781 in kill () from /lib/libc.so.6 > (gdb) source ~alexei/forge/furnace/libapache-mod-perl-1.26/.gdbinit > (gdb) up > #1 0x40373cd3 in Perl_my_unexec () from /usr/lib/libperl.so.5.6 > (gdb) curinfo > Atte

Re: Caching CGI scripts running under Apache::Registry

2003-11-26 Thread Paul Lindner
On Wed, Nov 26, 2003 at 11:40:19AM +, Jean-Michel Hiver wrote: > Hi List, > > At the moment my application runs as a mix of mod_perl handlers and a > rather large-ish Apache::Registry CGI program. > > Initially the application was generating everything on the fly. Due to > performance issues,

Updating "constant" datastructures in MP2

2003-11-26 Thread Elizabeth Mattijsen
I was wondering whether the following trick could somehow work with mod_perl 2. And excuse my preference for prefork MPM's: I guess that's the hammer to work on all my nails (pun intended). I'm open to other solutions to this "problem"! The problem: - When you're using prefork

Re: make test fails- can't find My::child_init

2003-11-26 Thread John Saylor
hi > John Saylor wrote: > >when i run make test i keep getting errors like this: > > > >[Tue Nov 25 17:12:11 2003] [error] Can't locate My/child_init.pm in @INC > >(@INC contains: /usr/lib/perl5/5.8.0/i686-linux /usr/lib/perl5/5.8.0 > >/usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_

Re: Perl 5.8.2 and @INC confusion

2003-11-26 Thread Andrew Sterling Hanenkamp
Thanks for the prompt reply. Stas Bekman wrote: You probably have a messed up perl install. Nuke completely /home/sterling/local/apache-1.3/lib/perl5 rebuild the new perl, rebuild mod_perl and it should all be fine. I did this once actually. When I rebuilt mod_perl the second time, I did an rm

repost: mod_perl get method params with SSI

2003-11-26 Thread Igor
Reposting... since I unintentionally sent the previous message as html. Thanks Stas Bekman for noticing. --- Hello everybody. I am calling an ssi-enabled html page and it has an SSI request to a mod_perl script. I am making a request to http://localhost/info.shtml?name=john&age=25&

Caching CGI scripts running under Apache::Registry

2003-11-26 Thread Jean-Michel Hiver
Hi List, At the moment my application runs as a mix of mod_perl handlers and a rather large-ish Apache::Registry CGI program. Initially the application was generating everything on the fly. Due to performance issues, I started writing a little cache manager so that most pages are cached, such as:

Re: mod_perl httpd doesn't start as DSO

2003-11-26 Thread BeerBong
> > Hello! > > > > I wanted to build a debian package of apache for my specific purposes. > > My specific purpose is mod_accel support. > > I downloaded a source for apache debian package (apache-1.3.26) > > from stable distribution, add mod_accel patches and it > > have been compiled well. > [...]

Re: PerlSetVar with '0' value

2003-11-26 Thread Enrico Sorcinelli
On Tue, 25 Nov 2003 15:47:07 -0500 Geoffrey Young <[EMAIL PROTECTED]> wrote: > > I'll > > take a look at 1.0 "soonish" > > it looks like the logic is pretty much the same in 1.0 as well. > > please try this (untested) patch and let me know if it fixes things for you. > > --Geoff > > Index: sr

Re: PerlSetVar with '0' value

2003-11-26 Thread Enrico Sorcinelli
On Tue, 25 Nov 2003 15:34:16 -0500 Geoffrey Young <[EMAIL PROTECTED]> wrote: > Enrico Sorcinelli wrote: > > Hi all, > >> > > I have this PerlSetVar behaviour. Suppose to have: > > > > > > SetHander perl-script > > PerlSetVar Something 0 > > PerlResponseHa

Re: Data lost when browser refreshed

2003-11-26 Thread Stas Bekman
Sorry, Tom, looks like this message fell between the cracks. Fishing it out now. Tom Conway wrote: I got these errors when I did perl MakeFile.pl for mod_perl-1.99_11 I have a standard redhat 8.0 install with the latest rpms. DO I need to uninstall apache, mod_perl and do a source install? I'm afr

Re: Web Portal And WorkFlo System Developed With Embperl

2003-11-26 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hi: There is a project called EplSite, this project use EmbPerl and mod_perl. [...] http://www.eplsite.org/en/index.epl?module=News;option=read;sid=1 Carlos, if you are interested, we can add your project to this page: http://perl.apache.org/products/products.html Just tel

Re: mod_perl httpd doesn't start as DSO

2003-11-26 Thread Stas Bekman
BeerBong wrote: Hello! I wanted to build a debian package of apache for my specific purposes. My specific purpose is mod_accel support. I downloaded a source for apache debian package (apache-1.3.26) from stable distribution, add mod_accel patches and it have been compiled well. [...] Program rece

Re: [mp2] Apache::OK vs 200

2003-11-26 Thread Stas Bekman
I've documented the mod_perl 2.0 handler return value "protocol" here: http://perl.apache.org/docs/2.0/user/handlers/intro.html#Handler_Return_Values Please read and submit patches if something is wrong/unclear. Muchas Gracias. __ Stas

Re: very old bug report about internal_redirect

2003-11-26 Thread Pierfrancesco Caci
:-> "Geoffrey" == Geoffrey Young <[EMAIL PROTECTED]> writes: >> > looks like you added the :method tag to bug130883::Redir::handler(), >> > which wasn't originally a method handler in the code you posted: >> Uh, sorry. I corrected it and now I get this one: >> [Wed Nov 12 16:23:05

mod_perl httpd doesn't start as DSO

2003-11-26 Thread BeerBong
Hello! I wanted to build a debian package of apache for my specific purposes. My specific purpose is mod_accel support. I downloaded a source for apache debian package (apache-1.3.26) from stable distribution, add mod_accel patches and it have been compiled well. These are config options and flag