Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^3: Custom module is present but not read by Apache (?)

by Corion (Pope)
on Dec 10, 2019 at 12:48 UTC ( #11109914=note: print w/replies, xml ) Need Help??

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

Since a CGI script is merely a normal program that has some expectations on its input and output, you can simply run the program and look if (and what) errors get printed.

If the program works on the old machine, look at the contents of @INC on the old machine. Somewhere there is, while it is not available on the new machine.

Replies are listed 'Best First'.
Re^4: Custom module is present but not read by Apache (?)
by Anonymous Monk on Dec 10, 2019 at 13:01 UTC
    Thanks a lot for your time @Corion. The contents look kind of similar to me: OLD
    /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/5.12.3/ /usr/lib/perl5/vendor_perl/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/5.12.3
    /root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi /root/perl5/lib/perl5/5.16.3 /root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5

      But on the old machine, there is one of these files:

      /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi/ /usr/lib/perl5/5.12.3/ /usr/lib/perl5/vendor_perl/5.12.3/x86_64-linux-thread-multi/ /usr/lib/perl5/vendor_perl/5.12.3/ /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi/ /usr/lib/perl5/5.12.3/

      And on the new machine, no such file exists:

      /root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi/ /root/perl5/lib/perl5/5.16.3/ /root/perl5/lib/perl5/x86_64-linux-thread-multi/ /root/perl5/lib/perl5/ /usr/local/lib64/perl5/ /usr/local/share/perl5/ /usr/lib64/perl5/vendor_perl/ /usr/share/perl5/vendor_perl/ /usr/lib64/perl5/ /usr/share/perl5/

      Most likely, as I and tobyink already pointed out, is installed on the old machine, but is not on the new machine. Either talk to your system administrator, or the developer of the program about the prerequisites. Also consider maybe installing via the package manager on the new machine, or instructing your system administrator to do so.

      You can check on the old machine if Error is installed by using:

      perl -MError -e 'print " is installed"'
        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?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11109914]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2020-05-30 16:05 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (173 votes). Check out past polls.