How to allow zip shell on a shared plan?

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
807
158
168
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.
 
  • Like
Reactions: WebHostPro

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
807
158
168
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
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!