RE: Perl Sections: command_rec for directive `ISA' not found!

2002-01-31 Thread Jonathan Hilgeman
I previously posted the below, but after experiencing this same problem after upgrading MySQL, I did some research and noticed that I had to re-compile/re-install the Msql-Mysql-modules-1.2216.tar.gz package/module when the libmysqlclient.so file got updated. For instance, I first installed the

Re: Problem with Directory in Perl sections

2001-11-01 Thread Richard L. Goerwitz III
James Stalker wrote: > Does anyone here have Directory working in Perl sections in mod_perl > 1.25 or above? It's funny that you mention this because, now that I think about it, I always set up directory and location blocks inside virtual host blocks, e.g.: $VirtualHost{&q

Re: Problem with Directory in Perl sections

2001-10-31 Thread James Stalker
OK, looks like no-one has any ideas - maybe I should rephrase the question. Does anyone here have Directory working in Perl sections in mod_perl 1.25 or above? Thanks, Jim On Mon, Oct 29, 2001 at 08:58:24AM +, James Stalker wrote: > Hi, > > I have hit a problem with the latest

Problem with Directory in Perl sections

2001-10-29 Thread James Stalker
Hi, I have hit a problem with the latest couple of versions of mod_perl, and I wondered if anyone might know a solution. We're using Apache 1.3.22 with mod_perl 1.26, and there appears to be a problem with the directive in perl sections... e.g. $Directory{$DocumentRoot}={ Op

Perl Sections: command_rec for directive `ISA' not found!

2001-05-09 Thread Jonathan Hilgeman
Seeing that nobody answered your question or posted the answer, I had to overcome this same problem. The problem was the Perl libraries that were installed (or not installed). You need to reinstall / install the Bundle::DBI package and the correct modules for it. In my case, I was trying to dynami

Perl Sections: command_rec for directive `ISA' not found!

2001-03-22 Thread Renaud Waldura
I recently upgraded a system to FreeBSD 4.2, Apache 1.3.19, mod_perl 1.25. We use Perl sections to configure virtual hosts from a database; the vhosts data is stored in a table, we select it with DBI and configure Apache from within a Perl section. This configuration process now fails with

New CPAN module to assist with Perl Sections

2001-03-16 Thread Kevin . Ruscoe
All I have just uploaded Tie::DxHash v0.91 to CPAN. Tie::DxHash preserves insertion order and allows duplicate keys. What on earth for?? Well, this helps people who are using Perl Sections (particularly with mod_rewrite) to construct more complex rules. The module's synopsis illust

Perl sections / Location problems

2001-02-14 Thread Michael J Schout
I've been scratching my head on this for quite a while and I cant seem to figure it out. I have a very stripped down configuration, which only contains the following section: use Apache::Status; $Location{"^/perl-status-1\$"} = { SetHandler => 'perl-script', PerlHandler => 'Apache::Statu

Re: problems with %Location inside perl-sections

2001-02-13 Thread Stas Bekman
On Mon, 12 Feb 2001, Marc Lehmann wrote: > On Mon, Feb 12, 2001 at 08:48:57AM +0800, Stas Bekman <[EMAIL PROTECTED]> wrote: > > Looks like Apache doing stat() calls problem. Try to run the request under > > strace(1) or truss(1). See: > > http://perl.apache.org/guide/performance.html#Reducing_the

Re: problems with %Location inside perl-sections

2001-02-11 Thread Marc Lehmann
On Mon, Feb 12, 2001 at 08:48:57AM +0800, Stas Bekman <[EMAIL PROTECTED]> wrote: > Looks like Apache doing stat() calls problem. Try to run the request under > strace(1) or truss(1). See: > http://perl.apache.org/guide/performance.html#Reducing_the_Number_of_stat_Ca this is with perl-status: [pi

Re: problems with %Location inside perl-sections

2001-02-11 Thread Stas Bekman
On Sun, 11 Feb 2001, Marc Lehmann wrote: > I have two problems related to setting Location directives from within > perl sections that I don't understand (I've looked at the mod_perl guide > and the archive but a RTFM is certainly welcome ;) > > First problem: work

problems with %Location inside perl-sections

2001-02-11 Thread Marc Lehmann
I have two problems related to setting Location directives from within perl sections that I don't understand (I've looked at the mod_perl guide and the archive but a RTFM is certainly welcome ;) First problem: works on url space only while $Location requires existing directo

Re: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Wade Burgett
This is working for me. I do some aliasing of mod_perl directories outside of the section for stuff that all my hosts need to share so my httpd.conf is not all perl, but I do have some aliasing going on. There's some stuff there to pull my records out of a database but basically the $Co

Re: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Dave Baker
> Has anyone successfully built a fully perl conf file with multiple virtual > hosts on the same IP? I'm giving it my best, but just can't quite get it to > work. I'm stuck on aliases. The Eagle book and the mod_perl guide have > both been of great help getting this far, but I can't find an exa

RE: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Veatch, David W
Got it. So far, everything appears to be working like a dream. Here's the changes I made: # OLD and BREAKY Location => { '/' => { SetHandler => 'perl-script', PerlInitHandler => 'Apache::StatINC', P

RE: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Veatch, David W
tt [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 07, 2001 12:38 PM > To: Veatch, David W > Cc: [EMAIL PROTECTED] > Subject: Re: Perl Sections, NameVirtualHost, and Aliases > > > > However, now I'm getting this: > > > > : PerlSetVar takes

Re: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Benjamin Trott
> However, now I'm getting this: > > : PerlSetVar takes two arguments, Perl config var and value. I don't think PerlSetVar likes this line: [ Auth_DBI_pwd_whereclause => '"user_usertype>0"' ], You could try taking out the quotes and see if that helps, cause it did for me (though I didn't c

RE: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Veatch, David W
That was my conclusion as well... PerlSetVar is the same data structure (as far as mod_perl is concerned), so it makes sense to use the same syntax. However, now I'm getting this: : PerlSetVar takes two arguments, Perl config var and value. If you have ideas, feel free, but I'm not going to wai

Re: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Benjamin Trott
I think that this: > PerlSetVar => { > Auth_DBI_data_source => 'dbi:Pg:dbname=reckdb', > Auth_DBI_username => 'dvicci', > Auth_DBI_pwd_table => 'user_profile', > Auth_DBI_uid_field => 'user_username', > Auth_DBI_pwd_field => 'user_password', > Auth_DBI_pwd_whereclause => '"user_usertype>0"', > A

RE: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Veatch, David W
e Alias problem fixed, I'm feeling much better about it. Thanks! Perhaps an Alias example could be added to the docs somewhere? > -Original Message- > From: Jason Terry [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 07, 2001 11:53 AM > To: G.W. Haywood; Veatch, Dav

Re: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Jason Terry
I use this code to pull my domains from a VERY simple mySQL db - Original Message - From: "G.W. Haywood" <[EMAIL PROTECTED]> To: "Veatch, David W" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 07, 2001 10:04 AM Subject: R

RE: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Veatch, David W
I haven't no, but I will. I'm doing this at home in preparation for implementing it at work, where I hesitate to throw yet another module into the mix (we already have a pretty rich set of compile time modules in there). Thanks! :) > From: G.W. Haywood <[EMAIL PROTECTED]> > > Dunno if it will w

Re: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread G.W. Haywood
Hi there, On Wed, 7 Feb 2001, Veatch, David W wrote: > Has anyone successfully built a fully perl conf file with multiple virtual > hosts on the same IP? Dunno if it will work for you in those circumstances, but have you looked at mod_macro? I used it last year and it was fine for an ordinary

Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Veatch, David W
Yo, Has anyone successfully built a fully perl conf file with multiple virtual hosts on the same IP? I'm giving it my best, but just can't quite get it to work. I'm stuck on aliases. The Eagle book and the mod_perl guide have both been of great help getting this far, but I can't find an exampl

Re: in virtualhosts in perl sections

2000-11-16 Thread Benjamin Trott
> Anyone have any experience doing sections inside of perlsections > virtualhosts. > I can't see anything in the docs about this. > Just wanted to ask before I start experimenting, as I don't have the first > clue about how this syntax might work. Assuming I'm not missing something subtle about

in virtualhosts in perl sections

2000-11-16 Thread Tom Lancaster
Anyone have any experience doing sections inside of perlsections virtualhosts. I can't see anything in the docs about this. Just wanted to ask before I start experimenting, as I don't have the first clue about how this syntax might work. Thanks, -- Tom Lancaster Red Hat, Inc. Web E

Bizarre Perl Sections Problem

2000-10-20 Thread Benjamin Trott
I'm having a really strange (in my opinion) problem with Perl sections and using the Apache::ReadConfig namespace explicitly (qualifying variables, like %Apache::ReadConfig::Location). Here's what I'm doing: I have a small library of routines; I'm using PerlRequire to load tha

Apache Perl Sections Woes

2000-10-05 Thread Carlos Ramirez
I'm trying to configure my Apache config file using Perl Sections. I'm stuck in trying to populate a Directory directive with a bunch of "Allow from"s like so: ## Get my "allow froms" from an existing list of ip addresses my $accessfile = '/usr/local/etc/ap

Re: backticks in perl sections?

2000-05-30 Thread Stas Bekman
On Tue, 30 May 2000, Honza Pazdziora wrote: > On Tue, May 30, 2000 at 11:35:27AM +0100, Kees Vonk 7249 24549 wrote: > > I have a question about perl sections, I have the need to > > build a httpd.conf file that can be run on more than one > > server, this means that I n

Re: backticks in perl sections?

2000-05-30 Thread Honza Pazdziora
On Tue, May 30, 2000 at 11:35:27AM +0100, Kees Vonk 7249 24549 wrote: > I have a question about perl sections, I have the need to > build a httpd.conf file that can be run on more than one > server, this means that I need to determine what the server > name is (for the ServerName d

backticks in perl sections?

2000-05-30 Thread Kees Vonk 7249 24549
I have a question about perl sections, I have the need to build a httpd.conf file that can be run on more than one server, this means that I need to determine what the server name is (for the ServerName directive), I think I can do this by putting: $ServerName = `uname -n`; but is it

RE: how do I use perl sections

2000-05-05 Thread Benedict Lofstedt
Eric Cholet writes: > > but you're not following my example quoted above. > @ScriptAlias is a list of aliases. Each alias is a _reference_ to > a two-element array. > I got the following to work after stopping/restarting the server: my @cgi_users = qw(xx yy); foreach (@cgi_users) { pus

RE: how do I use perl sections

2000-05-04 Thread Eric Cholet
> -Message d'origine- > De: Benedict Lofstedt [SMTP:[EMAIL PROTECTED]] > Date: jeudi 4 mai 2000 15:38 > À:Eric Cholet > Cc: [EMAIL PROTECTED] > Objet: RE: how do I use perl sections > > Eric, > > > push @ScriptAlias, [ "/cgi-$_&

RE: how do I use perl sections

2000-05-04 Thread Benedict Lofstedt
Eric, > push @ScriptAlias, [ "/cgi-$_", "/users/$_/cgi-bin" ]; > > > Where can I find better info than given in > > http://perl.apache.org/src/mod_perl.html#PERL_SECTIONS ? > > http://www.modperl.com/book/chapters/ch8.html#Configuring_Apache_with_Perl > > See the paragraph: "Directive

RE: how do I use perl sections

2000-05-03 Thread Eric Cholet
> I would like to make a list of ScriptAliases like this > > ScriptAlias "/cgi-xx" "/users/xx/cgi-bin/" > ScriptAlias "/cgi-yy" "/users/yy/cgi-bin/" > > and did this: > > > my $cgi_users = qw(xx yy); > for ($cgi_users) { > push @ScriptAlias, "/cgi-$_", "/users/$_/cgi-bin"; > } > > > but it

how do I use perl sections

2000-05-03 Thread Benedict Lofstedt
I would like to make a list of ScriptAliases like this ScriptAlias "/cgi-xx" "/users/xx/cgi-bin/" ScriptAlias "/cgi-yy" "/users/yy/cgi-bin/" and did this: my $cgi_users = qw(xx yy); for ($cgi_users) { push @ScriptAlias, "/cgi-$_", "/users/$_/cgi-bin"; } but it did not work. What is wrong

Re: Perl Sections and Virtual Host

2000-04-20 Thread Doug MacEachern
i've only skimmed this thread, but haven't seen any mention of chapter 8 online at http://modperl.com/ which covers sections in detail.

Re: Perl Sections and Virtual Host

2000-04-19 Thread Pierre-Yves BONNETAIN
> > my $realname = 'http://www.main.org'; > > my %vnames = ( 'sec.ondary.com' => 'second', 'third.dom.com' => 'third' ); > ^^^ > > foreach (keys %vnames) { > ^^^ > > $VirtualHost{'192.168.1.2:80'} = { > > ServerName => $_, > > RedirectPermanent =>

Re: Perl Sections and Virtual Host

2000-04-19 Thread darren chamberlain
Pierre-Yves BONNETAIN ([EMAIL PROTECTED]) said something to this effect: *snip* > > my $realname = 'http://www.main.org'; > my %vnames = ( 'sec.ondary.com' => 'second', 'third.dom.com' => 'third' ); ^^^ > foreach (keys %vnames) { ^^^ > $VirtualHost{'192.168.1.2:80

Perl Sections and Virtual Host

2000-04-18 Thread Pierre-Yves BONNETAIN
Hello modperlers, I'm currently banging my head on the walls trying to use Perl sections, in the httpd.conf file, to configure virtual hosts. The idea is to redirect lots of 'secondary' domains to URLs on our 'main' website. Let's say the main website

Re: not allowed here? (Perl sections)

1999-11-25 Thread Ken Williams
ting the error " not allowed here" when I try to use Perl >sections in an .htaccess file under mod_perl 1.21. The same setup >works fine under mod_perl 1.18 (my frontend server). > >The .htaccess is simple, it's just got a section that's about 10 >lines long, not

not allowed here? (Perl sections)

1999-11-24 Thread Ken Williams
Hi, I'm getting the error " not allowed here" when I try to use Perl sections in an .htaccess file under mod_perl 1.21. The same setup works fine under mod_perl 1.18 (my frontend server). The .htaccess is simple, it's just got a section that's about 10 lines long, n