• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

How to install ZipArchive on php7

WSNHosting

Regular Pleskian
hello

i use /opt/plesk/php/7.0/bin

[root@local]# ./pecl install zip
downloading zip-1.13.2.tgz ...
Starting to download zip-1.13.2.tgz (315,010 bytes)
.................................................................done: 315,010 bytes
119 source files, building
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
building in /tmp/pear-build-rootHtDeSw/zip-1.13.2
running: /tmp/zip/configure --with-php-config=/usr/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... no
checking for gcc... no
configure: error: in `/tmp/pear-build-rootHtDeSw/zip-1.13.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
ERROR: `/tmp/zip/configure --with-php-config=/usr/bin/php-config' failed

how to fix ??

thankyou
 
Hi WSNHosting,
It would be...

# /opt/plesk/php/7.0/bin/pecl install zip

But, the Plesk PHP 7 package already has zip.
See...

Code:
root@host:~# ls -l /opt/plesk/php/7.0/etc/php.d
total 160
-rw-r--r-- 1 root root 4802 Feb 11 06:04 10-opcache.ini
-rw-r--r-- 1 root root   55 Feb 11 06:04 20-mysqlnd.ini
-rw-r--r-- 1 root root   53 Feb 11 06:04 bcmath.ini
-rw-r--r-- 1 root root   49 Feb 11 06:04 curl.ini
-rw-r--r-- 1 root root   47 Feb 11 06:04 dba.ini
-rw-r--r-- 1 root root   47 Feb 11 06:04 dom.ini
-rw-r--r-- 1 root root   55 Feb 11 06:04 enchant.ini
-rw-r--r-- 1 root root   57 Feb 11 06:04 fileinfo.ini
-rw-r--r-- 1 root root   45 Feb 11 06:04 gd.ini
-rw-r--r-- 1 root root   55 Apr  6 07:06 imagick.ini
-rw-r--r-- 1 root root   49 Feb 11 06:04 imap.ini
-rw-r--r-- 1 root root   49 Feb 11 06:04 intl.ini
-rw-r--r-- 1 root root   49 Feb 11 06:04 json.ini
-rw-r--r-- 1 root root   49 Feb 11 06:04 ldap.ini
-rw-r--r-- 1 root root   57 Feb 11 06:04 mbstring.ini
-rw-r--r-- 1 root root   53 Feb 11 06:04 mcrypt.ini
-rw-r--r-- 1 root root   53 Feb 11 06:04 mysqli.ini
-rw-r--r-- 1 root root   49 Feb 11 06:04 odbc.ini
-rw-r--r-- 1 root root   47 Feb 11 06:04 pdo.ini
-rw-r--r-- 1 root root   59 Feb 11 06:04 pdo_mysql.ini
-rw-r--r-- 1 root root   57 Feb 11 06:04 pdo_odbc.ini
-rw-r--r-- 1 root root   59 Feb 11 06:04 pdo_pgsql.ini
-rw-r--r-- 1 root root   61 Feb 11 06:04 pdo_sqlite.ini
-rw-r--r-- 1 root root   51 Feb 11 06:04 pgsql.ini
-rw-r--r-- 1 root root   49 Feb 11 06:04 phar.ini
-rw-r--r-- 1 root root   51 Feb 11 06:04 posix.ini
-rw-r--r-- 1 root root   53 Feb 11 06:04 pspell.ini
-rw-r--r-- 1 root root   51 Feb 11 06:04 snmp.ini
-rw-r--r-- 1 root root   49 Feb 11 06:04 soap.ini
-rw-r--r-- 1 root root   55 Feb 11 06:04 sqlite3.ini
-rw-r--r-- 1 root root   55 Feb 11 06:04 sysvmsg.ini
-rw-r--r-- 1 root root   55 Feb 11 06:04 sysvsem.ini
-rw-r--r-- 1 root root   55 Feb 11 06:04 sysvshm.ini
-rw-r--r-- 1 root root   49 Feb 11 06:04 tidy.ini
-rw-r--r-- 1 root root   59 Feb 11 06:04 xmlreader.ini
-rw-r--r-- 1 root root   53 Feb 11 06:04 xmlrpc.ini
-rw-r--r-- 1 root root   59 Feb 11 06:04 xmlwriter.ini
-rw-r--r-- 1 root root   47 Feb 11 06:04 xsl.ini
-rw-r--r-- 1 root root   47 Feb 11 06:04 zip.ini

Or am I missing something?

Regards

Lloyd
 
Back
Top