Re: mod_perl smtp server

2003-11-25 Thread Stas Bekman
Ask Bjoern Hansen wrote: On Tue, 25 Nov 2003, Cahill, Earl wrote: I am interested in using apache 2.0 and mod_perl to run a nice perl smtp server, and was wondering if there are any such projects out there. The server would take advantage of apache 2.0's generic server/protocol model (like mod_e

Re: Perl 5.8.2 and @INC confusion

2003-11-25 Thread Stas Bekman
Andrew Sterling Hanenkamp wrote: I just upgraded Perl from 5.8.0 to 5.8.2. Everything seems to work great, except for Apache/mod_perl (1.3/1.29). I run a separate version of Apache and mod_perl for testing from within my home directory (under ~/local/apache-1.3). When I try and run my local Apac

Re: mod_perl smtp server

2003-11-25 Thread Ask Bjoern Hansen
On Tue, 25 Nov 2003, Cahill, Earl wrote: > I am interested in using apache 2.0 and mod_perl to run a nice perl smtp > server, and was wondering if there are any such projects out there. The > server would take advantage of apache 2.0's generic server/protocol model > (like mod_echo), and would ha

mod_perl smtp server

2003-11-25 Thread Cahill, Earl
I am interested in using apache 2.0 and mod_perl to run a nice perl smtp server, and was wondering if there are any such projects out there. The server would take advantage of apache 2.0's generic server/protocol model (like mod_echo), and would have a nice perl back end. Thanks, Earl -- Report

Perl 5.8.2 and @INC confusion

2003-11-25 Thread Andrew Sterling Hanenkamp
I just upgraded Perl from 5.8.0 to 5.8.2. Everything seems to work great, except for Apache/mod_perl (1.3/1.29). I run a separate version of Apache and mod_perl for testing from within my home directory (under ~/local/apache-1.3). When I try and run my local Apache, I'm given the following erro

Re: How to share sub-ref under multiple apache childs

2003-11-25 Thread Marinos J. Yannikos
Perrin Harkins wrote: > I wrote an overview, available here: > http://perl.apache.org/docs/tutorials/tmpl/comparison/comparison.html I this context - I'd find it very useful if someone evaluated memcached (http://www.danga.com/memcached/) and compared it to other methods (with different kernel ver

Re: Build process prompts when PREP_HTTPD=1 is used

2003-11-25 Thread Stas Bekman
I really hope I'm not breaking something else. This should do the trick. Now you should be able to set PREP_HTTPD=1 and not getting prompted. $NO_HTTPD is set to 1, if USE_APACI==1 && PREP_HTTPD==1 Index: Makefile.PL === RCS file: /

Re: mod_perl get method params with SSI.

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

mod_perl get method params with SSI.

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

Re: Build process prompts when PREP_HTTPD=1 is used

2003-11-25 Thread Stas Bekman
Wes Barris wrote: I need to be more careful when copying, pasting, etc.: Yes, but your problem now is this: [EMAIL PROTECTED]> perl Makefile.PL APACHE_SRC=../apache_1.3.29/src NO_HTTPD=1 USE_APACI=1 EVERYTHING=1 Reading Makefile.PL args from ../makepl_args.mod_perl ^^

Re: Build process prompts when PREP_HTTPD=1 is used

2003-11-25 Thread Wes Barris
Stas Bekman wrote: Wes Barris wrote: [...] Let's polish that issue and we will update the docs to reflect what's going on. Nobody has complained in the last 7 years, so I guess nobody was trying to do that. I don't understand how I could be the only one in 7 years who has followed the install

Re: Build process prompts when PREP_HTTPD=1 is used

2003-11-25 Thread Stas Bekman
Bryn Dyment wrote: This tells me that if I want to write a script that builds a number of modules plus apache, I will have to answer a prompt when the script gets to the mod_perl portion of my script (unless I want to make mod_perl the last module built and use "DO_HTTPD=1" instead of doing a make

Re: Build process prompts when PREP_HTTPD=1 is used

2003-11-25 Thread Stas Bekman
Wes Barris wrote: [...] Let's polish that issue and we will update the docs to reflect what's going on. Nobody has complained in the last 7 years, so I guess nobody was trying to do that. I don't understand how I could be the only one in 7 years who has followed the installation documentation t

RE: Build process prompts when PREP_HTTPD=1 is used

2003-11-25 Thread Bryn Dyment
>> Let's polish that issue and we will update the docs to reflect what's >> going on. Nobody has complained in the last 7 years, so I guess nobody >> was trying to do that. > >I don't understand how I could be the only one in 7 years who has followed >the installation documentation to the letter

Re: Build process prompts when PREP_HTTPD=1 is used

2003-11-25 Thread Wes Barris
Stas Bekman wrote: Wes Barris wrote: Stas Bekman wrote: Stas Bekman wrote: Wes Barris wrote: [...] Notice that there is no "$apache" variable used here and I am showing that the correct directory exists. You are correct, Wes. There is a mismatch between the docs and the reality. Using APA

Re: Chaining mod_perl handlers with mod_* handlers : encoding problems

2003-11-25 Thread Stas Bekman
[please try to quote the relevant pars and delete the rest, so not to make the threads blown up for no reason. Thanks] Bruno Pommerel wrote: [...] Than the output is garbaged. After digging into it a bit, I realized that if the input is UTF-8 encoded (google) than it fails. It the input is ascii,

Re: Are we in mod_perl, and if so in a prefork MPM?

2003-11-25 Thread Stas Bekman
Geoffrey Young wrote: It's a bit confusing to have Apache::MPM_IS_THREADED and Apache::MPMQ_IS_THREADED, the first being the run_time value, the second just the key you pass to the query. But I guess with a solid documentation this should be fine. I don't mind changing this to Apache::MPM::is_thr

Capture Windows User Details

2003-11-25 Thread Brett Hales
Hi, I would like to know if there is a module that allows me to capture the currently logged in user name of a client accessing a Apache web server. I have used AuthenNTLM in the past but I do not want to do the domain authentication. Eg If an administrator is logged in to a machine with an unk

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

2003-11-25 Thread Stas Bekman
John Saylor wrote: hi i'm trying so hard to be good and follow directions. it's be also helpful if you had submitted a proper bug report, at least so we have an idea which mod_perl version you are talking about and some sample code ;) But I can see from your @INC that's 1.x. In the future please

Re: Are we in mod_perl, and if so in a prefork MPM?

2003-11-25 Thread Geoffrey Young
> It's a bit confusing to have Apache::MPM_IS_THREADED and > Apache::MPMQ_IS_THREADED, the first being the run_time value, the second > just the key you pass to the query. But I guess with a solid > documentation this should be fine. I don't mind changing this to Apache::MPM::is_threaded(), I jus

Re: Are we in mod_perl, and if so in a prefork MPM?

2003-11-25 Thread Stas Bekman
Geoffrey Young wrote: hi all cvs now has interfaces to ap_show_mpm and ap_mpm_query, which can be used to find out all kinds of interesting stuff about your apache environment. geoff++ one thing I found while I was implementing these functions was that Apache::MPM_IS_THREADED already exists (sta

Re: Apache::SubProcess build problem

2003-11-25 Thread Stas Bekman
Rafael Garcia-Suarez wrote: I can't build Apache::SubProcess 0.03 on AIX 5.2 with perl 5.8.2, mod_perl 1.29 and apache 1.3.29. The error (pasted below) puzzles me ; any clues ? $ make cp SubProcess.pm blib/lib/Apache/SubProcess.pm /opt/hexaflux/perl/bin/perl -e 'use ExtUtils::Mksymlists;

Re: yes/no questions regarding preloading Perl modules

2003-11-25 Thread Stas Bekman
Bryn Dyment wrote: I've been reading the mod_perl performance docs, and have a few yes/no-style (I hope) questions. First, a dead link. The "Preload Perl modules at server startup" link that's visible here: http://perl.apache.org/docs/1.0/guide/performance.html#Choosing_MaxRequestsP erChild ... is

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

2003-11-25 Thread John Saylor
hi i'm trying so hard to be good and follow directions. 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 /

Re: PerlSetVar with '0' value

2003-11-25 Thread Geoffrey Young
> 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: src/modules/perl/Apache.xs === RCS f

Re: PerlSetVar with '0' value

2003-11-25 Thread Geoffrey Young
Enrico Sorcinelli wrote: > Hi all, > > I have this PerlSetVar behaviour. Suppose to have: > > > SetHander perl-script > PerlSetVar Something 0 > PerlResponseHandler MyModule > > > But in MyModule.pm, $r->dir_config('Something') returns an

Re: yes/no questions regarding preloading Perl modules

2003-11-25 Thread Cees Hek
Quoting Bryn Dyment <[EMAIL PROTECTED]>: > I've been reading the mod_perl performance docs, and have a few yes/no-style > (I hope) questions. > > Questions (using DBI as an example*): > > 1. If my preloaded (via startup.pl) "my.pm" module uses DBI, should I > explicitly "use DBI ()" in startup.p

Re: yes/no questions regarding preloading Perl modules

2003-11-25 Thread Perrin Harkins
On Tue, 2003-11-25 at 13:43, Bryn Dyment wrote: > 1. If my preloaded (via startup.pl) "my.pm" module uses DBI, should I > explicitly "use DBI ()" in startup.pl as well? Not necessary, but won't hurt anything. > 2. Related to that, is it then kosher for my (non-preloaded Mason) "my.html" > compone

Re: yes/no questions regarding preloading Perl modules

2003-11-25 Thread Chris Grau
On Tue, Nov 25, 2003 at 10:43:27AM -0800, Bryn Dyment wrote: [snip] > Questions (using DBI as an example*): > > 1. If my preloaded (via startup.pl) "my.pm" module uses DBI, should I > explicitly "use DBI ()" in startup.pl as well? The second `use DBI' will be ignored, since DBI is already in %INC

Re: Are we in mod_perl, and if so in a prefork MPM?

2003-11-25 Thread Geoffrey Young
hi all cvs now has interfaces to ap_show_mpm and ap_mpm_query, which can be used to find out all kinds of interesting stuff about your apache environment. one thing I found while I was implementing these functions was that Apache::MPM_IS_THREADED already exists (stas even pointed to the code for

yes/no questions regarding preloading Perl modules

2003-11-25 Thread Bryn Dyment
I've been reading the mod_perl performance docs, and have a few yes/no-style (I hope) questions. First, a dead link. The "Preload Perl modules at server startup" link that's visible here: http://perl.apache.org/docs/1.0/guide/performance.html#Choosing_MaxRequestsP erChild ... is chopped. The l

RE: Chaining mod_perl handlers with mod_* handlers : encoding problems

2003-11-25 Thread Bruno Pommerel
Tx for your quick reply. The handler is eventually involved, but the result is weird. If my handler is : while ($f->read(my $buffer, BUFF_LEN)) { $buffer =~ s/\s+/ /g; $f->print($buffer); } than the output is shown in IE as a empty HTML doc. If my handler includes a

Re: How to send the FIRST "http" header - eg: the HTTP/1.1 200 OK line

2003-11-25 Thread Chris Grau
On Wed, Nov 26, 2003 at 12:11:54AM +1100, Chris Drake wrote: > Hi, > > Anyone know? I want to set the return/result code myself, from a > script - specifically, I want to send under certain circumstances:- > > HTTP/1.1 500 404 Not Found [snip] I think what you're trying to do is a non-parsed he

Re: How to share sub-ref under multiple apache childs

2003-11-25 Thread Perrin Harkins
Marinos J. Yannikos | Geizhals.at wrote: I this context - I'd find it very useful if someone evaluated memcached (http://www.danga.com/memcached/) and compared it to other methods (with different kernel versions, because its performance varies greatly depending on the availability of some I/O mecha

Re: How to send the FIRST "http" header - eg: the HTTP/1.1 200 OK line

2003-11-25 Thread Thomas Klausner
Hi! On Wed, Nov 26, 2003 at 12:11:54AM +1100, Chris Drake wrote: > How come there's no index to look up keywords and stuff on the help > site? It's impossible to search for answers to the above without such > a thing... What help site are you referring to? http://perl.apache.org has got full t

How to send the FIRST "http" header - eg: the HTTP/1.1 200 OK line

2003-11-25 Thread Chris Drake
Hi, Anyone know? I want to set the return/result code myself, from a script - specifically, I want to send under certain circumstances:- HTTP/1.1 500 404 Not Found Needless to say, it spits at me if I try just printing this out:- [Tue Nov 25 12:03:06 2003] [error] [client 203.217.18.9] malfor

Apache::SubProcess build problem

2003-11-25 Thread Rafael Garcia-Suarez
I can't build Apache::SubProcess 0.03 on AIX 5.2 with perl 5.8.2, mod_perl 1.29 and apache 1.3.29. The error (pasted below) puzzles me ; any clues ? $ make cp SubProcess.pm blib/lib/Apache/SubProcess.pm /opt/hexaflux/perl/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME" => "Apa