Fatal error: Class 'ZipArchive' not found in

后端 未结 20 1424
既然无缘
既然无缘 2020-11-27 03:39

I have a problem that I install \'Archive_Zip 0.1.1\' on Linux server, but when I try to run the script to create the zip file it gives the fatal error

<
20条回答
  •  心在旅途
    2020-11-27 03:45

    This worked

    apt-get install php7.0-zip
    

    and no need to restart php7.0-fpm manually.

    Unpacking php7.0-zip (7.0.16-4+deb.sury.org~trusty+1) ...
    Processing triggers for php7.0-fpm (7.0.11-1+deb.sury.org~trusty+1) ...
    php7.0-fpm stop/waiting
    php7.0-fpm start/running, process 1572
    php7.0-fpm stop/waiting
    php7.0-fpm start/running, process 1777
    Setting up php7.0-zip (7.0.16-4+deb.sury.org~trusty+1) ...
    locale: Cannot set LC_ALL to default locale: No such file or directory

    Creating config file /etc/php/7.0/mods-available/zip.ini with new version
    Processing triggers for php7.0-fpm (7.0.11-1+deb.sury.org~trusty+1) ...
    php7.0-fpm stop/waiting
    php7.0-fpm start/running, process 2354
    php7.0-fpm stop/waiting
    php7.0-fpm start/running, process 2397

提交回复
热议问题