How to install php zip extension

At Bobcares, we receive requests to enable PHP zip extensions as a part of our Server Management Services.

Today, let’s see how our Support Engineers enable PHP zip extension in cPanel.

Why do we need the PHP zip extension?

Website owners always look for ways to optimize website files. Zipping is one way to reduce file size.

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

If websites use a zip file format, it needs a zip extension to process it. That is, zip extension allows the users to read and write into the zip files.

Now, let’s see how our Support Engineers enable PHP zip extensions in cPanel.

How to enable the PHP zip extension in cPanel?

1. Firstly, we log into cPanel and click on the PHP PEAR Packages available under the SOFTWARE section. The icon appears as in the image.

Login to cPanel and go to PHP PEAR Package. Type Zip in the search bar.

Step 2: Install PHP Zip Extension

Now, you will find Archive_Zip. Click on install to continue.

Step 3: Change the PHP Version and Enable PHP Zip Extension

Change to PHP version to anything that is not native and click on “Set as Current”

Read Also, How to Manage Email Disk Usage in CPanel

Conclusion

In this tutorial, you have learned to enable PHP zip extension in Cpanel. Hurray, you have successfully enabled PHP zip extension. If you have any doubt, feel free to comment below. Also, you can join our elite Facebook group to get direct help from me. If you like this article, please share this article on your social media handle.

Facebook

Twitter

WhatsApp

Linkedin

Telegram

Previous articleHow to Import and Export MySQL Databases Quickly

Next articleHow to Install MariaDB on Ubuntu 20.04 Quickly

Rajesh Shivam

Hello, everyone, I am Rajesh Shivam, I am a full-time freelancer with more than seven years plus experience in different freelancing platforms, in this blog, I am going to provide complete freelancing tips and tricks.

How to install PHP zip extension on Windows?

Installing PHP.
Step 1: Download the PHP files. Get the latest PHP x64 Thread Safe ZIP package from https://windows.php.net/download/..
Step 2: Extract the files. ... .
Step 3: Configure php. ... .
Step 4: Add C:\php to the PATH environment variable. ... .
Step 5: Configure PHP as an Apache module. ... .
Step 6: Test a PHP file..

How to install PHP zip on my server?

Step 1: Log in to your cPanel. Login to cPanel and go to PHP PEAR Package. Type Zip in the search bar..
Step 2: Install PHP Zip Extension. Now, you will find Archive_Zip. ... .
Step 3: Change the PHP Version and Enable PHP Zip Extension. Change to PHP version to anything that is not native and click on “Set as Current”.

How to enable PHP ZipArchive extension?

How to enable ZipArchive for PHP.
PHP Fatal error: Uncaught Error: Class 'ZipArchive' not found..
php -m | grep -i zip..
apt-get install -y libzip-dev zip && docker-php-ext-install zip..
sudo apt-get install -y php-zip..
service apache2 restart..
service nginx restart..

How do I add a zip extension?

Before proceeding with the steps, download the extension ZIP file, extract it and keep it ready on your computer..
Open your Chrome browser and go to the Extensions page..
Make sure the Developer Mode is enabled..
Click the Load unpacked button..
Select and upload the extracted folder..