• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

CPAN Troubles

J

jwthompson2

Guest
Wanted to ask a couple questions. Here's my config:

Fedora Core 2 with Plesk 7.5.x and everything up to date as best I can tell.

When logged in as root I check my installed CPAN modules and see 'list' and one other. This leads to my first question:

1.) Where does Plesk keep the perl modules that it uses since it isn't at the system level.

My next question flows from that:

2.) How can I add new modules so that Plesk will allow their use in CGI scripts?

And the next one is mod_perl related:

3.) What of the mod_perl related modules (Apache::Registry, etc.) are already installed for use by Plesk?

I may just be stupid for having to ask this but I'm searching and I'm stumped...
 
1.) Where does Plesk keep the perl modules that it uses since it isn't at the system level.

2.) How can I add new modules so that Plesk will allow their use in CGI scripts?

3.) What of the mod_perl related modules (Apache::Registry, etc.) are already installed for use by Plesk?
Plesk does not change anything about the system perl when it installs - all perl libraries that it uses are in /usr/local/psa/lib/perl5 but these are used by Plesk - the system doesn't know anything about them. The perl libraries your system uses should be on some path like /usr/lib/perl5/site_perl/5.6.1.

Over the years I've had enough problems using cpan to install perl modules that I no longer try - I just go to the CPAN site, manually download the perl modules I need, and install "by hand" (perl Makefile.PL;make;make install).
 
The problem I'm having is that when I look at what modules are installed the list is very short, 3 entries, and this seems like something is very wrong.

If modules were to be installed into Plesk's perllib would that make them accesible to scripts running under mod_perl or do they need to be installed at the system level. Plesk's setup is sufficiently confusing to me that I'm not quite sure where things need to go to keep stuff working.
 
The Plesk installation of Apache only handles Plesk - not any web sites. The only thing that the Plesk perl libraries support is Apache running on port 8443 - the Plesk control panel. The instance of Apache that serves site pages knows nothing about the Plesk perl libraries - only the system perl libraries.

As a general rule, you should stay away from making changes to the Plesk libraries as this is more likely to break Plesk than it is to accomplish anything useful - and it will certainly not fix anything that mod_perl is doing for any website you host.
 
Back
Top