Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Background

The use of Perl Modules is recommended at all times in order to help keep code maintainable. However, Unless the modules are installed in standard system locations you will need to overload the PERL5LIB system environment with the relevant paths for your scripts to pick up these modules.

Apache, on the other hand, does not read the system environments, and therefore your scripts which depend upon these modules will no longer work.

Solution

Edit the Apache config file:

Code Block
$ sudo vi /etc/httpd/conf/httpd.conf

And insert the following lines:

Code Block
LoadModule env_module /path/to/apache/mod_env.so
SetEnv PERL5LIB /path/to/lib/:/path/to/another/lib

Restart apache and thats it!