PHP Fatal error: Class 'ZipArchive' not found

keat63

Well-Known Member
Nov 20, 2014
1,382
107
43
cPanel Access Level
Root Administrator
I performed an update early last week to 62.08. I don't recall the old version, maybe it was 58.x.

Anyhow.

Today, i've tried to update a cart suite and I'm seeing these errors
PHP Fatal error: Class 'ZipArchive' not found.

I'm not sure if this is due to the Cpanel update or maybe a fault with the cart.

Any ideas how to fix this.
 
Last edited:

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Hello,

Check to ensure the zip extension for PHP is installed on the version of PHP utilized by that account. EX:

Code:
yum install ea-php56-php-zip
Thank you.
 

keat63

Well-Known Member
Nov 20, 2014
1,382
107
43
cPanel Access Level
Root Administrator
I see no reference to php zip in php info

I'm still running 5.3.29, so I ran

yum install ea-php53-php-zip

then got this


Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.econdc.com
* extras: mirror.econdc.com
* updates: mirror.mhd.uk.as44574.net
No package ea-php53-php-zip available.
Error: Nothing to do

I found an option to include zip in EasyApache, so it's currently rebuilding.
Hopefully, this is the answer.
 
Last edited: