How To Enable PHP ZIP Extension in cPanel?

Would you like to know Hosting enable PHP ZIP extension in cPanel? We can help you.

PHP websites that use ZIP files require ZIP extensions for data processing.

At Bobcares, we receive requests to enable PHP ZIP extensions as part of our server management services.

Today let’s see how our support engineers enable the PHP ZIP extension in cPanel.

Why do we need the Hosting Enable zip PHP extension?

Website owners are always looking for ways to optimize their website files. Compression is a way to reduce file size.

A zip file format supports lossless data compression, making it suitable for sending and storing data.

When websites use a ZIP file format, they need a ZIP extension to handle them. That said, the zip extension allows users to read and write to zip files.

Now let’s see how our support engineers enable PHP-ZIP extensions in cPanel.

hosting enable php zip

How do I activate the zip PHP extension in cPanel?

1. First we log into cPanel and click on the PHP PEAR packages available in the SOFTWARE section. The symbol appears as in the picture. Activate PHP cPanel zip extension

2. Then we write zip in the search bar and Archive-Zip will be available. Here we click on the installation symbol.

3. After installing Archive-Zip, let’s go to the previous step and click the Select PHP version icon.

4. Archive_Zip is now visible here. Click the checkbox for the Zip extension. And click Save button to add Archive_Zip to current PHP version. This would install the PHP zip extension.

How do I activate the PHP-ZIP extension in WHM?

The zip extension is a very basic requirement for websites these days. So let’s turn it on on all the servers we manage. Let’s see how we activate it via WHM.

First, we log into WHM and navigate as follows:

Software >> EasyApache 4 >> Customize >> PHP Extensions. Here we look for zip and enable phpx.x-php-zip for all versions. Finally, we click on Review and Deployment.

This will enable the zip extension for all PHP websites on the server.

Common Mistakes When Enabling PHP Zip Extension

Now let’s take a look at some of the common errors our customers reported to us when enabling the PHP ZIP extension.

1. Missing Library

Recently, one of our customers contacted us with the following error message

PHP ZipArchive library is missing or disabled
Our support technicians checked the current version of PHP with the command, PHP -v

I was using CentOS 6 with Apache and PHP 7.0. PHP 7 offers a php7.0-zip package. We install it with the command,

yum install php7.0-zip
We use the following command to check the libraries,

yum list installed | grep -i PHP
Finally, we execute the following command to restart Apache.

Restarting the httpd service
With that, the error is finally fixed.

2. Install Command Error

PHP zip extensions can also be activated by command. As a result, few clients try to install it themselves using commands. But errors in the command lead to errors.

Here is an example where the client encountered an error due to an incorrect command.

The client received the error Class Zip Extension not found. I was using CentOS 7 and PHP 7.0.27.

Our support engineers have verified the command you were using. The order was

yum install php70-PHP-pecl-zip
The actual package was php-pecl-zip.x86_64. So we install it with the command,

yum install php70-PHP-pecl-zip.x86_64
And then we activate it by executing the command,

echo “extension =” >> /etc/php.d/zip.ini
This fixed the bug and enabled the PHP extension.


In short, PHP websites that use ZIP files need ZIP extensions for data processing. Today we saw our support engineers activate the PHP ZIP extension in cPanel.

Also Read: How To Create Custom Post Type In WordPress Without Plugin

Related Searches

[hosting enable php zip]

[class ‘ziparchive’ not found]

[ziparchive php]


[enable php error]

[hosting enable php zip]

[ziparchive library is not enabled]

[how to enable php extensions in cpanel]

[php zip]

[the php ziparchive extension is required to import .zip files.]

[php ziparchive]

[web hosting]

[free hosting]


[godaddy hosting]

[a2 hosting]

[what is web hosting]

[what is hosting]

[who is hosting]

[website hosting servers have their own unique ip address, what does this address consist of?]

[what is hosting and domain]

[hostgator india]



[web hosting]

[hostgator login]

[hosting website]

[web hosting india]

[website hosting]

[hosting in india]

[buy hosting]

[host gator]



[best hosting in india]

[hosting provider]


[best web hosting india]

[hosting india]

[hosting sites]

[best web hosting]

[hosting server]

[web hosting services]

[hostgator domain]


[web hosting company india]

[hostgator hosting]

[best hosting]

[hosting buy]

[web hosting in india]


[best web hosting india]

[indian hosting company]



[web hosting services in india]

[buy web hosting]

[hosting services india]

[indian hosting]

[hosting services]

[domain and hosting]

[website hosting india]

[hosting server in india]

[indian web hosting]

[hosting purchase]

[hostgator hosting plans]

[how to enable curl in cpanel]