Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Is the @INC directory for custom Perl modules safe from being overwritten?

Discussion in 'cPanel Developers' started by ottdev, Jul 15, 2018.

  1. ottdev

    ottdev Well-Known Member

    Joined:
    Oct 1, 2013
    Messages:
    119
    Likes Received:
    4
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    (post title should be "dir" not "dire" )
    @INC contains the following:
    /usr/local/lib64/perl5
    /usr/local/share/perl5
    /usr/lib64/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib64/perl5
    /usr/share/perl5

    Which is the safest place to put in-house authored custom modules such that:
    - generally recognized as being a folder which has been delegated on various systems to contain modules custom to that specific system
    - no risk of being overwritten/removed by any future cPanel updates
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,570
    Likes Received:
    45
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Hi,

    The @INC you posted comes from the Perl version provided by Red Hat/Centos/CloudLinux (typically /usr/bin/perl). Only operating system updates will mess with modules you place within those @INC locations. Generally, things in the /usr/local directory are safe from overwrites from updates.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice