Hello,
I am using
Apache/1.3.22 (Unix) AuthMySQL/2.20 mod_auth_pgsql/0.9.9 PHP/4.1.0 mod_perl/1.26
mod_ssl/2.8.5 OpenSSL/0.9.6a
on FreeBSD 4.4-STABLE
And have some problems with mode_perl cache.
I have some scripts which requires own modules via 'use'
I create two unix accounts, configure apache for two virtual
hosts (per unix account)
Now i have:
/home/user1/public_html/cgi-bin/script.cgi
Which uses
/home/user1/public_html/cgi-bin/module1.pm
and
/home/user2/public_html/cgi-bin/script.cgi
Which uses
/home/user2/public_html/cgi-bin/module1.pm
module1.pm include variables for using in script.cgi, db
connection params and so so. This variables individual for user1
and user2.
In script.cgi i share this variables like wroten in perl_mod
Guide.
module.pm:
-------
package module;
use strict;
use vars qw(%config);
%config = (
sql => {
host => 'localhost',
db => 'helltop',
port => '5432',
user => 'some',
pass => 'somepass'
}
);
1;
-------
And i get this variable in script.cgi like
--snip---
use module();
use vars qw(%config);
local *config = \%module::config;
---snip----
Note: I have $Apache::Registry::NameWithVirtualHost = 1;
But sometimes script.cgi from one virtual host uses module.pm from
another.
How can i fix it ?
Solution with separate apache servers bad, because i start many
virtual hosts.
How i fix it ? Please help me.
------------
With respect,
Yuri A. Kabaenkov
[EMAIL PROTECTED]