in reply to Re: can't locate CGI.pm ...
in thread can't locate CGI.pm ...

I've seen those symptoms when (in the name of security) the hoster moves the apache into chroot, then installs just what he thinks he needs into that chroot.

I even had to deal with that once, running the script, seeing what broke, copying the missing file from the normal install into the chroot, running the script (lather, rinse, repeat).

The hoster insisted this was the only way to have his apache instalation as secure as possible. Of course, three weeks later, his boss wanted a web-based forum - and that beast needed a whole bunch of modules, so the guy cd'ed into the chroot and installed the complete perl there. Seems perl wasn't so dangereous when he had to work with it.

Replies are listed 'Best First'.
Re: Re: Re: can't locate CGI.pm ...
by blue_cowdawg (Monsignor) on Apr 08, 2004 at 19:18 UTC

        I've seen those symptoms when (in the name of security) the hoster moves the apache into chroot, then installs just what he thinks he needs into that chroot.

    Thanks for reminding me. I ran into that once too. Most service providers don't do that anymore but use virtual hosts instead.

      Dear Monks, sorry for bothering you with such trivial question, but I am a total beginner in perl !

      About my perl installation, I did not install it, I just installed linux redhat9.0 on the machine, and did not touch anything after that ...
      What would you advised me to do ?
      -To re-install it ? (is there a tutorial somewhere about where to find it ???)
      -You think the problem can come from the server itself ?
        You need to install the perl-CGI package. Redhat unwisely split some of the core modules into separate packages. These aren't installed by default so you can't locate it.

        You may want to install the other core module packages: perl-DB_File, perl-CPAN, perl-libwww-perl, and perl-NDBM_File.

            Dear Monks, sorry for bothering you with such trivial question, but I am a total beginner in perl ! About my perl installation, I did not install it, I just installed linux redhat9.0 on the machine, and did not touch anything after that ... What would you advised me to do ?

        First off I for one am not bothered by your questions so no need to apologize.

        Something is inconsistant here however. If all you did was install Linux from a disto and not touch the Perl install then you should not be seeing the symptoms you describe.

        As far as installing Perl goes, download the source, cd into the unpacked directory and then run ./Configure and for the most part accept the defaults. I would make it install in /usr/bin and friends and go from there.