> On 25 October 2012 16:26, Randolf Richardson <rand...@modperl.pl> wrote:
> >> 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.
> 
> Ive never heard of that before. Can you explain a bit more?

        If I don't use the LoadFile directive, then I get intermittent core 
dumps from the Image::Magick module.  Pre-loading Image Magick's .so 
file with Apache HTTPd has resolved this problem for me resulting in 
the enjoyment of uninterrupted uptime of more than 1,000 days on one 
server.  No apache-httpd core dumps is always a nice thing.

        Here's the documentation on the LoadFile directive:

                http://httpd.apache.org/docs/2.2/mod/mod_so.html#loadfile

        If you read from the top fo the document it explains more technical 
information about loading the .so file with Apache HTTPd.

        I hope that helps.  I'm not really sure how to answer your question 
beyond this experience I've had.

Randolf Richardson - rand...@inter-corporate.com
Inter-Corporate Computer & Network Services, Inc.
Beautiful British Columbia, Canada
http://www.inter-corporate.com/


Reply via email to