Cara menggunakan php 8 zip extension

Are you looking to enable PHP zip extension in cPanel? We can help you.

PHP websites using zip files needs zip extensions for data processing.

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.

2. Then we type zip in the search bar, and Archive_Zip will be available. Here, we click on the install icon.

3. After installing Archive_Zip, we go to the previous step and click the Select PHP Version icon.

4. Now, the Archive_Zip is visible here. Click the checkbox of the zip extension. And hit the save button to add the Archive_Zip to the current PHP version. This would install the PHP Zip extension.

How to enable PHP zip extension in WHM?

Zip extension is a very basic requirement for websites nowadays. So we enable it in all the servers we manage. Let’s see how we enable it via WHM.

Initially, we login to WHM and navigate as follows,

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

This enables the zip extension for all the PHP websites in the server.

Common errors while enabling PHP Zip extension

Now, let’s see a few common errors our customers reported to us while enabling the PHP zip extension.

1. Missing library

Recently, one of our customers approached us with the below error message

PHP ZipArchive Library is missing or disabled

Our Support Engineers checked the current PHP version using the command,

php -v

He used CentOS 6 with Apache and PHP 7.0. The PHP 7 provides a php7.0-zip package. We installed it using the command,

yum install php7.0-zip

We used the below command to check the libraries,

yum list installed | grep -i php

Lastly, we ran the below command to restart Apache,

service httpd restart

Finally, this fixed the error.

2. Installation command error

The PHP zip extensions can be enabled through commands as well. So, few customers try to install it via commands itself. But mistakes in the command lead to errors.

Here is an example where the customer experienced an error due to incorrect command.

The customer received the error Class ZipExtension not found. He was using CentOS 7 and PHP 7.0.27.

Our Support Engineers checked the command he used. The command was,

yum install php70-php-pecl-zip

The actual package was php-pecl-zip.x86_64. So we installed it using the command,

yum install php70-php-pecl-zip.x86_64

And then, we enabled it by running the command,

echo "extension=zip.so" >> /etc/php.d/zip.ini

This fixed the error and the PHP extension was enabled.

[Need assistance in enabling the PHP extension? – We’ll help you.]

Conclusion

In short, PHP websites using zip files require zip extensions for data processing. Today, we saw how our Support Engineers enabled PHP zip extension in cPanel.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

Permasalahan Required PHP extension not found : zip ini muncul ketika saya sedang buat tutorial Cara Install OpenCart, jadi ini menjadi penyebab gagal install CMS Opencart melalui cPanel dengan Auto Installer Softaculous.

{getToc} $title={Table of Contents}


Kenapa Error Required PHP extension not found : zip muncul

Sebenarnya saya lupa bahwa kemarin itu pas aku menginstal WordPress saya melakukan upgrade PHP ke PHP versi 8 di cpanel, sehingga di sini saya langsung berkesimpulan ini ekstensinya belum saya atur... wkwkwk

nah sehingga untuk mengatasi permasalahan ini sangat mudah temen-temen dan ini sengaja saya buat di postingan baru cara mengatasi error instalasi CMS di auto Installer cpanel khususnya softaculous.

Proses Pencarian Solusi Mengatasi PHP Extention not Found

Kita bisa jadikan PHP extension not found : zip, sebagai peta untuk mengatasi permasalahan ini..

disini seperti halnya seorang teknisi... hehe, kita ambil kuncinya PHP extension

berarti Jelas, letak permasalahannya berada di php extension dan disini ada titik terang lagi di mana Ini zip not found nah ini dia ini adalah titik terang dari permasalahan ini yang sebenarnya sudah ditunjukkan.

Jadi Cara Mengatasinya, saya langsung berpikiran PHP VERSION kemarin saya rubah ya..  pada tutorial ini

Hehe, saya upgrade ke versi 8, kemarin saya sempet ngliat pengaturan ekstensi soalnya.. jadi langsung nyambung...

Cara langkah demi langkah mengatasi "Required PHP extension not found : zip"

1. Login cPanel

Silahkan anda Login dulu ke cPanel Hosting anda, setelah itu langsung menuju bagian Software -> Pilih Select PHP Version [Hal ini mungkin bisa saja berbeda tiap penyedia layanan hosting, tetapi saya rasa tidak bed beda jauh deh]

Select PHP Version cPanel

2. PHP Version

Setelah itu, anda akan dihadapkan pada halaman pengaturan PHP Version..

Itu dia buktinya.. hehe, saya udah upgrade ke PHP 8.0 yang terbaru.. dari yang sebelumnya PHP 7.2 Native hihi..

Itu gak usah di otak atik lagi, kita langsung menuju ke tab Extentions, disitulah kita bisa memasang/menginstall ekstensi PHP tambahan atau yang dibutuhkan suatu sistem, karena ini ketika kita ganti versi PHP, yang terinstal adalah default saja, tetapi untuk ekstensi lain udah disediakan pihak hosting... tenang aja...

3. Centang Extensi PHP yang dibutuhkan

Jadi tugas kita, tinggal centang saja ekstensi PHP yang kita butuhkan, maka nanti ekstensi tersebut akan terinstal dengan mudah.. :]..

itu yang saya lingkari adalah ekstensi ZIP pada PHP Extention yang kita butuhkan. Tinggal kita centang aja Extentions Zip tersebut... tunggu proses instalasi dari sistem hosting cPanel anda, sampai muncul pesan zip Sukses terinstal.

Bisa dilihat pada gambar yang menunjukkan bahwa permasalahan kita udah kelar nih... udah teratasi..

Selanjutnya tinggal lakukan installasi software/CMS seperti biasanya..

dan sudah saya praktekkan langsung berhasil tanpa ada kendala error Required PHP extension not found : zip lagi..

*BTW, dengan kita instal extention tersebut,ini juga menambah jumlah itungan inode pada hosting sobat, jika sobat memiliki paket hosting yang hemat seperti saya ini, memang sih dikit dikit perlu itungan juga... hehe, saya aja sampai gambar hosting diluar.. biar gak memakan space hosting yang maksimal 5gb untuk paket yang saya beli..  bagi yang belum tau apa itu inode, bisa baca pembahasan ini

ini artikel tempat saya menemukan permasalahan ini.. tutorial cara install Opencart otomatis di cPanel

Quote Pembahasan Required PHP extension not found : zip

"Bagi Penulis Blog..... terkadang permasalahan itu adalah berkah, hehe... karena dari situ, kita bisa buat konten..." - Rahmancyber NET

Sekian, moga manfaat..

F.N.A-RED

Bài mới nhất

Chủ Đề