Answer the question
In order to leave comments, you need to log in
How to install php-zip module for desired php version?
There is VPS linux on CentOS 6.3. It has php 5 and php 7 installed. I need to install yum install zip to php 7 version but it defaults to php 5 and I get this error Package zip-3.0-1.el6_7.1.x86_64 already installed and latest version . How can I install this module specifically for php 7?
Answer the question
In order to leave comments, you need to log in
first add EPEL repositories
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release...
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
then you can take extensions
yum install php-zip
If you don't know which package to take, or are not sure about the plugin, you can see what's in turnips:
sudo apt-cache search php | grep zip
libphp-pclzip - zip archive manager class for PHP
php-zip - Zip module for PHP [default]
php7.0-bz2 - bzip2 module for PHP
php5.6-bz2 - bzip2 module for PHP
php-bz2 - bzip2 module for PHP [default]
php5.6-zip - Zip module for PHP
php7.0-zip - Zip module for PHP
php5.5-bz2 - bzip2 module for PHP
php5.5-zip - Zip module for PHP
php7.1-bz2 - bzip2 module for PHP
php7.1-zip - Zip module for PHP
or something like that.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question