Author Topic: How to install XCache in PHP on CentOS linux  (Read 12079 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to install XCache in PHP on CentOS linux
« on: January 12, 2015, 12:13:04 PM »
By default XCache is not installed.
Now I'll show you how to install it.

1. Install additional required dev packages
Code: [Select]
yum install gmp gmp-devel
2. Download and decompress (latest version -> http://xcache.lighttpd.net/)
Code: [Select]
wget http://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz
Code: [Select]
tar -xvzf xcache-3.2.0.tar.gz
3. Compile XCache
Code: [Select]
cd xcache-3.2.0
Code: [Select]
/usr/local/bin/phpize
Code: [Select]
./configure --enable-xcache --with-php-config=/usr/local/bin/php-config
Code: [Select]
make
Code: [Select]
make install
Code: [Select]
cp xcache.ini /usr/local/php/php.d/xcache.ini
4. Restart httpd and check results
Code: [Select]
service httpd restart
Code: [Select]
php -v
You should see this:
Code: [Select]
PHP 5.4.27 (cli) (built: Jan 11 2015 15:58:09)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with XCache v3.2.0, Copyright (c) 2005-2014, by mOo
    with the ionCube PHP Loader v4.7.3, Copyright (c) 2002-2014, by ionCube Ltd.
    with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo

Offline
*
Re: How to install XCache in PHP on CentOS linux
« Reply #1 on: March 10, 2015, 11:23:22 PM »
this will not work with suPHP handler and you will need to use Varnish as a cache server in front of the apache

http://www.webhostingtalk.com/showthread.php?t=1211457
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services