Re: AJAX pseudo-push

2009-11-17 Thread Tom Schindl
Nicolas George schrieb: > Hi. > > There is an increasingly popular technique to emulate server-initiated push > over HTTP. I'm sure everyone here knows it well, but for the sake of > completeness: the clients sends a XMLHttpRequest to the server in the > background; the server does not answer it i

Re: TIPool

2007-06-16 Thread Tom Schindl
Hi, I once thought about this and for e.g. MySQL this is a piece of cake in theory because the only thing you need to do is hack a few line of the DBD::mysql-code to get the connection pointer from apr_dbd and not create one from scratch. Tom Thomas schrieb: It wasn't intended to be. It wa

Re: After retrieving data from DB, the memory doesn't seem to be freed up

2007-05-10 Thread Tom Schindl
Right: http://www.nntp.perl.org/group/perl.perl5.porters/2006/03/msg111095.html Tom Perrin Harkins schrieb: On 5/10/07, Andy Armstrong <[EMAIL PROTECTED]> wrote: Unless I'm misunderstanding you that's not true. When a value's reference count goes to zero the memory is freed - at least to Perl

Re: using axkit with mod_perl

2007-01-10 Thread Tom Schindl
Hi, Perrin is right with AxKit you have the following possibilities: - Apache1+mod_perl1+AxKit1 - Apache2+mod_perl2 <=> AxKit2 (maybe a proxy in between) But there is also Apache2::TomKit (http://search.cpan.org/~tomson/Apache2-TomKit-0.01_6/lib/Apache2/TomKit.pm): - Apache2+mod_perl2+Apache2::To

Re: New member

2006-12-01 Thread Tom Schindl
Hi, sorry you are mixing things completely Tomcat is a Java-Servlet-Container and mod_perl is module for the Apache-Webserver you won't never get mod_perl running inside Tomcat but you can use your Apache-Webserver to pipeling request to your Tomcat using mod_jk or let requests be handled by mod_p

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Tom Schindl
Morad IGMIR schrieb: > Hello, > > Perhaps you could paste us some of the code in IndexHandler.pm, > what does it do ? > is it a PerlResponseHandler ? (just trying to guess by the name) > In which case, wouldn't Apache2::Const::HTTP_OK be more appropriate ? > No. No. No. Handlers always return A

Re: mod_perl install under Win32

2006-10-16 Thread Tom Schindl
Hi, don't build anything your own but rather use prebuilt packages. http://perl.apache.org/docs/2.0/os/win32/install.html Tom Devin Austin schrieb: > Hey everyone, > i'm brand new to this, so bear with me: > > I'm trying to install mod_perl under strawberry-perl-5.8.8-alpha-2.exe >

Re: apache2 and ptkdb

2006-10-13 Thread Tom Schindl
Hi, not much information you provide. Any error-logs or would help us to solve your problem. Tom Anthony Gardner schrieb: > I'm having problems getting ptkdb to work under ModPerl::Registry. > > this works but it won;t be running under mod_perl > > > AllowOverride Limit > ##SetHandler

Re: Using a DB to record Apache's access_log

2006-10-06 Thread Tom Schindl
See this: http://www.stonehenge.com/merlyn/LinuxMag/col77.html http://www.webmonkey.com/webmonkey/98/38/index2a_page8.html?tw=programming Tom Anthony Gardner schrieb: > Can s.o point me in the right direction (links or advice) about the best > way to use a DB to record accesses to Apache? > > C

Re: Getting post data

2006-09-28 Thread Tom Schindl
Hi, Please use one of the modules to read data: - libapreq2 (http://search.cpan.org/~joesuf/libapreq2-2.08/) - CGI.pm (comes with your perl-distro maybe you need to update it from CPAN if you have an older perl) Tom Erik Norgaard schrieb: > Hi: > > I am using Apache 2.2 with mod_perl2

Re: Occasional problems with URI package under mp

2006-09-20 Thread Tom Schindl
Kjetil Kjernsmo schrieb: > On Tuesday 19 September 2006 16:30, Michael Peters wrote: >>> URI.pm location: /usr/lib/perl5/Apache2/URI.pm >>> Can't locate object method "new" via package "URI" at [blah] >> That's Apache2::URI, not URI. > > Duh! I'm blind! :-) > >> What does the command line ve

Re: design patters with mod_perl

2006-09-13 Thread Tom Schindl
You might have a look at the following projects: - AxKit1 - http://search.cpan.org/~msergeant/AxKit-1.6.2/ - AxKit2 - http://search.cpan.org/~msergeant/AxKit2-1.1/ - Apache2::TomKit - http://search.cpan.org/~tomson/Apache2-TomKit-0.01_6/ Tom Greger schrieb: > Is there anything in particular that

Re: MOD_PERL - Apache2 configuration issue

2006-09-12 Thread Tom Schindl
Sumit Shah schrieb: > Hello, > > I have created a very simple perl module (MyApache2::NewMod) using h2xs > and installed it inside /usr/lib/Perl5. > > Following is the source: > > #file MyApache2/NewMod > package MyApache2::NewMod; > > use strict; > use warnings; > > sub handler { > >

Re: different default oracle date formats under mod_perl and scripts

2006-08-26 Thread Tom Schindl
Well maybe this is because if you run the scripts in the console you do it as another user with another environment than your apache is working. Try to sync the environment. Tom Jay Buffington wrote: > Hi, > > I'm using DBI with DBD::Oracle. I've noticed that under scripts the > default date fo

Re: many requests on one connection.

2006-08-26 Thread Tom Schindl
One more thing. Did you know that there are SOAP-Modules available: - http://search.cpan.org/~rkobes/Apache2-SOAP-0.72/ - http://search.cpan.org/~byrne/SOAP-Lite-0.69/ Tom Erland Nylend wrote: >Thanks for replying, > >On 2006-08-25, 13:04, Perrin Harkins wrote: > > >>HTTP has defined roles of

Re: many requests on one connection.

2006-08-26 Thread Tom Schindl
Hi, Don't parse data your own! Use: - CGI.pm (comes with your perl installation by default) or - libapreq http://search.cpan.org/~joesuf/libapreq2-2.08/ I'd say libapreq is the better choice if you start from scratch. The documentation you are referring to talks about internal redirect's which y

Re: Apache::File

2006-08-22 Thread Tom Schindl
Jonathan Vanasco schrieb: > Does anyone plan on porting Apache::File to Apache2 ? > > I'm using it in the Apache2::compat mode right now, but I feel uneasy > using compat outside of my dev box > > I took a stab at porting the perl part of File and Symdump, but File has > an xs component I know i

Re: Installation of mod_perl and apache on windows

2006-08-21 Thread Tom Schindl
Please do not compile it your own if you are a newbie use the prepackaged versions from here: Apache as msi-package: - http://httpd.apache.org/download.cgi mod-perl: - http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Packages - Tom Deepak Mallya schrieb: > Hi everyone, >

Re: Not able to install mod_perl - Need Help

2006-08-18 Thread Tom Schindl
che/2.2.30 mod_perl2/2.0.2 Perl/v5.8.5 > [ error] can't find 'apr-config', please pass > MP_APR_CONFIG=/full/path/to/apr-config to 'perl Makefile.PL' > > thanks > Poonam > > > On 8/18/06, *Tom Schindl* <[EMAIL PROTECTED] > <mailto:[EMAIL

Re: Not able to install mod_perl - Need Help

2006-08-18 Thread Tom Schindl
Poonam Pahil schrieb: > Thanks for the quick reply Tom. > the error is showing up when apache is being built. > I tried building apache independently.Its still giving the same error. > > Thanks > Poonam > > > On 8/18/06, *Tom Schindl* <[EMAIL PROTECTED] >

Re: Not able to install mod_perl - Need Help

2006-08-17 Thread Tom Schindl
To use mod-perl on win32 I'd suggest that you use the ppm packages provided to you. See http://perl.apache.org/docs/1.0/os/win32/install.html#PPM_Packages Tom Poonam Pahil schrieb: > Hi all, > > Iam new to the perl world. > Iam installing mod_perl-2.0.2 . For this ive downloaded > httpd-2.0.59

[Announce] Apache2::TomKit 0.01_5 released

2006-08-10 Thread Tom Schindl
action is required on your part Request entered by: TOMSON (Tom Schindl) Request entered on: Thu, 10 Aug 2006 13:08:13 GMT Request completed: Thu, 10 Aug 2006 13:08:23 GMT -8<- Tom

Re: chown executed by the apache user

2006-08-03 Thread Tom Schindl
You could run the chown command using sudo if you are on *ix. http://www.courtesan.com/sudo/sudo.html Tom Christian Hauser schrieb: > Basel, Donnerstag, 3. August 2006, 07:51:47 > . > > *chown executed by the apache user* > > > Hello Mod_Perl List > > > I

Re: Problem with Apache 2.2.2 / modperl 2.0.2 and Apache2::SOAP

2006-08-02 Thread Tom Schindl
ed (and patched). Tom Georg Grabler schrieb: > Followed your advice, i filed a bug report. > > Georg > > On 8/2/06, *Tom Schindl* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Would you mind filing a bug against Apache2::SOAP. Then Randy ma

Re: Problem with Apache 2.2.2 / modperl 2.0.2 and Apache2::SOAP

2006-08-02 Thread Tom Schindl
ug in a module. > > Thank you for your time, and the help you provided me, and hopefully > others, when they're reading the archives. > Georg > > On 8/2/06, *Tom Schindl* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Georg Grabler s

Re: Problem with Apache 2.2.2 / modperl 2.0.2 and Apache2::SOAP

2006-08-02 Thread Tom Schindl
Georg Grabler schrieb: > A the logfile says, i execute the method using Apache2. > > For a better understanding: > > my $cl = ($self->{'MOD_PERL_VERSION'} == 1) ? > $r->header_in('Content-length') : $r->headers_in->{'Content-length'}; > > This is the code Apache2::SOAP module uses for dete

Re: Problem with Apache 2.2.2 / modperl 2.0.2 and Apache2::SOAP

2006-08-02 Thread Tom Schindl
Georg Grabler schrieb: > I'm experiencing Problems with the setting written above. > > Currently, i'm running the configuration as written in the header. > > The apache config (by doing make test) outputs the following: > > > [Wed Aug 02 10:15:10 2006] [notice] Apache/2.2.2 (Unix) mod_perl/2.0.

Re: urgent help needed

2006-08-01 Thread Tom Schindl
used it in script...but it didnt solve > my problem.. > > if u can please can u explain little more what u mean by > > Query > - Use Apache::DBI+prepare_cached > > - Use Prepared Queries with Placeholders > > sincerely > philge > > > &

Re: urgent help needed

2006-08-01 Thread Tom Schindl
modules and > al in our script.i think we have use Apache::DBI and al.do you have any > tutorial for writing scripts to make database connections with modperl.i > will go through it and change my scripts and then mail you.i hope you > are not disturbed with me. > > sincerely

Re: urgent help needed

2006-08-01 Thread Tom Schindl
It seems you are using old documentations: philge philip schrieb: > Following are the scripts I tried to run.For the first script I got the > result and it shows mod_perl is installed and running but in the second > script am unable to load the apache module.I have also attached the part of > th

Re: Some standart and simple tasts with MP2 HOWTO

2006-07-30 Thread Tom Schindl
Vladimir S. Tikhonjuk schrieb: >>> Hi all! >>> >>> Our company has a backoffice project written on C++ ( Qt ) for Linux >>> by my department. But nessesity appear's to make WEB interface, with all >>> functions which our C++ program does. Now I have to choose among a lot >>> of languages and tech

Re: Some standart and simple tasts with MP2 HOWTO

2006-07-29 Thread Tom Schindl
Vladimir S. Tikhonjuk wrote: >Hi all! > >Our company has a backoffice project written on C++ ( Qt ) for Linux >by my department. But nessesity appear's to make WEB interface, with all >functions which our C++ program does. Now I have to choose among a lot >of languages and technologies of WEB

Re: anyone with pgpool experience?

2006-04-26 Thread Tom Schindl
Joachim Zobel wrote: > On Tue, 18 Apr 2006 08:17:47 +0200 > Tom Schindl <[EMAIL PROTECTED]> wrote: > > >>The better approach seems to me using mod_dbd which has the draw back >>that it is only available on apache-2.2 at least for mysql it looks >>like it&#x

Re: Problem with apache2 config file

2006-04-19 Thread Tom Schindl
I'd suggest moving the whole module loading into something like conf/startupl.pl: --8<-- #use DBI; #use DBD::mysql; #use CGI ':cgi-lib'; #use CGI::Cookie; use strict; use IO::Socket; use Socket; use Digest::MD5 qw(md5_hex); use GDBM_File; use Fcntl; use Compress::Zl

Re: SVN::Client problem under mp2

2006-04-18 Thread Tom Schindl
Enno wrote: > Hey list, > > I ran into a nasty problem with SVN::Client under mp2.0.2. I simply want > it to connect to an ssl svn server with a specified username and password. > > When I run the needed code from cmdline, everything works perfect, but > when I try to run it using an mp2 handler,

Re: SVN::Client problem under mp2

2006-04-18 Thread Tom Schindl
Has the user your apache is running in permissions to: - directory - file ? Tom signature.asc Description: OpenPGP digital signature

Re: anyone with pgpool experience?

2006-04-17 Thread Tom Schindl
David Nicol wrote: > On 4/17/06, Perrin Harkins <[EMAIL PROTECTED]> wrote: > >>On Sun, 2006-04-09 at 22:14 -0500, Frank Wiles wrote: >> >>> I'd suggest trying pgpool without Apache::DBI also. Using both you're >>> essentially pooling twice for no real reason. >> >>Not really. Apache::DBI just p

Re: Mod_Perl

2006-04-14 Thread Tom Schindl
As you are running your apache with prefork MPM you can use ModPerl::RegistryPreFork which e.g. automatically changes to your document-root which is not possible with other (threaded) MPMs. The Loaders are not important to you! If you start a new project and the scripts don't have to run as CGIs

Re: Apache error logging under mod_perl

2006-04-04 Thread Tom Schindl
Yes the same applies to Apache-1.3: http://www.jsw4.net/info/list-archives/mod_perl/05-wk22/msg00045.html Tom Jonathan Field wrote: > Thanks Tom, good info I had not come across before! The page refers to > Apache 2, but they must have backported this to Apache 1.3 at some point > as well. >

Re: pnotes MP1->MP2

2006-04-03 Thread Tom Schindl
ce the reason to try de-referencing the hash. > > Thank you, John. > > On Apr 3, 2006, at 11:32 AM, Tom Schindl wrote: > >> John Russell wrote: >> >>> In MP1 it was possible to do.. >>> >>> Authorization Phase >>> >>> sub ha

Re: pnotes MP1->MP2

2006-04-03 Thread Tom Schindl
John Russell wrote: > In MP1 it was possible to do.. > > Authorization Phase > > sub handler { > > my $dbh; > > $dbh = DBI->connect(..) > || return "Error connecting.\n $DBI::errstr\n"; > > $r->pnotes(DBH => $dbh); > > > Response Phase > > sub handler($$) { > > my $dbh = $r->

Re: Apache error logging under mod_perl

2006-04-02 Thread Tom Schindl
Jonathan Field wrote: > Hi all, > > I've noticed that under mod_perl any die() (or croak()) calls get > rewritten with a timestamp, a loglevel flag, and escaped newlines before > going to the error log. For example, under CGI if I call die("hello") > from a script called foo.cgi I get: > > hel

Re: MP2 PerlAuthenHandler and Apache2::Access

2006-03-31 Thread Tom Schindl
Isn't the first object passed the class it self if you use method-style. The error message seems to say this ;-) sub handler { my $self = shift; my $r= shift; ... } Tom John Russell wrote: > Hi, > > I'm trying to migrate from MP1 to MP2 and having trouble with > > get_basic_auth_pw a

Re: Database transaction across multiple web requests

2006-03-31 Thread Tom Schindl
Well standard is good but sometimes KISS (KeepItSmallandSimple) is much better. I think that was the MySQL credo in the past and hopefully they continue with it but when looking at changes especially between 4.0 and 4.1. they seem to leave this road. Tom Jonathan Vanasco wrote: > > On Mar 31, 20

Re: Database transaction across multiple web requests

2006-03-31 Thread Tom Schindl
Jonathan Vanasco wrote: > Just to add to what other have written- > > if you're writing to anything based on this, you'll need some sort of > internal marker to tell if your data has been changed (i don't think > you're writing, but you should just be aware of this) That's why we database vendo

Re: Database transaction across multiple web requests

2006-03-31 Thread Tom Schindl
Hi, add a) You cann't do that because you are not able to keep connections open between requests => find the appropriate connection add b) That sounds the best option at least this is the one I chose the last time you can do a LIMIT $start, $end (at least in MySQL). A potenti

Re: No image creation in mod_perl (Or Perl Memory Management is a beast)

2006-03-28 Thread Tom Schindl
And even "worse": -8<- #!/usr/bin/perl use Benchmark; $t0 = new Benchmark; &bla(); $t1 = new Benchmark; # Memory has grown on my machine to 110 MB #sleep 20; $t2 = new Benchmark; &bla(); $t3 = new Benchmark; # Memory has resides on my machine on 110 MB print "Fir

Re: No image creation in mod_perl

2006-03-28 Thread Tom Schindl
t;; for( 1 .. 10_000_000 ) { $var .= "xxx"; } # undef $var; # The solution to wipe out allocated memory # by explicitly setting vars to undef } -----------8<--- Tom Tom Schindl wrote: > You can try memory management yourself and see tha

Re: No image creation in mod_perl

2006-03-28 Thread Tom Schindl
You can try memory management yourself and see that the memory allocated is not wiped until the script is finished. 8< #!/usr/bin/perl &bla(); print "Done"; sub bla { my $var = ""; for( 1 .. 10_000_000 ) { $var .= "xxx"; } my $bla = ;

Re: No image creation in mod_perl (was RE: Apache2/MP2 Segfaults ...)

2006-03-27 Thread Tom Schindl
Please note that this is not only true for Image-Creation but also if you are restoring large string contents in a variable (e.g. after processing a file-upload). Tom Frank Maas wrote: > Tom, > > >>As a sidenote often it is not really desired/dangerous to run image >>creation as a mod_perl hand

Re: No image creation in mod_perl (was RE: Apache2/MP2 Segfaults ...)

2006-03-27 Thread Tom Schindl
Well image creation in mod_perl is not a bad idea if you ensure that the process is killed after it succeeded a certain memory. The problem in case of mod-perl/httpd is that that if every httpd-process is eating 20 MB of space only because you have created once an image. You must ensure that only v

Re: read environent variable

2006-03-27 Thread Tom Schindl
Hi, this is a mod_perl forum please ask perl questions on perl-monks or any other perl-support forum and if it is a perlbug file a bug using perlbug to p5p. Tom cyg_win_user wrote: > i m trying to read environment variable in perl using > > $OSTY = $ENV{OSTYPE}; > this will return os ty

Re: Controlling subversion access

2006-03-26 Thread Tom Schindl
Hi Dennis, first of all it would be nice if you could tell us what version of Apache/mod-perl you are running. Second I'm not sure I userstand what you are trying to do because I'm not very familiar with SSL and DAV. If I'm not completely mistaken things like $ENV{SSL_CLIENT_S_DN} are set on requ

Re: Apache2/MP2 Segfaults when loading Text::Textile

2006-03-24 Thread Tom Schindl
As a sidenote often it is not really desired/dangerous to run image creation as a mod_perl handler because of the nature of perl, memory allocated once is never freed until the process shutdowns or is killed (by your Apache::SizeLimit handler). I'm not familiar with fastcgi but you should make sur

Re: Where from does Apache-Test get the servername used

2006-03-24 Thread Tom Schindl
Thanks found it myself some minutes after posting to list. i needed it for my TomKit-0.01_4-release. Tom Torsten Foertsch wrote: > On Thursday 23 March 2006 00:02, Tom Schindl wrote: > >>how does Apache-Test retrieves the servername inserted into httpd.conf >>is it possible to

Re: [Announce] Apache2::TomKit 0.01_3 released

2006-03-22 Thread Tom Schindl
And because the test-suite failed on all computers except mine there is TomKit-0.01_4 available on your nearest CPAN mirror within the next hours where all test should be passed. Tom Tom Schindl wrote: > Hi, > > Finally I spent some time releasing a new version of TomKi

Where from does Apache-Test get the servername used

2006-03-22 Thread Tom Schindl
Hi, how does Apache-Test retrieves the servername inserted into httpd.conf is it possible to access this value while running tests? Tom signature.asc Description: OpenPGP digital signature

Re: Setting HTTP-STATUS and Filters

2006-03-22 Thread Tom Schindl
So I propose the following documentation patch many people may not grasp that they need to look into the sources to find out that their filter will always return HTTP-Status OK to their clients although they return SERVER_ERROR ;-) Tom Geoffrey Young wrote: > > Tom Schindl wrote: &

Re: Setting HTTP-STATUS and Filters

2006-03-22 Thread Tom Schindl
Well I figured out that the test I was running was on an old version of mod_perl. I'll give it a try on the 2.0.2-release as fast as possible from the code it looks like 2.0.2 doesn't return OK in this situation. Tom Tom Schindl wrote: > Geoffrey Young wrote: > >>Tom Schi

Re: Setting HTTP-STATUS and Filters

2006-03-22 Thread Tom Schindl
Geoffrey Young wrote: > > Tom Schindl wrote: > >>Hi, >> >>solved it myself $f->r->status() how stupid I haven't seen this before, >>works like a charme but one more question, what is a filter supposed to >>return on ERROR why does one have to s

Re: external redirect after internal redirect not working

2006-03-22 Thread Tom Schindl
Hi Geoff, Geoffrey Young wrote: > > Tom Schindl wrote: > >>This means the when the documentation holds information about situation >>where one has to use $r->status(), I would propose that in should add >>the use case of filters. >> >>This has nothi

Re: external redirect after internal redirect not working

2006-03-22 Thread Tom Schindl
> > It's been a while since I set up the server but I > think I did it because setting up the apache config > file was easier. And the redirect works under normal What's the big deal, in my idea Registry is only helpful if you want to speed up your CGI-Scripts not for new development and many ti

Re: external redirect after internal redirect not working

2006-03-22 Thread Tom Schindl
rry Tom, but I don't understand your response. > > > thanks, > > greanie > > --- Tom Schindl <[EMAIL PROTECTED]> wrote: > > >>Fred Moyer wrote: >> >>>Michael Greenish wrote: >>> >>>>use strict; >>> >>>[..]

Re: external redirect after internal redirect not working

2006-03-22 Thread Tom Schindl
Fred Moyer wrote: > Michael Greenish wrote: >> use strict; > [..] > >> # redirect >> $r->headers_out->set( Location => $redirectURL ); >> $r->status( REDIRECT ); > >> return REDIRECT; > > I see a few things here that catch my eye but what stands out the most > is the use of the same return code

[Announce] Apache2::TomKit 0.01_3 released

2006-03-21 Thread Tom Schindl
Hi, Finally I spent some time releasing a new version of TomKit to CPAN. 8< =head1 DESCRIPTION TomKit is a perl handler which is working similar as the famous AxKit for mod_perl 1.x. It is designed as an PerlFixupHandler which inserts an OutputFilter if ne

Re: Setting HTTP-STATUS and Filters

2006-03-18 Thread Tom Schindl
27;t setting the request-status automatically? E.g. if there's an untrapped error. Thanks Tom Tom Schindl wrote: > Hi, > > I'm on the way to release a new version of my AxKit-Port to Apache2 > named Apache2::TomKit and are facing the problem that I need to set the > HTTP-Statu

Setting HTTP-STATUS and Filters

2006-03-17 Thread Tom Schindl
Hi, I'm on the way to release a new version of my AxKit-Port to Apache2 named Apache2::TomKit and are facing the problem that I need to set the HTTP-Status to SERVER_ERROR when the transformation fails but I have the feeling that this is not possible any more in this situation. Any suggestions?

Re: [mp1] redirect in ErrorDocument

2006-03-17 Thread Tom Schindl
Not sure but give err_headers_out a try? Tom Carl Johnstone wrote: > > In an Apache::Registry ErrorDocument (e.g. ErrorDocument 404 /my404.pl ) > > This doesn't work: > > $r->header_out('Location', $newurl); > $r->status(302); > return OK; > > > Apache returns an error saying that my 404

Re: Persisting data across handlers

2006-03-13 Thread Tom Schindl
Well the problem is that at this point haven't got any connection/request hence no pnotes. Tom Foo Ji-Haw wrote: > Philippe M. Chiasson wrote: > >> Vipul Ved Prakash wrote: >> >> >>> Thanks, Philippe. For some reason I thought I had to use Apache's >>> memory management abstractions for this.

Re: Help trying to get perl script to run in Apach 1.3

2006-03-12 Thread Tom Schindl
Bill Warren wrote: > Hello, > > I running Debian Sarge with Apache 1.3 and Perl 5.8 and I trying to get > a JabberChat from http://www.prowler-pro.com/jabberchat/ to run. I > know that Apache and Perl are playing together because I dselected > Gallery from http://gallery.sf.net installed and it

Re: Persisting data across handlers

2006-03-12 Thread Tom Schindl
Why does one have to create a APR::Brigade to pass a value? If I want to pass 42 I could simply access it, no need to create a Brigade or am I completely mistaken. Tom Philippe M. Chiasson wrote: > Vipul Ved Prakash wrote: > >>Thanks, Philippe. For some reason I thought I had to use Apache's >

Re: Modperl2 + PerlAccessHandler + Redirect

2006-03-09 Thread Tom Schindl
If that's not working I'd give err_headers_out_ a try: http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_err_headers_out_ Tom yperl wrote: > Hi All! > > I would like to do a redirect from a PerlAccessHandler. > With mod_perl1 to below code works. > But how to achieve the same thing

Re: Apache::Request breaks cgi.pm

2006-02-21 Thread Tom Schindl
I assume you are using mp1.x and apache1.3? Tom Blayne Bayer wrote: > Hello, > > we have just installed Apache::Request ( libapreq ) and suddenly all of > our file uploads are breaking with a ' Setup of CGI.pm failed: Malformed > multipart POST' error. We use embperl and everything was working f

Re: file upload without apache::request

2006-02-21 Thread Tom Schindl
use CGI ;-) pure perl Alan Bailward wrote: > Hey all. I have an old system I inherited which is about 4000 lines > of "pure" mod_perl under apache 1.3, not using apache::request at all. > I've been asked to "just" add file upload capabilities. > > Looking at it, I thought I could change the co

Re: mod_perl 2.0.0 + Apache 2.0.55 on Cygwin Win2k3

2006-02-16 Thread Tom Schindl
It's free ;-) http://www.activestate.com/ Tom Jeff Pang wrote: >> Why don't you try ActivePerl instead of cygwin ? > > Is there any free version of ActivePerl£¿or how much should I pay for > it?thanks. > > - Original Message - > *From:* Jason J. Czerak

Re: read query params

2006-02-10 Thread Tom Schindl
Hi MJ, have you tried the libapreq mailing list? M J wrote: > > */>Tom Schindl <[EMAIL PROTECTED]>/* wrote: ehm, then you can use > CGI.pm, that's plain perl. > > I don't think that CGI.pm is a solution when you need performance. > There is an article >

Re: read query params

2006-02-10 Thread Tom Schindl
ehm, then you can use CGI.pm, that's plain perl. Tom M J wrote: > > I’m very disappointed regarding the mod_perl 2 documentation and changes > that have been made. > I’m searching for several hours already how can I read the query params > using only mod_perl2 API. > I had problem installing lib

Re: I'm getting max connection errors for Apache::DBI

2006-02-09 Thread Tom Schindl
What if you'd write all your SQL-Statements in a fully qualified manner? ---8<--- SELECT * FROM $DB1.$TABLE1; SELECT * FROM $DB2.$TABLE1; ---8<--- Tom Boysenberry Payne wrote: > The only difference in each connection is the database. I tried conne

Re: mod_perl 2 newbie

2006-02-08 Thread Tom Schindl
May I suggest reading SIMPLY the INSTALL-File coming with mod-perl where it reads: ---8<--- Simple config: LoadModule perl_module modules/mod_perl.so #PerlModule Apache::compat # your config comes here For a more detailed version (including more options) refer to:

Re: Where is Your Apache2 Installed?

2006-02-07 Thread Tom Schindl
David Wheeler wrote: > On Feb 7, 2006, at 08:38 , Tom Schindl wrote: > >> Your line works like a charme ;-) >> >> -8<- >> [EMAIL PROTECTED] ~]$ /opt/myperl/bin/perl -MApache2::BuildConfig -le 'print >> Apache2::BuildCo

Re: Where is Your Apache2 Installed?

2006-02-07 Thread Tom Schindl
David Wheeler wrote: > On Feb 7, 2006, at 3:13 AM, Tom Schindl wrote: > >> I always thought that could be retrieved from "Apache2::BuildConfig" >> e.g. to get where you apx is located you could use: >> >> print Apache2::BuildConfig->new()->MP_AP

Re: Ocassionally POST data is missing

2006-02-07 Thread Tom Schindl
B10m wrote: > * Peter Klump <[EMAIL PROTECTED]> [2006-02-07 13:44:56+0100] > > [POST data not arriving; using reverse proxy, or SSL?] > > >>No - neither SSL nor proxies are involved. I tried my luck anyway in >>downgraded Apache2 to 2.0.54 - however the error still persists :-(. >> >>Any other

Re: Where is Your Apache2 Installed?

2006-02-07 Thread Tom Schindl
Hi, I always thought that could be retrieved from "Apache2::BuildConfig" e.g. to get where you apx is located you could use: print Apache2::BuildConfig->new()->MP_APXS . "\n"; Tom David Wheeler wrote: > Hi All, > > I want to create App::Info::HTTPD::Apache2 to complement > App::Info::HTTPD::A

Re: mp2 error

2006-02-07 Thread Tom Schindl
Are you sure that you the appropriate perl is used when you called perl Makefile.PL Tom The Doctor wrote: > I compiled mod perl 2.0.2 using perl 5.8.8 and upon installation > telnet localhost 80 gives me > > Apache/2.0.55 (Unix) DAV/2 mod_ruby/1.2.4 mod_python/3.1.3 Python/2.3.2 > FrontPage/5.

Re: mod_perl2 + DBILogger causes Segmentation fault (in modperl_dir_config () ?)

2006-02-06 Thread Tom Schindl
pache in prefork-mode. Tom David Lamorski wrote: > Hi Tom, > > > thanks for the hint. I always tried out one self compiled mp2 2.0.2 and > got the same segfault with exactly the same > backtrace in gdb. > > -- > Dave > > Am 06.02.2006 um 15:10 schrieb Tom Schi

Re: mod_perl2 + DBILogger causes Segmentation fault (in modperl_dir_config () ?)

2006-02-06 Thread Tom Schindl
Hi David, sorry to disappoint you here but version 1.9921 is a preview release of mp2 and not marked stable. At the moment we have 2.0.2, I know that 1.9921 is the version debian ships with but to get support you'll certainly have to upgrade your mp2 to an offically stable release, maybe debian do

Re: hardware prerequisite

2006-02-02 Thread Tom Schindl
Hi, it depends on how many traffic you are expecting? Most of the time not you CPU is the bottleneck but your memory, at the moment your system begins to swap you are lost. For medium traffic sites a Celeron 1200 with 1 GB Ram is sufficient. Tom Ken Perl wrote: > My machine which cpu is celeron

[OT]Re: RegEx Hell

2006-01-31 Thread Tom Schindl
on the other hand: -8<- my $bla = "/dir/subdir/file.ext"; $bla =~ /(\w+\.\w+)$/; print $1 . "\n"; # file.ext -8<- works perfectly Mark Galbreath wrote: > Close enough to perl, I hope... > > I'm trying to string the filename from

Re: RegEx Hell

2006-01-31 Thread Tom Schindl
man File::Spec ;-) Mark Galbreath wrote: > Close enough to perl, I hope... > > I'm trying to string the filename from the path: > >/dir/subdir/file.ext => file.ext > > with > > /\w+\.\w+$/ > > and am getting the entire path returned. I am falling asleep reading > the perldoc regex

Re: problem with fetching data in mod_perl

2006-01-31 Thread Tom Schindl
Just one sentence: No code, node help! Please also provide us your mp and apache versions! Tom Senthil Nathan wrote: > Hi All, > > Im using mod_perl and notice that while fetching data from a directory > where the files are present, its not reading those files and getting the > data. > > Afte

Re: Several versions of a modperl handler in a server instance

2006-01-26 Thread Tom Schindl
Tomas Zerolo wrote: > On Thu, Jan 26, 2006 at 11:27:44AM +0100, Tom Schindl wrote: > [...] > >>In mp2: >> - use different VHost with different Inc-paths >>http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlOptions_ > > > Wow. My imagination was to

Re: Several versions of a modperl handler in a server instance

2006-01-26 Thread Tom Schindl
In mp1: - Apache::VINC http://perl.apache.org/docs/1.0/guide/modules.html#Apache__PerlVINC___Allows_Module_Versioning_in_Location_blocks_and_Virtual_Hosts In mp2: - use different VHost with different Inc-paths http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlOptions_ Tom Tomas Ze

Re: ssl form post variables

2006-01-26 Thread Tom Schindl
u, 26 Jan 2006 08:51:51 +0100 > Tom Schindl <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> how do you access those parameters: >> - CGI.pm >> - APR::Request >> - Apache::RequestRec >> >> Tom >> >> JT Smith wrote: >> >>>

Re: FreeBSD/apreq2

2006-01-25 Thread Tom Schindl
This questions is more suited for: the [EMAIL PROTECTED] list. Tom Ryan Perry wrote: > I'm having trouble building svn of apreq2 on FreeBSD 5.4: > > # perl Makefile.PL --with-apache2-apxs=/usr/local/apache2/bin/apxs > --with-expat=/usr/local > perl: 5.8.6 ok > mod_perl: 2.02 ok > Apache::Tes

Re: ssl form post variables

2006-01-25 Thread Tom Schindl
Hi, how do you access those parameters: - CGI.pm - APR::Request - Apache::RequestRec Tom JT Smith wrote: > Is there any difference between how form post variables are handled in > modperl via http vs https? The reason I ask is because since switching > from CGI/MP Registry to native MP2 handlers

Re: CSS errors on perl.apache.org

2006-01-25 Thread Tom Schindl
Well the style attribute run-in for display is part of the CSS2-Spec but at the moment only Opera seems to support it. http://www.blooberry.com/indexdot/css/properties/classify/display.htm Tom Tyler MacDonald wrote: > Hey, > Since the new FireFox displays CSS parsing errors in the javascri

Re: [mp2] Script replaces the process name with its own name

2006-01-20 Thread Tom Schindl
Hi, a bit more information would help: - what version of mp are you using - how does you config look like - how do you invoke ab? Tom pradeep kumar wrote: > Hi, > > When I run a script say yyy.pl using ab then one of the child process > name is changed to that of the script. > > #cat yyyp.pl >

Re: Using MP2 and CPAN modules

2006-01-17 Thread Tom Schindl
Geoffrey Young wrote: > > Tom Schindl wrote: > >>Hi, >> >>no I wouldn't downgrade to mp1 because Apache2.x is the future and >>someday Apache1.x will not be maintained any more. > > > wow, really? > > :) Just for curiosity how long do you

Re: Using MP2 and CPAN modules

2006-01-17 Thread Tom Schindl
Hi, no I wouldn't downgrade to mp1 because Apache2.x is the future and someday Apache1.x will not be maintained any more. I'd try to contact the maintainer of Apache::SessionManager which is as it looks not prepared to work with mp2. You can also hack it yourself using the guide provided at http:/

Re: restart_count() on Win32

2006-01-17 Thread Tom Schindl
me 2 '2's on restart_count(). If I can figure out how to do > initialise once, I can even try to spawn threads properly. > > Can anyone confirm if this is a Windows Thing, or it happens to FreeBSD/ > Linux installations as well? > > - Original Message - >

  1   2   3   4   >