Download IUS community repository installer script:curl 'https://setup.ius.io/' -o setup-ius.sh
Run it:bash setup-ius.sh
Uninstall old versions:pecl uninstall ssh2pecl uninstall raryum remove php mod_php php-cli php-xml php-common
Remove /etc/php.d directory.
Upgrade software:yum update
Install dependency libraries:yum install libssh2 memcached libevent libevent-devel
Install packages:yum install mod_php70u php70u-cli php70u-apcu php70u-mysqlnd php70u-devel php70u-bcmath php70u-gd php70u-mcrypt php70u-mbstring php70u-tidy php70u-soap php70u-domxml php70u-process php70u-json php70u-opcache
Install SSH2 extension:wget https://github.com/Sean-Der/pecl-networking-ssh2/archive/php7.zipunzip php7cd pecl-networking-ssh2-php7phpize./configuremakemake install
cd ~wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gztar xvf libmemcached-1.0.18.tar.gzcd libmemcached-1.0.18./configuremakemake install
Double check link here:https://launchpad.net/libmemcached/+download
Install memcache:wget https://github.com/php-memcached-dev/php-memcached/archive/php7.zipunzip mastercd php-memcached-masterphpize./configure --disable-memcached-saslmakemake installОригинал ссылки искать здесь:https://github.com/php-memcached-dev/php-memcachedвыбрать ветку PHP7.
<?php if(function_exists('apcu_clear_cache')) { apcu_clear_cache(); } ?>
create files:/etc/php.d/ssh2.ini/etc/php.d/memcached.iniCopy them to /etc/php-zts.d/.
Install rar repository:pecl install rar
https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-centos-7How To Upgrade to PHP 7 on CentOS 7
https://medium.com/php-7-tutorial/solution-how-to-compile-php7-with-ssh2-f23de4e9c319#.5mjoagicuSolution : How to install ssh2 php7 extension
Последняя модификация: 09.03.16 18:59