title: How do I tell mod_perl2 to find my Perl modules?
body: <p>I just installed my system with Oracle 64-bit Linux5.4 running Apache Server version: Apache/2.2.3 and mod_perl 2.</p>
  
  <p>Now, I have my Perl libraries set in a specific path: /my/perl/libs and I have adjusted my httpd.conf to compensate for this (I added the below):</p>
  
  <blockquote>
    <p>SetEnv MY_LIBS /my/perl/libs</p>
  </blockquote>
  
  <p>and in my CGI programs I'm setting my environment to compensate:</p>
  
  <blockquote>
    <p>use lib($ENV{'MY_LIBS'});</p>
  </blockquote>
  
  <p>Sometimes my Perl modules will recognize the path of /my/perl/libs and call all the functions appropriately, and sometimes they won't, thus thowing a 500 error.</p>
  
  <p>When I restart apache (<code>/etc/init.d/httpd restart</code>), things work fine but then the 500 error comes up.</p>
  
  <p>Are there any ideas?  What should I be looking at?</p>