PHP - ZipArchive is enabled but not found
15,334
Found the fix by reading this mediatemple kb article. I already had zip.so in /usr/lib64/php/modules/
Thing missing was extension=zip.so
entry in php.ini
After adding that entry and restarting Apache, ZipArchive is now recognized.
Author by
dev.e.loper
Updated on June 14, 2022Comments
-
dev.e.loper almost 2 years
When I look at
phpinfo
I see that Zip is enabled:extension_loaded('zip') // <- returns true. function_exists('zip_open') // <- returns true. class_exists('ZipArchive', false) // <-returns false.
When I try to create a ZipArchive object, I get error:
Fatal error: Class 'ZipArchive' not found
PHP Version 5.4.11