perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randolf Richardson" <>
Subject Re: Module preloading on virtual hosts
Date Fri, 26 Oct 2012 15:28:26 GMT
> On 25 October 2012 16:26, Randolf Richardson <> 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:
> >> - 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:

	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 -
Inter-Corporate Computer & Network Services, Inc.
Beautiful British Columbia, Canada

View raw message