Topic: Xcache admin problem

Hello,

And thanks once again for your wonderful repos smile

I am having a problem getting the xcache admin interface working from php55-xcache-admin-3.1.1-1.el6.remi.noarch. I have configured the file at /opt/remi/php55/root/etc/php.d/xcache.ini:

[xcache.admin]
xcache.admin.enable_auth = On


xcache.admin.user = "admin"
xcache.admin.pass = "password string"

..but I get this error when I go to the URL:


Fatal error: xcache_count(): xcache.admin.user and/or xcache.admin.pass settings is not configured. Make sure you've modified the correct php ini file for your php used in webserver. in /opt/remi/php55/root/usr/share/xcache/cacher/index.php on line 259

I think I've configured what it wants me to configure, but it still doesn't seem to be working. Any idea what I've got wrong?

BTW, I enable xcache as follows, in /etc/php.d/xcache.ini:

extension=extension=/opt/remi/php55/root/usr/lib64/php/modules/xcache.so

Merely installing it doesn't seem to enable it according to the xcache diagnosis page.

Any ideas?

Thanks in advance smile

Re: Xcache admin problem

> BTW, I enable xcache as follows, in /etc/php.d/xcache.ini:
> extension=extension=/opt/remi/php55/root/usr/lib64/php/modules/xcache.so

See http://blog.famillecollet.com/pages/English-FAQ#scl

I think you need xcache-admin, not php55-xcache-admin.

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: Xcache admin problem

Thanks for the quick reply.

Just to clarify, I'm using PHP 5.5, those RPMs are installed:

php55-php-process-5.5.20-2.el6.remi.x86_64
php55-php-pecl-jsonc-1.3.6-1.el6.remi.x86_64
php55-xcache-admin-3.1.1-1.el6.remi.noarch
php5-ioncube-loader-4.6.0-14042516.x86_64
php55-php-xml-5.5.20-2.el6.remi.x86_64
php55-php-pecl-zip-1.12.4-2.el6.remi.x86_64
php55-runtime-2.0-2.el6.remi.x86_64
php55-php-pear-1.9.5-4.el6.remi.noarch
php55-php-5.5.20-2.el6.remi.x86_64
php55-php-cli-5.5.20-2.el6.remi.x86_64
php55-php-common-5.5.20-2.el6.remi.x86_64
php55-php-xcache-3.1.1-1.el6.remi.x86_64

Is it still the case that I would want the xcache-admin rpm, and not  php55-xcache-admin?

Re: Xcache admin problem

But, why do say you change /etc/php.d/xcache.ini, this file is only revelant for base package.

Please "rpm -qa php\*"

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: Xcache admin problem

psa-phpfpm-configurator-1.0.0-cos6.build1200140526.11.x86_64
php-pear-1.9.5-3.el6.remi.noarch
php-gd-5.5.20-1.el6.remi.x86_64
php-mcrypt-5.5.20-1.el6.remi.x86_64
php-simplepie-1.3.1-3.el6.noarch
php-common-5.5.20-1.el6.remi.x86_64
php55-php-process-5.5.20-2.el6.remi.x86_64
php55-php-pecl-jsonc-1.3.6-1.el6.remi.x86_64
php55-xcache-admin-3.1.1-1.el6.remi.noarch
php5-ioncube-loader-4.6.0-14042516.x86_64
php-process-5.5.20-1.el6.remi.x86_64
php-5.5.20-1.el6.remi.x86_64
php-pecl-apcu-4.0.7-1.el6.remi.5.5.x86_64
php-enchant-5.5.20-1.el6.remi.x86_64
plesk-aps-php-runtime-12.0.18-1016274.14060313.noarch
php55-php-xml-5.5.20-2.el6.remi.x86_64
php55-php-pecl-zip-1.12.4-2.el6.remi.x86_64
psa-phpmyadmin-4.2.5-cos6.build1200140702.16.noarch
php-xml-5.5.20-1.el6.remi.x86_64
php-pecl-zip-1.12.4-1.el6.remi.5.5.x86_64
php-fpm-5.5.20-1.el6.remi.x86_64
php-mbstring-5.5.20-1.el6.remi.x86_64
php-pdo-5.5.20-1.el6.remi.x86_64
php55-runtime-2.0-2.el6.remi.x86_64
php55-php-pear-1.9.5-4.el6.remi.noarch
php55-php-5.5.20-2.el6.remi.x86_64
psa-phppgadmin-5.1-cos6.build1200140423.17.noarch
php-IDNA_Convert-0.8.0-1.el6.remi.noarch
php-cli-5.5.20-1.el6.remi.x86_64
php-pecl-jsonc-1.3.6-1.el6.remi.5.5.1.x86_64
php-imap-5.5.20-1.el6.remi.x86_64
php-PHPMailer-5.2.9-1.el6.remi.noarch
php-mysqlnd-5.5.20-1.el6.remi.x86_64
php55-php-cli-5.5.20-2.el6.remi.x86_64
php55-php-common-5.5.20-2.el6.remi.x86_64
php55-php-xcache-3.1.1-1.el6.remi.x86_64
psa-php5-configurator-1.6.3-cos6.build1200140526.11.x86_64

I guess my mistake is that I have both the base OS version plus the PHP 5.5 rpms installed. PHPinfo shows that the version is 5.5.20 as expected. Do I need to uninstall the php-\* RPMS? You may notice also that this server has Plesk installed, which I am pretty sure has some dependencies with PHP. Do you have ay info about safely uninstalling the OS's version of PHP in this environment?

Re: Xcache admin problem

Sorry can't help with plesk, I never use it.

If "base package" are fine for you , probably simpler to remove the SCL packages.

SCL are mostly useful when you want to keep base package version unchanged, or install various different versions at the same time, but as base package are already updated from my repo...

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: Xcache admin problem

Hello,

I removed the php55* packages without any issues, however, the php-xcache package seems to depend on PHP 5.4:

Resolving Dependencies
--> Running transaction check
---> Package php-xcache.x86_64 0:3.1.1-1.el6.remi.5.4 will be installed
--> Processing Dependency: php(zend-abi) = 20100525-x86-64 for package: php-xcache-3.1.1-1.el6.remi.5.4.x86_64
--> Processing Dependency: php(api) = 20100412-x86-64 for package: php-xcache-3.1.1-1.el6.remi.5.4.x86_64
--> Finished Dependency Resolution
Error: Package: php-xcache-3.1.1-1.el6.remi.5.4.x86_64 (remi)
           Requires: php(zend-abi) = 20100525-x86-64
           Installed: php-common-5.5.20-1.el6.remi.x86_64 (@remi-php55)
               php(zend-abi) = 20121212-64
           Available: php-common-5.3.3-38.el6.x86_64 (base)
               php(zend-abi) = 20090626
           Available: php-common-5.3.3-40.el6_6.x86_64 (updates)
               php(zend-abi) = 20090626
           Available: php-common-5.4.36-1.el6.remi.x86_64 (remi)
               php(zend-abi) = 20100525-x86-64
           Available: php-common-5.4.37-1.el6.remi.x86_64 (remi)
               php(zend-abi) = 20100525-x86-64
Error: Package: php-xcache-3.1.1-1.el6.remi.5.4.x86_64 (remi)
           Requires: php(api) = 20100412-x86-64
           Installed: php-common-5.5.20-1.el6.remi.x86_64 (@remi-php55)
               php(api) = 20121113-64
           Available: php-common-5.3.3-38.el6.x86_64 (base)
               php(api) = 20090626
           Available: php-common-5.3.3-40.el6_6.x86_64 (updates)
               php(api) = 20090626
           Available: php-common-5.4.36-1.el6.remi.x86_64 (remi)
               php(api) = 20100412-x86-64
           Available: php-common-5.4.37-1.el6.remi.x86_64 (remi)
               php(api) = 20100412-x86-64

Will it be available for 5.5?

Thanks

Jerry

Re: Xcache admin problem

It is... just have to enable remi-php55 repo.

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: Xcache admin problem

That worked perfectly.

Thanks very much for your help smile

Re: Xcache admin problem

smile

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