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

Ok, now, THAT seems strange... I can run the login.cgi script locally (terminal) and I get the HTML page - no problem. BUT, when I try to load in on Firefox, then I get again the same message with the Error module. I checked and Error is installed. I also tried to install it through CPAN and it said:
cpan[3]> install Error + + + Error is up to date (0.17028).
So, I am thinking that something is wrong with my Apache conf file, but what could it be I wonder?

Replies are listed 'Best First'.
Re^7: Custom module is present but not read by Apache (?)
by Anonymous Monk on Dec 10, 2019 at 13:36 UTC
    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?
      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.

        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.