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!

How to allow zip shell on a shared plan?

Discussion in 'General Discussion' started by WebHostPro, Jun 14, 2018.

  1. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,651
    Likes Received:
    15
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    We have a shared hosting customer requesting the extension
    • zip shell command
    Is this something I can add from the WHM or via root on the server?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    718
    Likes Received:
    122
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Are you using Cloudlinux?

    If not, then just install it with yum and should be all set.

    Code:
    yum -y install zip unzip
    if using Cloudlinux you need to do a bit extra but I think they include zip by default.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    WebHostPro likes this.
  3. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,651
    Likes Received:
    15
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks! I am using CloudLinux but I'll try this.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    718
    Likes Received:
    122
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    I just checked, zip is included in the compression config:

    CloudLinux Documentation

    so what you want to do is make sure zip is included by default since it wasn't already installed on your server.

    Code:
    # grep -l /usr/bin/zip /etc/cagefs/conf.d/compression.cfg
    /etc/cagefs/conf.d/compression.cfg
    
    When you run the grep command you should see that output, if not add:

    Code:
    /usr/bin/zip
    to the end of the paths= line

    and then run

    Code:
    cagefsctl --force-update
    although you should do this anyway even if the .cfg contained zip since the actual binary didn't exist prior.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @WebHostPro,

    The information @Jcats provided is correct. However, generally the zip and unzip packages are already installed on the system by default. Thus, your customer should be able to use the zip and unzip commands via SSH without any required actions on your part. Let us know if the customer encounters any errors when attempting to use those commands.

    Thanks!
     
    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