Vesta 2.0 is coming soon! See our progress update: https://vestacp.com/docs/vesta-2-update
Не удается подвязать memcache к PHP7 в Centos7
Не удается подвязать memcache к PHP7 в Centos7
Доброго всем дня.
Не удается подвязать memcache к PHP7 в Centos7
Может у кого есть инструкция на такой случай?
Сам мемкэш встал нормально, виден из консоли, но PHP его не видит
Не удается подвязать memcache к PHP7 в Centos7
Может у кого есть инструкция на такой случай?
Сам мемкэш встал нормально, виден из консоли, но PHP его не видит
Re: Не удается подвязать memcache к PHP7 в Centos7
yum install php-memcache
Re: Не удается подвязать memcache к PHP7 в Centos7
yum install php-memcacheShow
[root@centos ~]# yum install php-memcache
Loaded plugins: fastestmirror
base | 3.6 kB 00:00:00
epel/x86_64/metalink | 11 kB 00:00:00
epel | 4.3 kB 00:00:00
extras | 3.4 kB 00:00:00
nginx | 2.9 kB 00:00:00
remi-safe | 2.9 kB 00:00:00
updates | 3.4 kB 00:00:00
vesta | 2.9 kB 00:00:00
(1/9): epel/x86_64/group_gz | 170 kB 00:00:00
(2/9): epel/x86_64/updateinfo | 585 kB 00:00:00
(3/9): base/7/x86_64/group_gz | 155 kB 00:00:00
(4/9): epel/x86_64/primary_db | 4.2 MB 00:00:00
(5/9): base/7/x86_64/primary_db | 5.3 MB 00:00:01
(6/9): extras/7/x86_64/primary_db | 149 kB 00:00:00
(7/9): nginx/x86_64/primary_db | 14 kB 00:00:00
(8/9): remi-safe/primary_db | 475 kB 00:00:01
(9/9): updates/7/x86_64/primary_db | 5.7 MB 00:00:00
Determining fastest mirrors
* base: mirror.atlanticmetro.net
* epel: mirror.datto.com
* extras: mirrors.centos.webair.com
* remi-safe: remi.check-update.co.uk
* updates: mirror.netdepot.com
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-memcache.x86_64 0:3.0.8-4.el7 will be installed
--> Processing Dependency: /usr/bin/pecl for package: php-pecl-memcache-3.0.8-4.el7.x86_64
--> Processing Dependency: /usr/bin/pecl for package: php-pecl-memcache-3.0.8-4.el7.x86_64
--> Running transaction check
---> Package php-pear.noarch 1:1.9.4-21.el7 will be installed
--> Processing Dependency: php-posix for package: 1:php-pear-1.9.4-21.el7.noarch
--> Running transaction check
---> Package php-process.x86_64 0:5.4.16-36.1.el7_2.1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-36.1.el7_2.1 for package: php-process-5.4.16-36.1.el7_2.1.x86_64
--> Finished Dependency Resolution
Error: Package: php-process-5.4.16-36.1.el7_2.1.x86_64 (updates)
Requires: php-common(x86-64) = 5.4.16-36.1.el7_2.1
Installed: php-common-5.4.45-10.el7.remi.x86_64 (@remi)
php-common(x86-64) = 5.4.45-10.el7.remi
Available: php-common-5.4.16-36.el7_1.x86_64 (base)
php-common(x86-64) = 5.4.16-36.el7_1
Available: php-common-5.4.16-36.1.el7_2.1.x86_64 (updates)
php-common(x86-64) = 5.4.16-36.1.el7_2.1
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@centos ~]# php -v
PHP 7.0.8 (cli) (built: Jun 22 2016 10:57:20) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.8, Copyright (c) 1999-2016, by Zend Technologies
Loaded plugins: fastestmirror
base | 3.6 kB 00:00:00
epel/x86_64/metalink | 11 kB 00:00:00
epel | 4.3 kB 00:00:00
extras | 3.4 kB 00:00:00
nginx | 2.9 kB 00:00:00
remi-safe | 2.9 kB 00:00:00
updates | 3.4 kB 00:00:00
vesta | 2.9 kB 00:00:00
(1/9): epel/x86_64/group_gz | 170 kB 00:00:00
(2/9): epel/x86_64/updateinfo | 585 kB 00:00:00
(3/9): base/7/x86_64/group_gz | 155 kB 00:00:00
(4/9): epel/x86_64/primary_db | 4.2 MB 00:00:00
(5/9): base/7/x86_64/primary_db | 5.3 MB 00:00:01
(6/9): extras/7/x86_64/primary_db | 149 kB 00:00:00
(7/9): nginx/x86_64/primary_db | 14 kB 00:00:00
(8/9): remi-safe/primary_db | 475 kB 00:00:01
(9/9): updates/7/x86_64/primary_db | 5.7 MB 00:00:00
Determining fastest mirrors
* base: mirror.atlanticmetro.net
* epel: mirror.datto.com
* extras: mirrors.centos.webair.com
* remi-safe: remi.check-update.co.uk
* updates: mirror.netdepot.com
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-memcache.x86_64 0:3.0.8-4.el7 will be installed
--> Processing Dependency: /usr/bin/pecl for package: php-pecl-memcache-3.0.8-4.el7.x86_64
--> Processing Dependency: /usr/bin/pecl for package: php-pecl-memcache-3.0.8-4.el7.x86_64
--> Running transaction check
---> Package php-pear.noarch 1:1.9.4-21.el7 will be installed
--> Processing Dependency: php-posix for package: 1:php-pear-1.9.4-21.el7.noarch
--> Running transaction check
---> Package php-process.x86_64 0:5.4.16-36.1.el7_2.1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-36.1.el7_2.1 for package: php-process-5.4.16-36.1.el7_2.1.x86_64
--> Finished Dependency Resolution
Error: Package: php-process-5.4.16-36.1.el7_2.1.x86_64 (updates)
Requires: php-common(x86-64) = 5.4.16-36.1.el7_2.1
Installed: php-common-5.4.45-10.el7.remi.x86_64 (@remi)
php-common(x86-64) = 5.4.45-10.el7.remi
Available: php-common-5.4.16-36.el7_1.x86_64 (base)
php-common(x86-64) = 5.4.16-36.el7_1
Available: php-common-5.4.16-36.1.el7_2.1.x86_64 (updates)
php-common(x86-64) = 5.4.16-36.1.el7_2.1
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@centos ~]# php -v
PHP 7.0.8 (cli) (built: Jun 22 2016 10:57:20) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.8, Copyright (c) 1999-2016, by Zend Technologies
Re: Не удается подвязать memcache к PHP7 в Centos7
Code: Select all
1/9): epel/x86_64/group_gz | 170 kB 00:00:00
(2/9): epel/x86_64/updateinfo | 585 kB 00:00:00
(3/9): base/7/x86_64/group_gz | 155 kB 00:00:00
(4/9): epel/x86_64/primary_db | 4.2 MB 00:00:00
(5/9): base/7/x86_64/primary_db | 5.3 MB 00:00:01
(6/9): extras/7/x86_64/primary_db | 149 kB 00:00:00
(7/9): nginx/x86_64/primary_db | 14 kB 00:00:00
(8/9): remi-safe/primary_db | 475 kB 00:00:01
(9/9): updates/7/x86_64/primary_db | 5.7 MB 00:00:00
sudo rpm -Uhv http://rpms.famillecollet.com/enterpris ... ease-7.rpm
и к yum добавить --enablerepo=remi-php70
Re: Не удается подвязать memcache к PHP7 в Centos7
добавил, установка прошлаи к yum добавить --enablerepo=remi-php70
перезагрузил мемкеш
systemctl restart memcached.service
Весту
service vesta restart
да и все остальное
reboot
но
Code: Select all
Fatal error: Uncaught Error: Class 'Memcache' not found
что ему может не нравиться?
Re: Не удается подвязать memcache к PHP7 в Centos7
Ну как бы расчитывал что php7 он уже воткнул. Теперь надо узнать откуда, может он webtatic прикручивал или еще какой)Iknow wrote:Где здесь репо с php7?
Снеси php и поставь заново с --enablerepo=remi-php70. С remi все прекрасно.что ему может не нравиться?
Re: Не удается подвязать memcache к PHP7 в Centos7
Спасибо, порядок. Действительно был webtatic.