How to Install Xcache 3.1.1 on CentOS 7.6
Installation Of Xcache 3.1.1 on CentOS 7.6
Compatible PHP Version
5.4
Installation procedure:
Check the version of PHP as follows
[root@linuxhelp ~]# php -v
PHP 7.2.17 (cli) (built: Apr 3 2019 10:02:16) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
Display the List of installed Module packages in PHP
[root@linuxhelp ~]# rpm -qa | grep php
php-mysqlnd-7.2.17-1.el7.remi.x86_64
php-pecl-zip-1.15.4-1.el7.remi.7.2.x86_64
php-json-7.2.17-1.el7.remi.x86_64
php-mbstring-7.2.17-1.el7.remi.x86_64
php-7.2.17-1.el7.remi.x86_64
php-xml-7.2.17-1.el7.remi.x86_64
php-cli-7.2.17-1.el7.remi.x86_64
php-gd-7.2.17-1.el7.remi.x86_64
php-pdo-7.2.17-1.el7.remi.x86_64
php-common-7.2.17-1.el7.remi.x86_64
php-pecl-mcrypt-1.0.2-2.el7.remi.7.2.x86_64
Remove the installed php module packages
[root@linuxhelp ~]# yum remove "php-*" -y
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:7.2.17-1.el7.remi will be erased
---> Package php-cli.x86_64 0:7.2.17-1.el7.remi will be erased
---> Package php-common.x86_64 0:7.2.17-1.el7.remi will be erased
---> Package php-gd.x86_64 0:7.2.17-1.el7.remi will be erased
---> Package php-json.x86_64 0:7.2.17-1.el7.remi will be erased
---> Package php-mbstring.x86_64 0:7.2.17-1.el7.remi will be erased
.
.
.
.
.
Removed:
php.x86_64 0:7.2.17-1.el7.remi php-cli.x86_64 0:7.2.17-1.el7.remi php-common.x86_64 0:7.2.17-1.el7.remi
php-gd.x86_64 0:7.2.17-1.el7.remi php-json.x86_64 0:7.2.17-1.el7.remi php-mbstring.x86_64 0:7.2.17-1.el7.remi
php-mysqlnd.x86_64 0:7.2.17-1.el7.remi php-pdo.x86_64 0:7.2.17-1.el7.remi php-pecl-mcrypt.x86_64 0:1.0.2-2.el7.remi.7.2
php-pecl-zip.x86_64 0:1.15.4-1.el7.remi.7.2 php-xml.x86_64 0:7.2.17-1.el7.remi
Complete!
Disable the Php Version of 7.2 and enable the php version 5.4 which is compatible enough to install the xcache php module
[root@linuxhelp ~]# yum --disablerepo=remi-php72 --enablerepo=remi-php54 install php php-cli php-mysql php-mbstring php-mcrypt php-gd php-pdo
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.viethosting.com
* epel: ftp.riken.jp
* extras: centos.excellmedia.net
* remi-php54: mirror.reconn.ru
* remi-safe: mirror.reconn.ru
* updates: centos.excellmedia.net
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.4.45-17.el7.remi will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.45-17.el7.remi for package: php-5.4.45-17.el7.remi.x86_64
---> Package php-cli.x86_64 0:5.4.45-17.el7.remi will be installed
---> Package php-gd.x86_64 0:5.4.45-17.el7.remi will be installed
.
.
.
.
.
Installed:
php.x86_64 0:5.4.45-17.el7.remi php-cli.x86_64 0:5.4.45-17.el7.remi php-gd.x86_64 0:5.4.45-17.el7.remi
php-mbstring.x86_64 0:5.4.45-17.el7.remi php-mcrypt.x86_64 0:5.4.45-17.el7.remi php-mysql.x86_64 0:5.4.45-17.el7.remi
php-pdo.x86_64 0:5.4.45-17.el7.remi
Dependency Installed:
libzip.x86_64 0:0.10.1-8.el7 php-common.x86_64 0:5.4.45-17.el7.remi t1lib.x86_64 0:5.1.2-14.el7
Complete!
Verify the version of PHP Installed as follows.
[root@linuxhelp ~]# php -v
PHP 5.4.45 (cli) (built: Jan 11 2019 13:43:32)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
Now Install the xcache php module by executing the following command
[root@linuxhelp ~]# yum install php-xcache xcache-admin -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.viethosting.com
* epel: ftp.riken.jp
* extras: centos.excellmedia.net
* remi-php72: mirror.reconn.ru
* remi-safe: mirror.reconn.ru
* updates: centos.excellmedia.net
Resolving Dependencies
--> Running transaction check
---> Package php-xcache.x86_64 0:3.1.1-1.el7 will be installed
---> Package xcache-admin.noarch 0:3.1.1-1.el7 will be installed
--> Finished Dependency Resolution
.
.
.
.
.
.
Installed:
php-xcache.x86_64 0:3.1.1-1.el7 xcache-admin.noarch 0:3.1.1-1.el7
Complete!
Check the Modules Of PHP
[root@linuxhelp ~]# php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
.
.
.
.
XCache
XCache Cacher
XCache Coverager
XCache Optimizer
xml
zip
zlib
.
[Zend Modules]
XCache
XCache Cacher
XCache Coverager
XCache Optimizer
With this, the installation of Xcache 3.1.1 On CentOS 7.6 comes to end.
Q
How does xcache increases the performance of the servers?
A
Xcache increases the performance of the servers just by removing the compilation time of php scripts, by caching the compiled state of php scripts into RAM and uses these compiled version straight from the RAM.
Q
What Does cache mean in xcache php module?
A
cache is a temporary storage area in xcache php module.
Q
Is php-Xcache an opcode cacher?
A
Yes,php-xcache is an opcode cacher
Q
What is the use of PHP-Xcache?
A
php-Xcache accelerates the performance of php execution process on your server.
Q
What is the compatible php version to install the php-Xcache module?
A
The compatible php version to install the php-Xcache module is 5.4.