Search code examples
phpcentosinstallationphp-ziparchive

How-to activate the ZipArchive class in PHP 5.3 on CentOS


I read on the documentation I should only compile PHP 5.3.3 with "--enable-zip" parameter, but this doesn't work. I did this but class_exists('ZipArchive') always return false. What should I do next?


Solution

  • Have you tried installing ZipArchive using pecl?

    $ pecl install zip
    

    then add extension=zip.so to your php.ini