mod_perl and libs
Posted
by paulj3000
on Stack Overflow
See other posts from Stack Overflow
or by paulj3000
Published on 2010-04-14T23:53:03Z
Indexed on
2010/04/18
23:53 UTC
Read the original article
Hit count: 204
Hi,
I just installed my system with Oracle 64bit Linux5.4 running Apache Server version: Apache/2.2.3 and mod_perl 2.
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):
SetEnv MY_LIBS /my/perl/libs
and in my cgi I'm setting my environment to compensate: use lib($ENV{'MY_LIBS'});
Now the problem:
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.
Some observations: when I restart apache (/etc/init.d/httpd restart), things work fine but then the 500 error comes up.
Are there any ideas? What should I be looking at?
Thanks
© Stack Overflow or respective owner