1 (edited by Torres36 2016-09-11 05:58:27)

Topic: CentOS7 - PHP70 - Xcache error

Hello,

I've installed remi-php70 on Centos7.
When I try to install php-xcache, I get an error:

Resolving Dependencies
--> Running transaction check
---> Package php-xcache.x86_64 0:3.1.1-1.el7 will be installed
--> Processing Dependency: php(zend-abi) = 20100525-64 for package: php-xcache-3.1.1-1.el7.x86_64
--> Processing Dependency: php(api) = 20100412-64 for package: php-xcache-3.1.1-1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: php-xcache-3.1.1-1.el7.x86_64 (epel)
           Requires: php(api) = 20100412-64
           Installed: php-common-7.0.10-1.el7.remi.x86_64 (@remi-php70)
               php(api) = 20151012-64
           Available: php-common-5.4.16-36.el7_1.x86_64 (base)
               php(api) = 20100412-64
           Available: php-common-5.4.16-36.1.el7_2.1.x86_64 (updates)
               php(api) = 20100412-64
           Available: php-common-5.4.16-36.3.el7_2.x86_64 (updates)
               php(api) = 20100412-64
           Available: php-common-7.0.9-1.el7.remi.x86_64 (remi-php70)
               php(api) = 20151012-64
Error: Package: php-xcache-3.1.1-1.el7.x86_64 (epel)
           Requires: php(zend-abi) = 20100525-64
           Installed: php-common-7.0.10-1.el7.remi.x86_64 (@remi-php70)
               php(zend-abi) = 20151012-64
           Available: php-common-5.4.16-36.el7_1.x86_64 (base)
               php(zend-abi) = 20100525-64
           Available: php-common-5.4.16-36.1.el7_2.1.x86_64 (updates)
               php(zend-abi) = 20100525-64
           Available: php-common-5.4.16-36.3.el7_2.x86_64 (updates)
               php(zend-abi) = 20100525-64
           Available: php-common-7.0.9-1.el7.remi.x86_64 (remi-php70)
               php(zend-abi) = 20151012-64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest


Any idea what I can do to have xcache installed?

This is what I have installed php-wise:

php.x86_64                           7.0.10-1.el7.remi               @remi-php70
php-cli.x86_64                       7.0.10-1.el7.remi               @remi-php70
php-common.x86_64                    7.0.10-1.el7.remi               @remi-php70
php-gd.x86_64                        7.0.10-1.el7.remi               @remi-php70
php-intl.x86_64                      7.0.10-1.el7.remi               @remi-php70
php-json.x86_64                      7.0.10-1.el7.remi               @remi-php70
php-mbstring.x86_64                  7.0.10-1.el7.remi               @remi-php70
php-mysqlnd.x86_64                   7.0.10-1.el7.remi               @remi-php70
php-pdo.x86_64                       7.0.10-1.el7.remi               @remi-php70
php-xml.x86_64                       7.0.10-1.el7.remi               @remi-php70
php70.x86_64                         1.0-5.el7.remi                  @remi-safe
php70-php-cli.x86_64                 7.0.10-1.el7.remi               @remi-safe
php70-php-common.x86_64              7.0.10-1.el7.remi               @remi-safe
php70-php-json.x86_64                7.0.10-1.el7.remi               @remi-safe
php70-runtime.x86_64                 1.0-5.el7.remi                  @remi-safe




Thanks,

Re: CentOS7 - PHP70 - Xcache error

XCache is not compatible with PHP 7, see the compatibility list

BTW, I even think this project is dead, no activity for months (last commit in Apr 2015)

For opcode cache, see php-opcache which is the official cache from the PHP project.

For user data cache, see php-pecl-apcu or other alternatives.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: CentOS7 - PHP70 - Xcache error

Holy, you're quick to respond, thank you!!!!!

What would you think would be best route to go for MediaWiki? opcode or apcu? Mediawiki mentions apcu.

Re: CentOS7 - PHP70 - Xcache error

Torres36 wrote:

What would you think would be best route to go for MediaWiki? opcode or apcu? Mediawiki mentions apcu.

As I said previously, different things.

opcode is always a must have for perf.

apcu need the code to be aware of it, if MediaWiki known about it, go.

So: both.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: CentOS7 - PHP70 - Xcache error

thank you very much Remi! you rock!