> Hello,
>
> I've problem with preloading JSON module on apache virtual hosts. I've
> asked about that on #perl-help and #modperl IRC channels and i was advised
> to ask my question here. I've described my setup with config files:
> http://sanchez.wasilkow.pl/json-problem.html - what causes that situation?
> And, if possible, how can I make it work without changing code?
I find that I hav to do a little extra with the Image::Magick module
by using the LoadFile directive to reference its .so file directly
(before and outside of any VirtualHost stanzas), and then the
PerlModule directive will work as usual within the VirtualHost
stanzas where it's needed.
Here's what I'm using in my httpd.conf file on 64-bit NetBSD (with
pkgsrc) now in both test and production environments (and it happens
to come before any PerlModule directives, although I don't recall if
this ordering is required):
LoadFile
"/usr/pkg/lib/perl5/vendor_perl/5.10.0/x86_64-netbsd-thread-multi/auto/Image/Magick/Magick.so"
Perhaps the JSON module works in the same manner? (I don't use JSON
for anything, so I have no idea which .so file you'll need to load,
but hopefully this will give you some ideas that will help you get
things working.)
Randolf Richardson - [email protected]
Inter-Corporate Computer & Network Services, Inc.
Beautiful British Columbia, Canada
http://www.inter-corporate.com/