Re: Apache, Mod_Perl Upgrade

2005-08-18 Thread Philip M. Gollucci
Tom Schindl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I went back to my 2.0.40 install of Apache. The 2.0.54 was not playing nice with plesk. How do I update the @INC path and/or mod_perl for the new perl 5.8.7? I try using CPAN with install Bundle::Apache and no go. Any ideas? Ac

Re: Apache, Mod_Perl Upgrade

2005-08-18 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > > I went back to my 2.0.40 install of Apache. The 2.0.54 was not playing > nice with plesk. How do I update the @INC path and/or mod_perl for the > new perl 5.8.7? I try using CPAN with install Bundle::Apache and no go. > Any ideas? > > -Jon > >

Re: Updating from 5.8.0 to 5.8.7

2005-08-18 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Issue is still Apache.pm missing. When I 'updatedb' and then 'locate > Apache.pm' I get the following: > > /usr/lib/perl5/5.8.0/CGI/Apache.pm > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/DBI/ProfileDumper/Apache.pm > > /usr/lib/perl5/ve

Re: Hello

2005-08-18 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > [ error] Unable to open /usr/local/psa/admin/include/ap_release.h: No > such file or directory > [ error] Unable to determine server version, aborting. > [ error] Invalid MP_APXS specified? > Running make test > Make had some problems, maybe int

Re: Apache, Mod_Perl Upgrade

2005-08-18 Thread Jonathan Steffan
Jonathan Steffan wrote: After much work, I have installed perl 5.8.7 with all the modules I need. I had to upgrade to Apache 2.0.54 from 2.0.40 to be able to install mod_perl2. The new server seems to be working. I still have not gotten anything running. I'm stuck with a problem with mod_php a

Apache, Mod_Perl Upgrade

2005-08-18 Thread Jonathan Steffan
After much work, I have installed perl 5.8.7 with all the modules I need. I had to upgrade to Apache 2.0.54 from 2.0.40 to be able to install mod_perl2. The new server seems to be working. I still have not gotten anything running. I'm stuck with a problem with mod_php and the server just not st

RE: Modperl Success Story - Submission from BBC

2005-08-18 Thread Marcus J. Coles
I tried to get the BBC added as a success story a few months back ...at last someone from the beeb wants to as well!! Marcus > -Original Message- > From: Mark Hewis [mailto:[EMAIL PROTECTED] > Sent: 18 August 2005 17:26 > To: modperl@perl.apache.org > Subject: Modperl Success Story - Sub

Re: Can't get SOAP to work under mod_perl

2005-08-18 Thread Randy Kobes
On Thu, 18 Aug 2005, Steve Baker wrote: [ ... ] This is my client now: use SOAP::Lite +trace => [qw(all)]; my $soap = SOAP::Lite->uri('http:///Demo') ~->proxy('http:///steve/rpc/')->on_fault( ~sub { ~my ($soap, $res) = @_; ~die ref $res ? $res->faultdetail : $soap->tran

Re: Modperl Success Story - Submission from BBC

2005-08-18 Thread Jie Gao
Thumbs up to BBC! On Thu, 18 Aug 2005, Mark Hewis wrote: > Date: Thu, 18 Aug 2005 17:25:35 +0100 > From: Mark Hewis <[EMAIL PROTECTED]> > To: modperl@perl.apache.org > Subject: Modperl Success Story - Submission from BBC > > URL: bbc.co.uk > Title: BBC > Contact Person: Mark Hewis > Traffic: 500

Re: Question about using Apache::DBI with Postgres/MySQL

2005-08-18 Thread Jonathan Vanasco
On Aug 18, 2005, at 5:55 PM, David Hodgkinson wrote: But you're still trying to optimise prematurely. I'll need to to a lot of optimizing in the future - but I just want to avoid as many obvious mistakes as possible and compartmentalize where the mistakes are made so I can find them qui

Re: Question about using Apache::DBI with Postgres/MySQL

2005-08-18 Thread David Hodgkinson
On 18 Aug 2005, at 18:58, Jonathan Vanasco wrote: i'm thinking about moving to pgsql for stored procedures too (yes my5 has it, but its beta), but thats an entirely OT discussion. And you have pgpool too. But you're still trying to optimise prematurely. Treat your fat apaches as application

Variable Scope Planning

2005-08-18 Thread Christopher H. Laco
I know it exists, but I can't seem to find it at the moment. Somewhere there used to be a document on the implications and expectations of namespaces and doing things like this $MyModule::Cfg = 'foo'; under different environments; like under mod_perl vs. cgi vs. a perl script. Anyone

Updating from 5.8.0 to 5.8.7

2005-08-18 Thread Jonathan Steffan
I did get the script I have been working with to run once... well twice... then I restarted the httpd server and bam... no go again. It worked after I ran the following: perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)' Still works from the command line and not from Apache::Registry::handl

Re: make test fails (Solaris and Linux, same problem)

2005-08-18 Thread Philippe M. Chiasson
Gordon Lack wrote: > 1. Problem Description: > >The server core dumps when running make test. > >This happens on both Solaris and Linux systems (with the equivalent > perl, Apache and mod_perl configurations). > >Having got the core dump info I added some printf statements to the > s

Re: Modperl Success Story - Submission from BBC

2005-08-18 Thread Philippe M. Chiasson
Awesome, many thanks. This success story has been checked in as revision 233353 and should eventually appear here: http://perl.apache.org/outstanding/success_stories/bbc.html Thanks Mark! Mark Hewis wrote: > URL: bbc.co.uk > Title: BBC > Contact Person: Mark Hewis > Traffic: 500 req/sec > Succes

make test fails (Solaris and Linux, same problem)

2005-08-18 Thread Gordon Lack
1. Problem Description: The server core dumps when running make test. This happens on both Solaris and Linux systems (with the equivalent perl, Apache and mod_perl configurations). Having got the core dump info I added some printf statements to the start of ap_pcw_walk_files_config in m

Re: Hello

2005-08-18 Thread Jonathan Steffan
Perrin Harkins wrote: On Thu, 2005-08-18 at 12:21 -0600, Jonathan Steffan wrote: I have no idea how. I can't use yum... nor can I use the CPAN shell. Any advice on how to complete this? Installing things from CPAN is pretty well-covered in the Perl documentation, and not just from CPA

Re: Hello

2005-08-18 Thread Geoffrey Young
> The latest versions at this moment are available here: > http://search.cpan.org/~lds/CGI.pm-3.11/ > http://search.cpan.org/~gozer/mod_perl-2.0.1/ fwiw, I only recently discovered that search.cpan.org supports a more generic interface for the most recent version of a module: http://search.cpan

Re: Hello

2005-08-18 Thread Jonathan Steffan
Perrin Harkins wrote: On Thu, 2005-08-18 at 12:21 -0600, Jonathan Steffan wrote: I have no idea how. I can't use yum... nor can I use the CPAN shell. Any advice on how to complete this? Installing things from CPAN is pretty well-covered in the Perl documentation, and not just from CPA

Re: Hello

2005-08-18 Thread Perrin Harkins
On Thu, 2005-08-18 at 12:21 -0600, Jonathan Steffan wrote: > I have no idea how. I can't use yum... nor can I use the CPAN shell. Any > advice on how to complete this? Installing things from CPAN is pretty well-covered in the Perl documentation, and not just from CPAN shell. In short, you can do

Re: Hello

2005-08-18 Thread Jonathan Steffan
Perrin Harkins wrote: On Thu, 2005-08-18 at 12:08 -0600, Jonathan Steffan wrote: ModPerl::Registry: Can't locate object method "request" via package "Apache" at /usr/lib/perl5/5.8.0/CGI.pm line 342.! The location of the error changes as I do misc. work arounds. I have had no luck with Apa

Re: Hello

2005-08-18 Thread Perrin Harkins
On Thu, 2005-08-18 at 12:08 -0600, Jonathan Steffan wrote: > ModPerl::Registry: Can't locate object method "request" via package > "Apache" at /usr/lib/perl5/5.8.0/CGI.pm line 342.! > > The location of the error changes as I do misc. work arounds. I have had > no luck with Apache->request and as

Hello

2005-08-18 Thread Jonathan Steffan
Afternoon Group. I have been working on this for some time and Googling it. So now I am here. I am migrating to a new server. I am having some weird problems. For one, I can't seem to get CPAN to update modules... or install the 'r'ecommened updates. Any help with that would rock. The core i

Re: Question about using Apache::DBI with Postgres/MySQL

2005-08-18 Thread Jonathan Vanasco
On Aug 18, 2005, at 1:42 PM, Perrin Harkins wrote: If you can figure out a way to do that, you could theoretically have a separate process managing a pool of them. I doubt it would be worth it though. That's pretty much what I was thinking, but I didn't really want to do this in a situat

Re: Can't get SOAP to work under mod_perl

2005-08-18 Thread Steve Baker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: |>I call it like this: |> |> use SOAP::Lite +trace => [qw(all)]; |> |> my $soap = SOAP::Lite->uri('http:///Demo'); |> my $proxy = $soap->proxy('http:///steve/rpc/'); |> my $obj = $proxy->hi(); |> print $obj->result;

Re: Adding Directives At Runtime

2005-08-18 Thread Philippe M. Chiasson
David Baird wrote: > On 8/16/05, Christopher H. Laco <[EMAIL PROTECTED]> wrote: >>Philippe M. Chiasson wrote >>>A sample example of what I _think_ you are trying to do would look like: >>> >>>[...] >>> >>>With ->add_config, you can just feed arbitrary chunks of config to httpd, so >>>you >>>are fr

Re: Question about using Apache::DBI with Postgres/MySQL

2005-08-18 Thread Perrin Harkins
On Thu, 2005-08-18 at 13:31 -0400, Jonathan Vanasco wrote: > I didn't see anything about DBI connections in the guide about that. It's one of the primary reasons to use a front-end server. I'm afraid your idea won't work because most databases don't support passing handles across processes. If y

Re: Can't get SOAP to work under mod_perl

2005-08-18 Thread Kurt Hansen
Steve Baker wrote: http://www.cm.aol.com/steve/rpc/ HTTP/1.1 Accept: text/xml Accept: multipart/* Content-Length: 448 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://www.cm.aol.com/Demo#hi"; http://www.w3.org/1999/XMLSchema-instance"; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/en

Re: Question about using Apache::DBI with Postgres/MySQL

2005-08-18 Thread Jonathan Vanasco
I'm front-ending with lighttpd right now (originally was apache, but I moved over) and limiting with maxclients I didn't see anything about DBI connections in the guide about that. i guess i was just thinking about making myself more aware of the number of connections. On Aug 18, 2005, at 1

Re: Can't get SOAP to work under mod_perl

2005-08-18 Thread Steve Baker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: | On Thu, 18 Aug 2005, Steve Baker wrote: | |> -BEGIN PGP SIGNED MESSAGE- |> Hash: SHA1 |> |> I am trying to get SOAP to work under mod_perl. Googling about and |> reading what I can find on it, it looks like there are

Re: Question about using Apache::DBI with Postgres/MySQL

2005-08-18 Thread David Hodgkinson
On 18 Aug 2005, at 18:18, Jonathan Vanasco wrote: Instead of connecting to the DB and having DBI cache the handle after-the-fork, would it make sense to subclass Apache::DBI, have the parent process create a defined number of connections, and then use some sort of roundrobin/checkout to si

Re: Can't get SOAP to work under mod_perl

2005-08-18 Thread Geoffrey Young
> I call it like this: > >use SOAP::Lite +trace => [qw(all)]; > >my $soap = SOAP::Lite->uri('http:///Demo'); >my $proxy = $soap->proxy('http:///steve/rpc/'); >my $obj = $proxy->hi(); >print $obj->result; try my $soap = SOAP::Lite ->uri('http:///Demo') ->proxy('htt

Re: Can't get SOAP to work under mod_perl

2005-08-18 Thread Randy Kobes
On Thu, 18 Aug 2005, Steve Baker wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am trying to get SOAP to work under mod_perl. Googling about and reading what I can find on it, it looks like there are many ways to do this, but they are all giving me the same (non-working) result. I have

Question about using Apache::DBI with Postgres/MySQL

2005-08-18 Thread Jonathan Vanasco
Instead of connecting to the DB and having DBI cache the handle after-the-fork, would it make sense to subclass Apache::DBI, have the parent process create a defined number of connections, and then use some sort of roundrobin/checkout to sign out a handle during a request? You're asking "why?"

Re: Can't get SOAP to work under mod_perl

2005-08-18 Thread Steve Baker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: | On Thu, 2005-08-18 at 09:40 -0700, Steve Baker wrote: | |>I have two systems I'm trying to do this on: A Mac with Apache |>1.2.33/mod_perl 1.29, and a Soalris 8 box with Apache 1.1.28 and |>mod_perl 1.27. | | | One thing tha

Re: Can't get SOAP to work under mod_perl

2005-08-18 Thread Perrin Harkins
On Thu, 2005-08-18 at 09:40 -0700, Steve Baker wrote: > I have two systems I'm trying to do this on: A Mac with Apache > 1.2.33/mod_perl 1.29, and a Soalris 8 box with Apache 1.1.28 and > mod_perl 1.27. One thing that might help is to use the most recent apache and mod_perl versions (in the 1.x se

Can't get SOAP to work under mod_perl

2005-08-18 Thread Steve Baker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am trying to get SOAP to work under mod_perl. Googling about and reading what I can find on it, it looks like there are many ways to do this, but they are all giving me the same (non-working) result. I have two systems I'm trying to do this on: A M

Modperl Success Story - Submission from BBC

2005-08-18 Thread Mark Hewis
URL: bbc.co.uk Title: BBC Contact Person: Mark Hewis Traffic: 500 req/sec Success Story: "We have been running ModPerl to deliver dynamic applications as part of bbc.co.uk for the past 4 years. At present we have well over 50 applications ( and growing ) using Modperl and based on the Apache::Regi

Re: Clearsilver Templates

2005-08-18 Thread Perrin Harkins
On Thu, 2005-08-18 at 08:39 -0700, Praveen Ray wrote: > I suspect its because we've written a large number of > moderately complex macros Could be. You can probably test this fairly simply by globally removing the macro calls and benchmarking. > Or, is it the fact that TT uses string concatenati

Re: Clearsilver Templates

2005-08-18 Thread Praveen Ray
> > The > > Template-Toolkit is getting rather slow for our needs > and > > I'm looking around for alternatives. > > That's pretty surprising. Pure template processing is > your bottleneck? > Are you doing some kind of data processing or data > retrieval from > inside of your templates? I su

Re: Clearsilver Templates

2005-08-18 Thread jonathan vanasco
On Aug 18, 2005, at 1:10 AM, Perrin Harkins wrote: Praveen Ray wrote: Does anyone have any experience of using clearsilver (http://www.clearsilver.net) with mod_perl (1 or 2)? I don't have any experience under mod_perl - but if you want a better idea of how the system works than what is on

Re: Adding Directives At Runtime

2005-08-18 Thread David Baird
On 8/16/05, Christopher H. Laco <[EMAIL PROTECTED]> wrote: > Philippe M. Chiasson wrote: > > A sample example of what I _think_ you are trying to do would look like: > > > > > > PerlModule Catalyst > > > > > > > > package Catalyst; > > use Apache2::ServerUtil qw(); > > > > [... figure out where/

Re: Filter-Question : Caching

2005-08-18 Thread Markus Wolf
Hallo, first - thank for your answer - i try it - but it do no not work - here are some code of the Filter #Name package ApacheKSKBB::session; #Pfade use lib "/usr/lib/perl5/Apache2" ; #Module #use strict; #use warnings; use Apache::Filter (); use Apache::RequestRec (); use Apache::Reque