Hi,
I am running Apache Server with mutiple hosts (IP as well as name based) on
a SuSe Linux 6.4 machine. Some of the hosts are running modperl scripts as
well as perl scripts at the same time and they do share the same global
variables (such as Database login/ password etc.) defined in a perl script
that is "required" in ervery script. These hosts are almost identical as
they are mostly the same webshop in different languages but do reside in
different directories.
Now I am experiencing some strange behavior: sometimes one of the hosts is
using the variables of another host. For example the german site logs into
the database as "the english site" and then displays its contents in english
instead of german. After pressing the reload button the correct content is
being displayed.
So my question now is: is it possible that this error is caused by modperl
because all of the scripts have the same scriptnames (even though they do
come from different diretories) and that they are being mixed in memory? And
how could I avoid this without having to rename all of the scripts? I did
not find anything in the documentation/ FAQs of modperl/ Apache but maybe
someone could point me to a doc about modperl/ Perl where this topic is
being covered?
Any tips would be helpful!
Many thanks in advance
T.Dittrich