Hi all,
I'm having a serious, but intermittent, problem with my Apache::Registry
scripts. I have 2 (soon to be more!) site running on the same physical
server. Each site is driven by a set of short perl-script scripts. The
scripts execute code in OO modules that are shared among all servers.
The scripts are identical between all sites except for the following:
(index.pl)
my $SITENAME = 'cloudstock';
my $SITEID = 1;
OR
my $SITENAME = 'wiredstock';
my $SITEID = 2;
(all others in /cgi-bin)
my $search = eLogix::Search->new($CGI, 'cloudstock', 1);
$search->blah
OR
my $search = eLogix::Search->new($CGI, 'wiredstock', 2);
$search->blah
ETC
The part that changes is the 'cloudstock' and '1'. However, I
occasionally (and not reliably) get a page from cloudstock.com using the
wiredstock.com scripts! On some debugging, I can verify that when this
happens the script has the wrong values. It seems that apache is
confused and sometimes serves the wrong script for the given domain!
Is there any known problems with this sort of thing happening? Is it a
bug w/ my code or with mod_perl? I'm tearing my hair out trying to
figure this out.
Here's the server info:
bash-2.03$ perl -v
This is perl, version 5.005_03 built for sun4-solaris
(from /perl-status)
This is running on stronghold w/ mod_perl.
Embedded Perl version 5.00503 for Stronghold/2.4.2 Apache/1.3.6
C2NetEU/2412 (Unix) mod_perl/1.21 process 16288, running since Wed May
24 11:54:01 2000
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=solaris, osvers=2.6, archname=sun4-solaris
uname='sunos tsweb01.interpath.net 5.6 generic_105181-17 sun4u sparc
sunw,ultra-250 '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cc', optimize='-O', gccversion=
cppflags='-I/usr/local/include'
ccflags ='-I/usr/local/include'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldb -ldl -lm -lc -lcrypt
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-KPIC', lddlflags='-G -L/usr/local/lib'
If anyone has ideas, I'd love to hear them. And of course, I can go into
much greater detail if necessary.
--
Drew Taylor
Vialogix Communications, Inc.
501 N. College Street
Charlotte, NC 28202
704 370 0550
http://www.vialogix.com/