in reply to Re^6: Custom module is present but not read by Apache (?)
in thread Custom module is present but not read by Apache (?)

Ah, I checked: OLD machine: /usr/lib/perl5/vendor_perl/5.12.3/Error.pm NEW machine: /root/perl5/lib/perl5/Error.pm Is this a problem?

Replies are listed 'Best First'.
Re^8: Custom module is present but not read by Apache (?)
by Anonymous Monk on Dec 10, 2019 at 13:39 UTC
    Ok, it is, because this path is not in the new server's INC. Can I install the Error.pm module in anothe path? When I do it through CPAN, I think it puts it under /root/perl5, which is not part of @INC

      You probably don't want the contents of /root to be visible to Apache. I would suggest installing Error.pm somewhere sensible instead of making /root world-readable.

        Yes yes, I fully agree, I am just asking how can I "force" the installation of the Error.pm under one of the common directories, e.g.  /usr/local/lib64/perl5

      Consider using the system package manager to install the module, or local::lib.

      Avoid "installing" modules as root, as that rarely does what you want.