Class 'ZipArchive' not found. how to configure zip on php apache

15,088

The actual package name on centos 7 is php-pecl-zip.x86_64.

Try installing that and enabling it by running:

echo "extension=zip.so" >> /etc/php.d/zip.ini
Share:
15,088
Muhammad
Author by

Muhammad

Updated on September 18, 2022

Comments

  • Muhammad
    Muhammad over 1 year

    Following is the error message that i am receiving enter image description here I searched through internet and did installed zip using

    sudo yum install php70-php-pecl-zip
    

    when i do yum list installed, it shows me that "zip.x86_64" is there but when i do phpinfo() it doesn't shows me zip extension installed.

    It looks like it is not loading the zip.ini in /etc/php.d/ directory

    any help will be appreciate thanks. i am running centos 7 and php 7.0.27

  • Jay Momaya
    Jay Momaya over 5 years
    What is installation command..?
  • Gothrek
    Gothrek about 5 years
    It's in the OPs post, read it carefully.