How to allow zip shell on a shared plan?
We have a shared hosting customer requesting the extension
- zip shell command
-
Are you using Cloudlinux? If not, then just install it with yum and should be all set. yum -y install zip unzip
if using Cloudlinux you need to do a bit extra but I think they include zip by default.0 -
Thanks! I am using CloudLinux but I'll try this. 0 -
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. # 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:/usr/bin/zip
to the end of the paths= line and then runcagefsctl --force-update
although you should do this anyway even if the .cfg contained zip since the actual binary didn't exist prior.0 -
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! 0
Please sign in to leave a comment.
Comments
4 comments