Re: connection monitoring

2003-11-29 Thread Tom Schindl
Am Sa, 2003-11-29 um 09.49 schrieb John Michael: > But This: > > if ($h->r->connection->aborted) { > > would not be called until this > > $h->r->send_fd($fh); > > were already through. For a large file, wouldn't that it too late. > or would a real aborted connection cause send_fd($fh) to go a

Re: Mod Perl + Apache Error logs, extend DBILogger

2004-01-10 Thread Tom Schindl
Hi, I'm not sure whether I'm right or wrong. Your problem is that the logging phase is coming after the PerlHandler-phase and that $r->content from the PerlHandler-phase has already consumed the posted data. To come across this problem you could use Apache::Request which works as a singleton a

Re: Current URL

2004-02-13 Thread Tom Schindl
It's: 8< $r->connection->remote_ip 8< See: http://perl.apache.org/docs/1.0/api/Apache.html#_cr_E_gt_connection Ian Joyce wrote: This may be day 1 stuff for most of you, but... What's the quckest way to determine th

Re: Serving specific files with some authentication

2004-02-24 Thread Tom Schindl
new to all of this... > > Cheers, > --Sasan -- \\\||/// \\ - - // ( @ @ ) -oOo--( )--oOo---------- ___ ___tom schindl o __/ /

Re: reloading modules in a handler with eval

2004-02-27 Thread Tom Schindl
I go with you in a dev environment still it decreases performance so on a production server where modules should not change every minute I never use it. Nevertheless I don't know exactly how Apache::Reload is working but I suppose it deletes the module in %INC and reloads it using perls standa

Re: passing external data into modperl

2004-03-14 Thread Tom Schindl
e to check the previous one, it is OK for the previous > one to never have been seen. > > I am using Apache::Registry. > > Any ideas? > > -Ethan -- \\\||/// \\ - - // ( @ @ ) -oOo--( )--oOo----------

Re: query_string

2004-03-24 Thread Tom Schindl
You don't have to parse the query-String yourself, use Apache::Request Tom Mike Ni wrote: Hey everyone, I am having a tough time to parse the "query_string". Does anyone know where I can find man page about how the Apache construct the "query_string"? Additionlly, is it right that Apache will p

Re: modifying request content

2004-04-07 Thread Tom Schindl
As far as I know not but you could pass information using $r->pnotes(), maybe you could also use my $apr = Apache::Request->instance($r); In all modules in the chain and use $apr->param() to set/reset different things. Tom dorian wrote: is there any way currently to take the content of a requ

Re: data from STDIN

2004-04-15 Thread Tom Schindl
You could use $r->read($buf, $bytes_to_read, [$offset]) if I'm not completely wrong. See: http://perl.apache.org/docs/1.0/api/Apache.html#_r_E_gt_read__buf___bytes_to_readoffset__ -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html Li

Re: data from STDIN

2004-04-15 Thread Tom Schindl
But there's nobody reading the STDIN if you avoid doing something like this: my $cgi = new CGI(); my $rq = Apache::Request->new($r); my $content = $r->content(); Why would you do that if you know that none of these methods will work because you don't get a real post. Tom simran wrote: You could

Re: data from STDIN

2004-04-15 Thread Tom Schindl
simran wrote: But there's nobody reading the STDIN if you avoid doing something like this: my $cgi = new CGI(); my $rq = Apache::Request->new($r); my $content = $r->content(); Why would you do that if you know that none of these methods will work because you don't get a real post. I wish i coul

Re: Defining specific vars in conf for a shared script

2004-04-18 Thread Tom Schindl
Why are you not using config files and only set the path to this file like this. PerlSetVar my_cnf /etc/vhostconfs/80.cnf PerlSetVar my_cnf /etc/vhostconfs/81.cnf 80.cnf -8<- HTML_TEMPLATE_ROOT = "/websites/80/templates" ->8- You could read the config-file when y

Re: Defining specific vars in conf for a shared script

2004-04-19 Thread Tom Schindl
e s t s o l u t i o n . a tEDV Systemhaus GmbH ------------ tom schindlleiter softwareentwicklung mobile ++43 664 3145958 eduard-bodem-gasse 8/3A-

mod-perl 2.0 - Docu Error

2004-05-10 Thread Tom Schindl
Hi, there's a small issue with the documentation of Apache::RequestRec, where it states in synopsis that one can use $r->dir_config without loading Apache::RequestUtil. One could remove $r->dir_config or also load Apache::RequestUtil. I'd prefer to remove it because its documented as a method

Re: No output from script on OSX 10.3/Apache 1.3.29/mod_perl-1.26

2004-04-26 Thread Tom Schindl
You can not run this script in the shell because it expects a Apache::Request-Object which is passed by Apache::Registry to you. Why you are getting Apache::Request is because Apache::Registry is wrapping your "CGI"-Code in an subroutine. The code run inside mod_perl looks something like the fo

Re: Problem with perl system() function

2004-04-28 Thread Tom Schindl
Hi, system will wait until the executed shell-script has finished. I'd rather guess that you are not allowed to call the commandline programm you'd like to call. Did you get any thing in the error_log? How do you call the system-command: * system *`` * qx Maybe you could show us the code you'r

Re: Turning off modperl in specific directories

2004-05-24 Thread Tom Schindl
Hi, have either set a ScriptAlias like ---8<--- ScriptAlias /cgi-bin/ "/var/www/main/sub/cgi-bin/" ---8<--- or an AddHandler ---8<--- AddHandler cgi-script .cgi ---8<--- s

Re: Turning off modperl in specific directories

2004-05-24 Thread Tom Schindl
EDV Systemhaus GmbH ------------ tom schindlleiter softwareentwicklung mobile ++43 664 3145958 eduard-bodem-gasse 8/3A-6020 innsbruck fa

Re: Could not be able to compile perl 5.6.0 or 5.6.1 or 5.6.2 on AIX 5.2 with GCC

2004-05-26 Thread Tom Schindl
Hi, this has nothing to do with mod_perl you should give it a try at perl5porters. See http://lists.perl.org/. Tom Bheema Rao Merugu, BSC, Ambattur, Chennai wrote: Hi, Please suggest me on how to compile these versions of perl, moreover I am able to compile 5.8.3 of perl on AIX5.2. the e

Re: mod_perl 2.0 globals question

2004-05-27 Thread Tom Schindl
Nathanial P. Hendler wrote: I'm not sure if this is a style or function question. I'd like to have a module called Debug.pm that has a variable in it that if set to '1' by anything (main script, or other modules) will print debug messages. Reading the Orielly "Practical mod_perl" I thought it was

Re: mod_perl 2.0 globals question

2004-05-27 Thread Tom Schindl
Nathanial P. Hendler wrote: I'm not sure if this is a style or function question. I'd like to have a module called Debug.pm that has a variable in it that if set to '1' by anything (main script, or other modules) will print debug messages. Reading the Orielly "Practical mod_perl" I thought it was

Re: mod_perl 2.0 globals question

2004-05-27 Thread Tom Schindl
yone explain to me why I can't have a global variable when I put Debug into its own file? Can anyone tell me how to accomplish what I'm after? Thanks, Nathanial Hendler Tucson, AZ USA http://retards.org/ -- b e s t s o l u t i o n . a tEDV Systemhaus GmbH

Re: [mp2] $dbh and config values methods

2004-05-27 Thread Tom Schindl
Nathanial P. Hendler wrote: Ok, so I'm convinced that I should be using Log::Log4Perl. I'm using ModPerl::Registry and was wondering if people could share their approaches to configuration variables and database handlers under mp2. I'd like to have a config module, that holds things like: $docum

[mp2]APR::Brigade issues

2004-05-28 Thread Tom Schindl
More perlish would be: insert_head => unshift insert_tail => push Although these method-names are perfect. next($b) => next() prev($b) => prev() I don't know whether my conception is right but $bb is something like an iterator. Why does one have to pass $bb->next($b) $b, wouldn't $bb->next() that

[mp2] APR::Bucket issues

2004-05-28 Thread Tom Schindl
eos_create => create_eos would sound more like you would use it in a human language although I'm also happy with eos_create. flush_create => create_flush same as above Tom -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette:

Re: mod_perl not able to run some pl files.

2004-05-28 Thread Tom Schindl
well is the "perl" really executing your perl or the one that comes with the system? # which perl If you don't have uninstalled the default perl your command will execute the system perl because its located into /usr/bin/perl. Where's your personal built perl installed? # perl -V will tell you

Re: [mp2]APR::Brigade issues

2004-05-28 Thread Tom Schindl
Ok. I have no idea of the C-API so things should be fine. Tom Stas Bekman wrote: Tom Schindl wrote: More perlish would be: insert_head => unshift insert_tail => push Although these method-names are perfect. I should have mentioned that we want to stay as close as possible to the C API and

Re: Updating Apache and Mod_Perl

2004-06-15 Thread Tom Schindl
Hi, I would download apache, perl and mod_perl and compile it my own. I would not uninstall anything from your 7.3-rpm-packages. You said that you want to switch to a newer OS version. Please also keep in mind if you want to switch e.g. to Fedora, Mandrake, SuSE that they ship with apache2 + mod

Re: XML::XSLT and mod_perl 2.0

2004-06-16 Thread Tom Schindl
i o n . a tEDV Systemhaus GmbH ------------ tom schindlleiter softwareentwicklung mobile ++43 664 3145958 eduard-bodem-gasse 8/3A-6020 innsbruck

Re: XML::XSLT and mod_perl 2.0

2004-06-16 Thread Tom Schindl
7;ll see. I had a friend try it and they can't get it to work either - is this an Apache 2.0 issue rather than mod_perl itself? I do appreciate your help! -Jesse -----Original Message- From: Tom Schindl [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 5:27 AM To: Jesse Stay Cc:

Re: IO::File problem on Mod_perl

2004-06-17 Thread Tom Schindl
Huilli Liu wrote: Hi All, Recently I are migrating cgi to mod_perl but it is running out of the problem for IO::File. Here are my original codes: Try it like this: -8<- use Apache::RequestUtil (); $template_file = new IO::File($r->document_root()."templ

[mp2] and AuthDBI PerlAuth(en|z)Handler failing

2004-06-30 Thread Tom Schindl
hi all, preface: I'm not 100% sure that this is a mp2 resp. AuthDBI problem, this might as well be an apache problem or even worse my own blindness. We've a problem with a previously working configuration that looks approximately like this (httpd.conf): -CUT- AuthName "gimme all

Re: Cached vars

2004-07-09 Thread Tom Schindl
Hi, why are you not using the header functions provided by mod_perl, the problem you're having is described here: http://perl.apache.org/docs/2.0/user/coding/coding.html#Generating_HTTP_Response_Headers Things used here: http://perl.apache.org/docs/2.0/api/APR/Table.html#C_set_ http://perl.apache.o

Re: Cached vars

2004-07-09 Thread Tom Schindl
print $_, ": ", $self->{headers}->{$_}, "\n" for keys %{ $self->{headers} }; print "\n"; } package main; use strict; use warnings; our $HEADERS = new Headers; $HEADERS->print(); print 1; --------- On Thu, 2004

Re: Cached vars

2004-07-09 Thread Tom Schindl
Stas Bekman wrote: Tom Schindl wrote: [...] The very first URL, that you've quoted Tom, mentions that for certain headers you ought to use special Apache methods. Which is the case for content_type, no_cache and a few others. Apache does more things than just setting those headers.

Re: Cached vars

2004-07-09 Thread Tom Schindl
Stas Bekman wrote: [...] You set it explicitly, as in your example. Again, you need to use the special methods only for some of the headers. May be that section should explicitly list all those special headers. Patches are welcome. I forgot that we have a whole chapter on that topic: http://per

Re: Cached vars

2004-07-09 Thread Tom Schindl
Stas Bekman wrote: Tom Schindl wrote: Stas Bekman wrote: Tom Schindl wrote: [...] The very first URL, that you've quoted Tom, mentions that for certain headers you ought to use special Apache methods. Which is the case for content_type, no_cache and a few others. Apache does more things

Re: startup.pl file not working

2004-07-22 Thread Tom Schindl
Hi, Is Apache allowed to change into this directory/read the file, try to move it to e.g. /tmp and see if it works. You could also insert a print-Statement and you should see the output on the console when apache is started (stop/start not restart). I'm not sure but I think a restart will not r

Re: Adding more locations to INC in startup.pl

2004-07-22 Thread Tom Schindl
Yes. David Arnold wrote: All, Is this OK? # File: startup.pl use lib qw(/home/darnold/modperl/); use lib qw(/usr/local/apache/module/); 1; Where I've mkdir the module directory in /usr/local/apache. Can't test at the moment until I figure out my last question. Thanks. Reclaim Your Inbox! http://ww

Re: startup.pl file not working

2004-07-22 Thread Tom Schindl
Tom Schindl wrote: Hi, Is Apache allowed to change into this directory/read the file, try to move it to e.g. /tmp and see if it works. You could also insert a print-Statement and you should see the output on the console when apache is started (stop/start not restart). I'm not sure but I th

Re: startup.pl file not working

2004-07-22 Thread Tom Schindl
ee, those two extra locations in my startup are not included in INC. If I do this, #! /usr/local/bin/perl -w # File: Quiz1Solns.pl use lib qw(/home/darnold/modperl/); use strict; use WebDB; . . . Then all is well. Hmmm.... Any suggestions? At 07:25 AM 7/23/04 +0200, Tom Schindl wrote: Hi, Is Apache

Re: startup.pl file not working

2004-07-23 Thread Tom Schindl
EDV Systemhaus GmbH ------------ tom schindlleiter softwareentwicklung mobile ++43 664 3145958 eduard-bodem-gasse 8/3A-6020 innsbruck fax ++43 512 935

Re: startup.pl file not working

2004-07-23 Thread Tom Schindl
Stas Bekman wrote: Tom Schindl wrote: [...] That's not special to startup.pl, but to any files loaded via PerlModule and PerlRequire. And it's not true if PerlFreshRestart is used or mod_perl is built as DSO. This is documented here: http://perl.apache.org/docs/1.0/guide/c

Re: startup.pl file not working

2004-07-23 Thread Tom Schindl
Stas Bekman wrote: Tom Schindl wrote: Stas Bekman wrote: Tom Schindl wrote: [...] That's not special to startup.pl, but to any files loaded via PerlModule and PerlRequire. And it's not true if PerlFreshRestart is used or mod_perl is built as DSO. This is documented here: http://perl.

Re: Using DBI and Apache::DBI together

2004-07-28 Thread Tom Schindl
Boris Zentner wrote: Am Mittwoch 28 Juli 2004 06:36 schrieb Chris Ochs: We have our own application server built on mod perl and the template toolkit. Most of the application specific sql queries all run as a single user which is great for Apache::DBI. Every end user also has 3-4 tables they can

Re: Environment Variables and @INC

2004-07-28 Thread Tom Schindl
Ian Michell wrote: Hi, I have a slight problem. I want to know it is possible to use a variable to set part of the @INC path. Although that's a little bit off topic and much more a perl question. Yes. You can. testlib/MYTEST.pm 8< print "LOADED\n"; 1; -

Re: "error 111" occurred when I run "make test"

2004-07-28 Thread Tom Schindl
Hi, well I don't know exactly what's going wrong but it seems that your mod_perl misses building with Transhandler hooks. Normally I let mod_perl also build/install my apache and secondly you should issue the following make file command: ---8<--- [EMAIL PROTECTED

Re: "error 111" has been solved and some error occurred when configure apache

2004-07-29 Thread Tom Schindl
the reason? What's "SSL banaries"? Any others coould help me? Thanks a lot! --- Tom Schindl <[EMAIL PROTECTED]> çææï Hi, well I don't know exactly what's going wrong but it seems that your mod_perl misses building with Transhandler hooks. Normally I let mod_perl

Re: request appears to be processed twice with PDF::Create

2004-07-29 Thread Tom Schindl
Hi, Are you sure that's working as you expected? If I got you right I'm afraid I have to disappoint you but this only works if the second request is handled by the same apache-child as the first one and there's another problem. If you come back one day later and hit the same apache-child which al

Re: How to use, after install...

2004-07-30 Thread Tom Schindl
Hi, the best thing would be: 1. Read docs at perl.apache.org 2. Get one of the various good books which are out there: e.g. http://www.amazon.de/exec/obidos/ASIN/0596002270/qid=1091174088/ref=sr_8_xs_ap_i1_xgl/028-6908240-1456549 ModPerl List wrote: How do I actually use mod_perl once I install i

Re: Using DBI and Apache::DBI together

2004-08-03 Thread Tom Schindl
Ask has already stated that he's going to include it in his next release, I have already filed a doc-patch at rt.cpan.org Tom Stas Bekman wrote: Boris Zentner wrote: Hi, Am Mittwoch 28 Juli 2004 12:20 schrieb Tom Schindl: Boris Zentner wrote: [...] # bypass Apache::DBI $dbh = DBI->

Re: How to use a particular version of perl

2004-08-03 Thread Tom Schindl
Hi, Well now you need to recompile mod_perl using the new perl you compiled your own, I also recommend that you install your own apache. This way you can use the latest versions with the fewest bugs. If you are running into problems it is most likely that people will help you when running the la

Re: request appears to be processed twice with PDF::Create

2004-08-04 Thread Tom Schindl
name and their file, the file was being opened twice which made parsing a bit tricky. All I want is to open the file once. I am open to more elegant suggestions though :-) Dp. On 30 Jul 2004 at 2:41, Tom Schindl wrote: Hi, Are you sure that's working as you expected? If I got you right I&#x

Re: request appears to be processed twice with PDF::Create

2004-08-04 Thread Tom Schindl
Dermot Paikkos wrote: Hi, [...] These reports are actually users clock-in/clock-out times for the week. So the reports would are generated weekly printed and rarely used again. The issue was that if the HR person uses IE5/6 the Oh. I see not a very heavy loaded service :-). Are you running the

Re: MP2: Simple config question...

2004-08-11 Thread Tom Schindl
Tim Howell wrote: I've just installed Apache2 and mod_perl2. I'm not quite sure what I need to add to my httpd.conf to enable mod_perl on a directory. I'm not doing anything fancy--I just want to have a directory where scripts are executed with mod_perl rather than traditional CGI. I've read the

Re: Apache::Request multivalued parameters

2004-08-19 Thread Tom Schindl
Hi, I've never used $query->Vars but as far as I know Apache::Request does not provide a method like this. If the rest of your app depends on this behaviour you'll have to construct it your own like this: --8<-- my %params = (); while( $apr->param ) { $params{$

Re: problem of persistance

2004-09-20 Thread Tom Schindl
Arnaud Blancher wrote: [...] third i put a 'use warning' in the script. In the apache error log i see the warning. that's ok but i must restart the serveur when i change a module, that's more boring . is it better way to test ? Are you looking for http://perl.apache.org/docs/2.0/api/Apache/Reload.

Re: Apache-AuthenNTLM-2.07 and ModPerl 1.99_16

2004-09-20 Thread Tom Schindl
Chris Hughes wrote: Fails as Apache-AuthenNTLM attempts to use Apache::Connection::remote_host to alter the remote hostname so it can check to see if is the same connection when it is next called: From AuthenNTLM.pm: 539 # we cannot attach our object to the connection record. Since in 540

Re: Best way to distinguish between mod_perl 1 and 2

2004-09-20 Thread Tom Schindl
Are you looking for this: -->8-- use constant MP2 => ($mod_perl::VERSION >= 1.99_12); -->8-- Tom John Siracusa wrote: I'm looking for the best, most reliable way to determine if I'm running under mod_perl 1 or 2, or not under mod_perl at all. I suppo

Re: Best way to distinguish between mod_perl 1 and 2

2004-09-20 Thread Tom Schindl
27;HTTP_INTERNAL_SERVER_ERROR','DECLINED','HTTP_FORBIDDEN','OK'); } } ## proceed with your code ->8- Tom John Siracusa wrote: On Mon, 20 Sep 2004 21:19:58 +0200, Tom Schindl <[EMAIL PROTECTED]> wrote: Are you looking for this: --

Re: [mp2] APR::Table FETCH method not found (reported when using $r->headers_in->{Cookie}

2004-09-21 Thread Tom Schindl
Hi, but the test-suite runs fine at least on my cvs checkout. You don't show which modules you're loading. Try to load the same modules "t/response/TestModperl/cookie.pm" does. These are: * use Apache::RequestRec (); * use Apache::RequestIO (); Tom [EMAIL PROTECTED] wrote: 1. Problem Description

Re: Variables in memory.

2004-09-22 Thread Tom Schindl
Stas Bekman wrote: Thomas Schindl wrote: When running with mp2 and worker mpm the case is slightly different: 1. Apache-starts and starts Apache-Child 1 which spawn Thread 1.1 and Thread 1.2 and Apache-Child 2 which spawn Thread 2.1 and Thread 2.2 2. User1 hits Apache-Child 1 Thread 1.1 and sets t

Re: Variables in memory.

2004-09-22 Thread Tom Schindl
Stas Bekman wrote: Tom Schindl wrote: Thanks Stas for the full explaination. Indeed I didn't know exactly what's really going on behind the scences. Thanks for your explaination I'm always learning something new when reading your answers. Thanks :) Still on the one hand I recogn

Re: Variables in memory.

2004-09-23 Thread Tom Schindl
[EMAIL PROTECTED] wrote: Greetings, The problem is that the script takes more than 3 or 4 seconds to execute sometimes. So we have a script that takes 3-4 seconds to execute, each varaiable is defined with my $var. and when the script ends it resets the value of the variables using undef. If multip

Re: Variables in memory.

2004-09-23 Thread Tom Schindl
Tom Schindl wrote: [EMAIL PROTECTED] wrote: Greetings, The problem is that the script takes more than 3 or 4 seconds to execute sometimes. So we have a script that takes 3-4 seconds to execute, each varaiable is defined with my $var. and when the script ends it resets the value of the variables

Re: how to parse arguments

2004-09-29 Thread Tom Schindl
Harald Meier wrote: Dear list members, I am using Apache-2.0.50 and mod_perl-1.99_16. I would like to know the most secure, best, and fastest way to parse arguments. I tried libapreq, but got some strange errors, arguments stayed persistent from one request to the next and other strange things ha

Re: mod_perl crashing / hanging

2004-10-01 Thread Tom Schindl
Alex Greg wrote: Geoffrey Young wrote: [...] Thanks for your response. Sorry I wasn't clear; the httpd processes don't actually kill the server, they just slow Apache right down to the point at which it doesn't respond to requests any more. I am still able to get onto the box and kill the proce

Re: Embedding another webpage within a web page

2004-10-06 Thread Tom Schindl
Martin Moss wrote: All, I have an interesting issue. I'm in the process of whitelabeling a website, but part of the process I need to whitepabel is hosted by an outsourced company. Rather than get the outsource company to change their html, I would rather download and edit the html from the outsour

Re: Apache profiler errors

2004-11-02 Thread Tom Schindl
Frank Wiles wrote: On Tue, 2 Nov 2004 11:24:40 -0500 Jason Dixon <[EMAIL PROTECTED]> wrote: On Nov 2, 2004, at 11:15 AM, Frank Wiles wrote: I'm thinking Apache::compat might be confusing it. Can you try running without it? Commented out Apache::compat, same error. :( Unfortunately, I think

Re: CGI_GATEWAY - modperl version 2

2004-11-06 Thread Tom Schindl
[EMAIL PROTECTED] wrote: 'SCRIPT_NAME' => '/perl/test.pl', 'SERVER_NAME' => 'localhost', 'SERVER_ADMIN' => '[EMAIL PROTECTED]', 'HTTP_ACCEPT_ENCODING' => 'gzip,deflate', 'HTTP_CONNECTION' => 'keep-alive', 'REQUEST_METHOD' => 'GET', 'HTTP_ACCEPT' => 'text/xml,application/xml,application/xhtml+x

Re: [mp2] can't locate object method "upload" via package "Apache::RequestRec"

2004-11-06 Thread Tom Schindl
Carl Brewer wrote: sub get_uploaded_image { my ($name, $max_size, $r) = @_; use Apache::Upload; my $req = Apache::Request->new($r); my $upload = $req->upload($name); my $upload = $r->upload($name); print STDERR $upload->filename(); } They're pretty crude, but hash_post does what

Re: [mp2] can't locate object method "upload" via package "Apache::RequestRec"

2004-11-07 Thread Tom Schindl
Carl Brewer wrote: Tom Schindl wrote: Carl Brewer wrote: sub get_uploaded_image { my ($name, $max_size, $r) = @_; use Apache::Upload; my $req = Apache::Request->new($r); Apache::Request->instance($r) just use Apache::Request->instance($r) and you're save but you definat

Re: What is the correct Apache, mod_perl, and Apache::ASP version combination?

2004-11-08 Thread Tom Schindl
Hi, To help you we have see at least the output of your error-log and the relevant parts of the httpd.conf. Tom [EMAIL PROTECTED] wrote: We are trying out an application that worked in Apache 1 in Apache 2 and it's getting an "internal error or misconfiguration" and "200 OK" error. The message

Re: logging at startup

2004-11-10 Thread Tom Schindl
Are you talking about mp1? This would be a possibility but with a significant performance hit. You could turn it the other wayround because you know when your server is starting: http://perl.apache.org/docs/1.0/api/Apache.html#Global_Variables Because I'm at it where do I find these variables in

Re: Need some help hijacking the page output pipe

2004-11-11 Thread Tom Schindl
Mark S Lowe wrote: I have a need to create my own suffix and hijack the output for page rendering code, and then re-output the page with my own OK. I have the O’Reilly book “Practical mod_perl” and there is a great example of this on page 114 in Chapter 4. However, the example is incomplete. The

Re: Segfaults with mod_php + mod_perl + mysql + mysqli

2004-11-17 Thread Tom Schindl
Sönke Ruempler wrote: Stas Bekman wrote on Tuesday, November 16, 2004 10:03 PM: Right. It's documented here: http://perl.apache.org/docs/1.0/guide/troubleshooting.html#_ex it_signal_Segmentation_fault__11___with_mysql I use PHP 5.0. There is no bundled mysql library with PHP anymore. I use

Re: Apache::Directive::conf tree error with mod_perl 1.99x and Apache 2

2004-11-17 Thread Tom Schindl
Beberle wrote: Ok, I've read the documentation and searched the archives for a similar problem but no luck. If anyone has any suggestions, I'd be most grateful. Here's my situation: I've got Apache 2.0.46 with mod_perl 1.99_09 (called 2.0-tobe in the documentation) both of which were installed by

Re: Advice needed on custom webapp framework

2004-11-17 Thread Tom Schindl
jonathan vanasco wrote: I built for mod_perl1 a customer webapp framework It functions as 2 perl modules/package sets /lib/WebAppFramework /lib/Website For each website/webapp, i make a new /lib/Website that subclasses the WebAppFramework (which handles users, email, webpage generation, etc -- an

Re: Advice needed on custom webapp framework

2004-11-17 Thread Tom Schindl
Jonathan Vanasco wrote: package Website1; my $DB = new Website1::DB(); # make a new ref for the website sub handler { my $r = shift; my $user = new Website::User( \$r, \$DB ); my $page = new Website::Page( \$user , \$DB ); my $html = $page->

Re: [mp2] Usage: Apache::Connection::remote_ip(obj) error

2004-11-18 Thread Tom Schindl
Sean T Allen wrote: apache 2.0.52 mod_perl 1.99_17 perl 5.8.0 code in question: package ProxyRemoteAddr; use Apache::Const qw(OK); use strict; sub handler { my $r = shift; return OK unless ( $r->connection->remote_ip eq '127.0.0.1' ) && $r->header_in( 'X-Forwarded-For' )

Re: [mp2] Usage: Apache::Connection::remote_ip(obj) error

2004-11-18 Thread Tom Schindl
Sean T Allen wrote: Tom... I see a 'AuthenNTLM' patch. but nothing specific to remote ip... which patch am i looking for on that page? Tom Schindl wrote: Uups: http://gossamer-threads.com/lists/modperl/modperl/74104?search_string=Report%20on%20mp2%20accessors%20in%20apache_structures.map

Re: mod_perl woes! frequent 500!

2004-11-22 Thread Tom Schindl
Perrin Harkins wrote: On Mon, 2004-11-22 at 14:01, Faisal Nasim wrote: It compiles and it runs great but for no reason it all the scripts randomly gives a 500 error! I was using XML::Simple so I realized I might have some unclosed file handles which cause a 500 after several hits. This is what

Re: mod_perl woes! frequent 500!

2004-11-22 Thread Tom Schindl
he complete error-message and your version of XML::LibXML. perl -MXML::LibXML -le 'print " VERSION: $XML::LibXML::VERSION";' Tom Regards, Faisal Nasim http://fnasim.blogspot.com/ At 02:04 AM 11/23/2004, Perrin Harkins wrote: On Mon, 2004-11-22 at 15:50, Tom Schindl wrote: W

Re: AIM/mp2 Apache::compat bug?

2004-11-24 Thread Tom Schindl
Stas Bekman wrote: That's really a question to httpd developers, mod_perl just provides the perl API for the Apache C API. Granted we could do that behind the scenes, but it's not always the desired behavior so I'm not sure we should. May be an option argument could be passed to do the work?

Re: Hash Cache using Require

2004-12-04 Thread Tom Schindl
Perrin Harkins wrote: On Fri, 2004-12-03 at 11:17 -0800, Bill Whillers wrote: Am I more or less efficient than just creating the hashes directly from hitting the database everytime the application needs it? The database is *not* under heavy load, at all. If the data is small enough, loading it i

Re: Perl + apache + cgi

2004-12-07 Thread Tom Schindl
Hi, is apache allowed to change to your home directory? Tom Brent Clark wrote: Hi Would anyone care to share some info on setting up a CGI. I keep getting this error: [Tue Dec 7 09:48:47 2004] [error] [client 192.168.111.214] Premature end of script headers: /home/gevens/cgi-bin/ecco/scripts/agent

Re: Perl + apache + cgi

2004-12-07 Thread Tom Schindl
Brent Clark wrote: Hi Would anyone care to share some info on setting up a CGI. I keep getting this error: [Tue Dec 7 09:48:47 2004] [error] [client 192.168.111.214] Premature end of script headers: /home/gevens/cgi-bin/ecco/scripts/agent/logon.pl and [2004-12-07 10:17:28]: info: (target/actual) u

Re: Perl + apache + cgi

2004-12-07 Thread Tom Schindl
Brent Clark wrote: Oh. Think now I've got it. You are running into suexec-problems because your Root-Apache is running under anonther user than your V-Host-Apache. Apache is now using suexec to execute your scripts and because your script directory is not part of the suexec-path it cannot execu

Re: [mp2] how to redirect POST data

2004-12-13 Thread Tom Schindl
Beberle wrote: Hi, I found a similar question posted in the newsgroups but no one seemed to have a solution. Here's what I'm trying to do. I have a web page that does a POST to a remote server. Basiscally, I'm trying to read the post data and if it matches a regex, I want to redirect it. Otherw

Re: Apache::Resource needs to be released seperately to the CPAN

2004-12-13 Thread Tom Schindl
[...] You've just committed me to one or the other. Ick. I install mod_perl1, and I get an Apache::Request that works with mod_perl1. I install mod_perl2, and I get an Apache::Request that works with mod_perl2. This is unacceptable. But you can run both versions of mod_perl side by side. See ht

Re: Runs on Perl 5.8.0 but no on 5.8.3:[DBI]

2004-12-21 Thread Tom Schindl
Although I doubt this has something todo with mod_perl which this list is dedicated to you should at least state: * Version of DBI.pm * Maybe also the part of DBI.pm around line 514 * try to run a programm on the command-line using DBI if it also fails => upgrade DBI.pm (are the version on the

Re: multiple developers on one Sever

2004-12-22 Thread Tom Schindl
Well you are not stating which mp-version you are running but for: mp1: http://perl.apache.org/docs/1.0/guide/modules.html#Apache__PerlVINC___Allows_Module_Versioning_in_Location_blocks_and_Virtual_Hosts mp2: http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_ Tom Henning Me

Re: clearing a parameter using Apache::Request

2005-01-07 Thread Tom Schindl
You don't state which Version of mp you are using but Yes you can in both generations, by using the Apache::Table/APR::Table-Object. I have not tested it but as far as I understand the docs this could should work. 8< use mod_perl; my $apr = Apache::Request->new($r)

Sharing readonly data between processes

2005-01-09 Thread Tom Schindl
Hi, I'm supporting a request on howto solve a memory problem with a farily huge XML-Document parsed using XML::LibXML and not sure whether I'm telling the truth when saying: 1. Loading/Parsing the XML before Apache forks its children and not modifying the data from this point on all apache/mp c

Re: Sharing readonly data between processes

2005-01-09 Thread Tom Schindl
Thanks Perrin your answers are as I suspected. Tom Perrin Harkins wrote: Tom Schindl wrote: Loading/Parsing the XML before Apache forks its children and not modifying the data from this point on all apache/mp children will share the same data and it would not be copyied to each of them, copying

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: 2 Modules with same package name

2003-10-06 Thread Tom Schindl
Am Mo, 2003-10-06 um 20.15 schrieb Perrin Harkins: > On Mon, 2003-10-06 at 13:36, Stas Bekman wrote: > > But be careful with it. If you use the threaded mpm, it's all cool. If you use > > prefork it'll create 2 perl interpreters and more inside each httpd process > > gobbling up a lot of RAM, som

Re: [Mason] Apache::Request and Mason

2003-10-06 Thread Tom Schindl
As far as I know Apache::Request is much smaller and faster than CGI which is bloated with many things you never need. If you don't have DBD::MySQL already installed you are running into same problem because to build DBD::MySQL you also need gcc. You will also need the devel-packages of mysql. Be

Re: Newbie question...

2003-11-13 Thread Tom Schindl
Strange. I did completely the same last week on my mdk-9.2 installation and no problem. Have you really used the perl Makefile.PL call I did? The mod_perl Makefile.PL builds your apache automatically. I'd suggest removing all files and starting once more. Simply put your apache.tar.gz and mod_per

Re: Newbie question...

2003-11-13 Thread Tom Schindl
No that's not right. At least the tar.gz I downloaded does ***NOT*** include any mod_perl, anybody could correct me here but I think it should not get to the archives that apache ships with mod_perl, and one does not have to download it. I think that your mod_perl is coming from all commands/compi

  1   2   3   4   >