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
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
> 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
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
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
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
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
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
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
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
> 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
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
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
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
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
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
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
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
> -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-$_&
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
> 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
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
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.
> > 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 =>
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
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
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
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
42 matches
Mail list logo