ActiveBlog

mod_perl and PERL5LIB
by Kevin "kj" Woolley

Kevin "kj" Woolley, March 10, 2006

A favourite trick of many people is to tweak the PERL5LIB environment variable to tell Perl where to look for their modules. This often works great in testing, but runs into problems when things go into production under mod_perl. What...

A favourite trick of many people is to tweak the PERL5LIB environment variable to tell Perl where to look for their modules.  This often works great in testing, but runs into problems when things go into production under mod_perl.  What is one to do then?

Apache with mod_env installed allows use of the SetEnv and PassEnv lines in the configuration file.  PassEnv tells Apache to expose the value of an existing environment variable, and SetEnv allows you to set the value of a given variable explicitly.  I would recommend using SetEnv in this case, however.

Subscribe to ActiveState Blogs by Email

Share this post:

About the Author: RSS

kj is ActiveState’s Systems Administrator. He was born in London, Ontario, grew up in North Vancouver, and spent several years in the Northwest Territories doing technical sales. As a technical infrastructure specialist, he brings over twenty years of systems administration experience to ActiveState.