2

When I look at phpinfo I see that Zip is enabled: enter image description here

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

dev.e.loper
  • 35,446
  • 76
  • 161
  • 247

1 Answers1

3

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.

dev.e.loper
  • 35,446
  • 76
  • 161
  • 247