mod_proxy and mod_perl in guide

2001-09-17 Thread Andrei A. Voropaev
Hi! I have one question. According to the Guide there's buffering feature of mod_proxy that allows to release heavy mod_perl process from delivering data over slow connection to the user. In our system we have to pass large PDF files thru mod_perl to proxy and we noticed that it takes the same

Re: Knowledge Base for 2.0

2001-09-17 Thread Stas Bekman
On Sun, 16 Sep 2001, Jim wrote: Last month, there was some mention of putting together a knowledge base for the mod_perl 2.0 documentation. I'm getting to the point at work that I can start throwing some time to it. Here are some thoughts I'm having regarding the design (programming

Re: Knowledge Base for 2.0

2001-09-17 Thread Stas Bekman
On Sun, 16 Sep 2001, Jim Smith wrote: On Sun, Sep 16, 2001 at 02:37:50PM -0500, Jim wrote: Last month, there was some mention of putting together a knowledge base for the mod_perl 2.0 documentation. I'm getting to the point at work that I can start throwing some time to it. Here are

RE: Updating $r-connection-aborted before $r-print() ?

2001-09-17 Thread Stas Bekman
On Sat, 15 Sep 2001, Geoffrey Young wrote: my $fileno = $r-connection-fileno; $s = IO::Select-new($fileno); die aborted if grep { m/$fileno/ } $s-can_read(1); Hmm, does this actually work Geoff? What happens if mod_perl is running as a back-end? In this case $r-connection-aborted

Re: Apache.pm fails to load...

2001-09-17 Thread Stas Bekman
On Sat, 15 Sep 2001, U n d e r a c h i e v e r wrote: Hi I'm making a fresh build of Apache on Solaris 8 with mod_perl and mod_ssl. When I load apache i get Apache.pm failed to load! in the error log and the application bombs out. mod_perl guide is your friend:

Can't build (was Re: Apache.pm fails to load...)

2001-09-17 Thread U n d e r a c h i e v e r
--- Stas Bekman [EMAIL PROTECTED] wrote: mod_perl guide is your friend: http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl thanks for the tip, but that doesn't work for me. following the instructions on the page, i find i get the following errors after the 'make' in

Re: Can't build (was Re: Apache.pm fails to load...)

2001-09-17 Thread Stas Bekman
U n d e r a c h i e v e r wrote: --- Stas Bekman [EMAIL PROTECTED] wrote: mod_perl guide is your friend: http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl thanks for the tip, but that doesn't work for me. following the instructions on the page, i find i get the

Re: Knowledge Base for 2.0

2001-09-17 Thread George Sanderson
On Sun, 16 Sep 2001, Jim wrote: I'll try to spit out some more thoughts as they come. Please feel free to contribute. Now's the time to get the wish list put together. Some ideas (from the user's perspective): It would be nice if, the user interface provided a configuration and version form

Knowing if a apache server is compiled with mod_perl

2001-09-17 Thread Mat
Hi everyone, I'd like to know if there is a simple way to find if an apache server is compiled with mod_perl and with which version. My aim is to write a script which compile mod_perl if it is not installed. For the moment I've found only two ways, launch the actual server and telnet it

RE: Template or XML?

2001-09-17 Thread Matt Sergeant
-Original Message- From: Alexandr Efimov [mailto:[EMAIL PROTECTED]] Our questions are: 1. Are there any mod-perl packages created for similar tasks? 2. Can constructions similar to FOREACH c=rows ... /FOREACH (which is now translated into [% FOREACH ... %] template blocks)

RE: Template or XML?

2001-09-17 Thread Matt Sergeant
-Original Message- From: Alexandr Efimov [mailto:[EMAIL PROTECTED]] Yes. AxKit's XSP module does this. Your SQL can be generated with the AxKit::XSP::ESQL module, and then you can loop over the results in your XSLT stylesheet using either xsl:foreach or (better still) using a

Persistent DB connections

2001-09-17 Thread Datasim
Hi, Im very near to the solution of my problem, but there's still a thing that's not working properly. Before running my perl script (f1.pl) i see five httpd@hostname sessions in Oracle V$session but at the moment in which i run f1.pl there appear a seventh session alone such f1.pl@hostname.

Can't build mod_ssl + mod_perl

2001-09-17 Thread Peter Lister
apache_1.3.20 mod_perl-1.26 mod_ssl-2.8.4-1.3.20 I can't build Apache with these together if the mod_ssl build works, mod_perl is not built in. If I build mod_perl in the approved manner, the mod_ssl build files. I have followed the recipe in INSTALL.SSL - and it doesn't help. Has anyone got

apache/mod_perl socket bug on Win32

2001-09-17 Thread Avi Ben-Harush
it seems that apache/mod_perl have a problem with sockets on win32. after the socket has been opened successfully (I double check to see if the socket handler is defined with fileno($socket)) the print to the socket is failing due to an invalid argument error . it seems that this bug exists for

Re: Can't build (was Re: Apache.pm fails to load...)

2001-09-17 Thread Philippe M . Chiasson
On Mon, Sep 17, 2001 at 08:02:02PM +0800, Stas Bekman wrote: U n d e r a c h i e v e r wrote: --- Stas Bekman [EMAIL PROTECTED] wrote: mod_perl guide is your friend: http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl thanks for the tip, but that doesn't

Re: mod_proxy and mod_perl in guide

2001-09-17 Thread Perrin Harkins
After checking Apache code for mod_proxy looks like it is normal behaviour. File modules/proxy/proxy_util.c function ap_proxy_send_fb. This function reads from originating server into buffer and then writes to the customer from this buffer. BUT the socket is closed AFTER all the data is sent

Re: Can't build (was Re: Apache.pm fails to load...)

2001-09-17 Thread U n d e r a c h i e v e r
a search for libssl reveals: find / -name libssl.so.0 /usr/local/ssl/lib/libssl.so.0 what do you see when you do: ls -l /usr/local/ssl/lib/libssl.so.0 -rw-r--r-- 1 bin bin 844468 Oct 29 2000 /usr/local/ssl/lib/libssl.so.0 so mine's not a symlink nor an

RE: Can't build (was Re: Apache.pm fails to load...)

2001-09-17 Thread Joe Breeden
Maybe you could build mod_perl as a DSO with APXS. That way you could build it after the apache/mod_ssl is built and working. --Joe Breeden -- Sent from my Outlook 2000 Wired Deskheld (www.microsoft.com) -Original Message- From: U n d e r a c h i e v e r

Re: Can't build mod_ssl + mod_perl

2001-09-17 Thread Brian P Millett
Peter Lister wrote: apache_1.3.20 mod_perl-1.26 mod_ssl-2.8.4-1.3.20 I can't build Apache with these together if the mod_ssl build works, mod_perl is not built in. If I build mod_perl in the approved manner, the mod_ssl build files. I have followed the recipe in INSTALL.SSL - and it

Re: Can't build (was Re: Apache.pm fails to load...)

2001-09-17 Thread Stas Bekman
U n d e r a c h i e v e r wrote: a search for libssl reveals: find / -name libssl.so.0 /usr/local/ssl/lib/libssl.so.0 what do you see when you do: ls -l /usr/local/ssl/lib/libssl.so.0 -rw-r--r-- 1 bin bin 844468 Oct 29 2000 /usr/local/ssl/lib/libssl.so.0 so mine's not

Re: Can't build mod_ssl + mod_perl

2001-09-17 Thread Stas Bekman
Peter Lister wrote: apache_1.3.20 mod_perl-1.26 mod_ssl-2.8.4-1.3.20 I can't build Apache with these together if the mod_ssl build works, mod_perl is not built in. If I build mod_perl in the approved manner, the mod_ssl build files. I have followed the recipe in INSTALL.SSL - and it

FilesMatch for files that don't exist

2001-09-17 Thread dss
I'd like to have a controller module, where any url that has a .phtml page will call the handler in the controller module. Within the controller module I use logic to determine which module (if any) should process the request using push_handlers. The issue is that I'm using virtual urls, so

Re: Knowing if a apache server is compiled with mod_perl

2001-09-17 Thread Ron Beck
You want to parse through the info returned from... httpd -l For example, here's my httpd -l... trex% httpd -l Compiled-in modules: http_core.c mod_env.c mod_log_config.c mod_mime.c mod_negotiation.c mod_status.c

Re: FilesMatch for files that don't exist

2001-09-17 Thread dss
Ooops, that should be: Apache::Controller (simplified for clarity) --- package Apache::Controller; use strict; use Apache::Constants qw( :common ); sub handler { my $r = shift; my $cv; if( $r-uri =~ m{\.phtml$} ) { $cv =

Re: FilesMatch for files that don't exist

2001-09-17 Thread Perrin Harkins
I'd like to have a controller module, where any url that has a .phtml page will call the handler in the controller module. Within the controller module I use logic to determine which module (if any) should process the request using push_handlers. The issue is that I'm using virtual urls,

Re: FilesMatch for files that don't exist

2001-09-17 Thread dss
--- Perrin Harkins [EMAIL PROTECTED] wrote: It's easier to use a directory structure, i.e. everything under /perl/ is handled by your controller module. You should also look at Apache::Dispatch. Thanks. Unfortunately I'm trying to please the designers and forcing them to put everything

Re: Can't build (was Re: Apache.pm fails to load...)

2001-09-17 Thread U n d e r a c h i e v e r
--- Stas Bekman [EMAIL PROTECTED] wrote: U n d e r a c h i e v e r wrote: what do you see when you do: ls -l /usr/local/ssl/lib/libssl.so.0 -rw-r--r-- 1 bin bin 844468 Oct 29 2000 /usr/local/ssl/lib/libssl.so.0 so mine's not a symlink nor an executable... that's

Knowing if a apache server is compiled with mod_perl

2001-09-17 Thread Adam Worrall
Mat == Mat [EMAIL PROTECTED] writes: Mat Hi everyone, I'd like to know if there is a simple way to find Mat if an apache server is compiled with mod_perl and with which Mat version. This does it for me: $ strings /some/httpd | grep 'mod_perl\/' The 'strings' command works

Re: Knowing if a apache server is compiled with mod_perl

2001-09-17 Thread Mark Schmick
Adam's technique below doesn't work for me, but this does (assuming you have LWP installed): sh HEAD -de http://server_you're_interested_in|grep Server: -Mark At 05:20 PM 9/17/2001 +0100, Adam Worrall wrote: Mat == Mat [EMAIL PROTECTED] writes: Mat Hi everyone, I'd like to know if

RE: Knowing if a apache server is compiled with mod_perl

2001-09-17 Thread Joe Breeden
You could also do something like: grep 'Apache' /path/to/error_log --Joe Breeden -- Sent from my Outlook 2000 Wired Deskheld (www.microsoft.com) -Original Message- From: Mark Schmick [mailto:[EMAIL PROTECTED]] Sent: Monday, September 17, 2001 2:05 PM To:

Re: FilesMatch for files that don't exist

2001-09-17 Thread darren chamberlain
dss [EMAIL PROTECTED] said something to this effect on 09/17/2001: The issue is that I'm using virtual urls, so these .phtml files don't actually exist and FilesMatchwants a physical file on the server. I'm curious if my approach is the best way. Shouldn't LocationMatch be what you want?

Re: apache/mod_perl socket bug on Win32

2001-09-17 Thread Joshua Chamas
Avi Ben-Harush wrote: it seems that apache/mod_perl have a problem with sockets on win32. after the socket has been opened successfully (I double check to see if the socket handler is defined with fileno($socket)) the print to the socket is failing due to an invalid argument error . it

problems with BerkeleyDB and apache

2001-09-17 Thread Gustav Kristoffer Ek
trying to use BerkeleyDB with Apache/1.3.21-dev, but I keep getting BerkeleyDB needs compatible versions of libdb db.h ... you have db.h version 3.1.17 and libdb version 2.4.14 I have compiled BerkeleyDB to use db3, but apache is compiled to use db2, could it be the reason? It works just fine

Re: problems with BerkeleyDB and apache

2001-09-17 Thread Ask Bjoern Hansen
On Mon, 17 Sep 2001, Gustav Kristoffer Ek wrote: trying to use BerkeleyDB with Apache/1.3.21-dev, but I keep getting BerkeleyDB needs compatible versions of libdb db.h ... you have db.h version 3.1.17 and libdb version 2.4.14 try, export LD_PRELOAD=/usr/local/lib/libdb3.so before you

Trouble getting apache run on Sun Sparc 5.7

2001-09-17 Thread ssakthiv
We are getting the follwoing error when we try to run apache.We've tried modifying the maxRequestPerChild parameter to 10 from 0, but that didn't help.We can see only the root process running immediately after starting the apache server.But if left like that for 2 days we could see the child

Apache::Hello

2001-09-17 Thread Ray and Lara Recendez
PLEASE HELP. I am trying to get Apache::Hello to work. I saved it as Hello.pm in lib/perl/Apache. Below are my setup files and pertinent info. When I access the virtual location (hello/world) from Apache's root directory, my browser returns the following message: The document contains no

Re: Apache::Hello

2001-09-17 Thread Tatsuhiko Miyagawa
On Mon, 17 Sep 2001 13:15:44 -0700 Ray and Lara Recendez [EMAIL PROTECTED] wrote: # vi Hello.pm Hello.pm 26 lines, 392 characters package Apache::Hello; # File: Apache/Hello.pm use strict; use Apache::Constants qw(:common); sub handler { my $r = shift;

Re: Pre-announce Apache::ConfigParser

2001-09-17 Thread Olivier Poitrey
- Original Message - From: Blair Zajac [EMAIL PROTECTED] To: Geoffrey Young [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, September 13, 2001 1:52 AM Subject: Re: Pre-announce Apache::ConfigParser Apache::Admin::Config Pros Cons Lack of documentation Test suite with 2

Re: Apache::Hello

2001-09-17 Thread Jeremy Howard
Ray and Lara Recendez wrote: I am trying to get Apache::Hello to work. ... #!/usr/local/bin/perl Turn PerlWarn On as described here: http://perl.apache.org/src/mod_perl.html#SWITCHES Also try running Apache in single-user mode: /usr/local/apache/bin/apachectl -X This helps you pick up

Re: Updating $r-connection-aborted before $r-print() ?

2001-09-17 Thread Joshua Chamas
Geoffrey Young wrote: my $fileno = $r-connection-fileno; $s = IO::Select-new($fileno); die aborted if grep { m/$fileno/ } $s-can_read(1); HTH Thanks for this. The code that I ended up using for Apache::ASP was: # IsClientConnected ? Might already be disconnected for busy

Re: Can't build (was Re: Apache.pm fails to load...)

2001-09-17 Thread Mithun Bhattacharya
find / -name libssl.so.0 /usr/local/ssl/lib/libssl.so.0 That seems like a nonstandard library path. Is it there in /etc/ld.so.conf and even if it is did you run ldconfig after adding it there ?? Mithun

Re: mod_proxy and mod_perl in guide

2001-09-17 Thread Vivek Khera
AAV == Andrei A Voropaev [EMAIL PROTECTED] writes: AAV In our system we have to pass large PDF files thru mod_perl to AAV proxy and we noticed that it takes the same time as sending it AAV directly to customer. Why do you have to pass the PDF thru mod_perl? Are you generating it on the fly?

Re: mod_proxy and mod_perl in guide

2001-09-17 Thread ed phillips
Thanks Vivek, Andrei, use the front end to directly handle any binaries, static files, etc. I doubt they are generating of these on the fly. Vivek Khera wrote: AAV == Andrei A Voropaev [EMAIL PROTECTED] writes: AAV In our system we have to pass large PDF files thru mod_perl to AAV

Re: cvs commit: modperl-2.0/xs/APR/Table APR__Table.h

2001-09-17 Thread Philippe M . Chiasson
Thanks, I'll remember that one... aTHX ;-) On Sat, Sep 15, 2001 at 06:21:48PM -, [EMAIL PROTECTED] wrote: dougm 01/09/15 11:21:48 Modified:xs/APR/Table APR__Table.h Log: avoid dTHX; in APR::Table-do Revision ChangesPath 1.2 +7 -3

cvs commit: modperl-2.0/pod modperl_style.pod

2001-09-17 Thread stas
stas01/09/17 06:28:51 Removed: pod modperl_style.pod Log: migrated to modperl-docs/src/devel/modperl_style/modperl_style.pod

cvs commit: modperl-2.0/todo possible_new_features.txt

2001-09-17 Thread stas
stas01/09/17 09:30:20 Modified:todo possible_new_features.txt Log: log a nice-to-have Perl package_foo feature Revision ChangesPath 1.9 +6 -0 modperl-2.0/todo/possible_new_features.txt Index: possible_new_features.txt

cvs commit: modperl-2.0/pod modperl_dev.pod

2001-09-17 Thread stas
stas01/09/17 06:53:07 Modified:pod modperl_dev.pod Log: PerlSwitches inherit from base only with +inherit. Revision ChangesPath 1.37 +6 -0 modperl-2.0/pod/modperl_dev.pod Index: modperl_dev.pod

cvs commit: modperl-2.0/src/modules/perl mod_perl.c modperl_callback.c modperl_config.c

2001-09-17 Thread dougm
dougm 01/09/17 16:36:36 Modified:lib/ModPerl Code.pm src/modules/perl mod_perl.c modperl_callback.c modperl_config.c Log: s/Enabled/Enable/g for the PerlOption Revision ChangesPath 1.67 +2 -2

cvs commit: modperl-2.0/pod modperl_dev.pod

2001-09-17 Thread stas
stas01/09/17 18:36:26 Modified:pod modperl_dev.pod Log: s/Enabled/Enable/ following the code patch Revision ChangesPath 1.38 +1 -1 modperl-2.0/pod/modperl_dev.pod Index: modperl_dev.pod

cvs commit: modperl-2.0/t/response/TestDirective - New directory

2001-09-17 Thread stas
stas01/09/17 18:59:35 modperl-2.0/t/response/TestDirective - New directory

cvs commit: modperl-2.0/t/response/TestDirective perlrequire.pm

2001-09-17 Thread stas
stas01/09/17 19:00:19 Added: t/directive perlrequire.t t/response/TestDirective perlrequire.pm Log: - add a PerlRequire test Revision ChangesPath 1.1 modperl-2.0/t/directive/perlrequire.t Index: perlrequire.t