• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

How to install ZipArchive on php7

WSNHosting

Basic 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