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!

Why can't i update cpanel?

Discussion in 'General Discussion' started by KatieBuller, Jun 28, 2005.

  1. KatieBuller

    KatieBuller BANNED

    Joined:
    May 10, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    156
    Why can't i update cpanel?

    # /scripts/upcp
    Can't locate Cpanel/cPanelFunctions.pm in @INC (@INC contains: /usr/lib/perl5/5.8.1/i686-linux /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/i686-linux /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl . /usr/local/cpanel) at /scripts/fixbinpath line 12.
    BEGIN failed--compilation aborted at /scripts/fixbinpath line 12.
    Found hostname to be dns1, which resolves to
    Hostname Virtual Host is already setup
    chmod: failed to get attributes of `/usr/local/frontpage/version5.0/apache-fp/_vti_bin': No such file or directory
    chown: failed to get attributes of `/usr/local/frontpage/version5.0/exes': No such file or directory
     
  2. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    I got a similar message, but mine went on to update:
     
  3. KatieBuller

    KatieBuller BANNED

    Joined:
    May 10, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    156
    Ok, good its not just me.

    Does anyone know how to fix this?
     
  4. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    166
    What versions are you trying to update from/to?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Ok, let's look at this step by step. The error indicates that a script at /scripts/fixbinpath is pushing INC as a directory. Quick check reveals:
    Code:
    push(@INC, "/usr/local/cpanel");
    A few lines later I see
    Code:
    use Cpanel::cPanelFunctions;
    So, it's telling us it can't find Cpanel/cPanelFunctions.pm in the /usr/local/cpanel directory. I found cPanelFunctions.pm in the /scripts directory. So what if I copy /scripts/cPanelFunctions.pm to the /usr/local/cpanel/Cpanel directory?

    cp /scripts/cPanelFunctions.pm /usr/local/cpanel/Cpanel/cPanelFunctions.pm

    now I have no idea what it's permissions are supposed to be, but I'll keep it as root/root for group/owner and match the rest of the files in the directory for permissions, which are all read and only user write. Note that I need to take off execute permission because the /scripts version had that set.

    chmod ugo+r cPanelFunctions.pm; chmod u-x cPanelFunctions.pm

    so, now there it is, seemingly in it's proper place and set just like the rest of the .pm files in the directory. Now, I try to upgrade -- and -- viola, I get no errors.

    Now, I just hope I have no issues from upgrading to the latest edge.... ;)
     
  6. aljosa

    aljosa Registered

    Joined:
    Oct 14, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    reboot the machine and execute /scripts/upcp again
     
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