XCache PHP accelerator

From SME Server
Jump to navigation Jump to search

About

Xcache' is a open-source opcode cacher, which means that it accelerates the performance of PHP on servers. It optimizes performance by removing the compilation time of PHP scripts by caching the compiled state of PHP scripts into the shm (RAM) and uses the compiled version straight from the RAM. This will increase the rate of page generation time by up to 5 times as it also optimizes many other aspects of php scripts and reduces serverload.


Installation

xcache is available via the epel repository so the epel repository should be enabled first. Then to install:

yum install php-xcache --enablerepo=epel

This will install XCache and will be automatically loaded by Apache at boot as a default module. To activate XCache now, restart the Apache service:

service httpd-e-smith restart

and to check if XCache is loaded:

php -v

Configuration

XCache comes with default values located in /etc/php.d/xcache.ini. Please see the XCache documentation for details.