Gossamer Forum
Home : Products : Gossamer Links : Discussions :

can multi linksql installation share mod_perl 2 ?

Quote Reply
can multi linksql installation share mod_perl 2 ?
Hi all,

When I test linksql 2.2.1 at offline test server (3.0.2 still somehow unstable) to test mod_perl 2 and apache 2 integration, I am trying to install 2 seperated linksql for 2 different project. when I use httpd.conf like this:


<Location /cgi-bin/test1>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>

and the 2 installation path is /cgi-bin/test1 and /cgi-bin/test2

weird thing is, then access http://1.1.1.1/cgi-bin/test2/admin/admin.cgi, it works fine. but when access /cgi-bin/test1/admin/admin.cgi,it died and with following error msg:

[Fri Jun 10 11:37:22 2005] [error] [client 1.1.1.2] failed to resolve handler `Apache::Registry': Undefined subroutine &Apache::Registry::OPT_EXECCGI called at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache/Registry.pm line 7.\nBEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache/Registry.pm line 8.\nCompilation failed in require at (eval 479) line 3.\n, referer: http://1.1.1.1/cgi-bin/test1/admin/admin.cgi

What's more weird is, if I put

<Location /cgi-bin/test2>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>

Now /cgi-bin/test2 stop working while test1 works fine.

And if I put <lication>...</Location> for both test1 and test2, both doesn't work!

<Location /cgi-bin/test1>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>

<Location /cgi-bin/test2>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>

Question:
1. is this a problem of mod_perl or linksql or my configuration of mod_perl?

2. in case I do have 2 linksql installed in my production server, seems the solution is to install a 3rd linksql simply for the mod_perl's sake, to load up linksql scripts while no one actually use it... but this will violate the license, right.

3. I know mod-perl will enable perl cgi to share expensive resource such as database connection. In case I create above 2 <Location..>, will the 2 linksql share the same database connection or just create 2 permanent connection seperately?
Quote Reply
Re: [cefs99] can multi linksql installation share mod_perl 2 ? In reply to
I am wondering if it's actually due to the fact that I'd installed both mod_perl1 and mod_perl2 in my box.

/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/ModPerl/Registry.pm

/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache/Registry.pm

/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/ModPerl/Registry.pm

Is there a way to uninstall mod_perl?