XCache is a fast, stable PHP opcode cacher that has been tested and is now running on production servers under high load. It overcomes a number of problems that have been with other competing opcachers, such as being able to be used with new versions of PHP.
Installing XCache on Debian is very simple.
How to install XCache on Debian?
1 – Use the command to install XCache:
apt-get install php5-xcache
2 – Restart Apache:
That’s it! XCache is installed. To check if XCache is working, use the following PHP function below and search for “XCache”:
[PHP]
phpinfo();
[/PHP]
How to configure XCache?
XCache is already pre-configured, so if you want to change variable values and so on, just edit the xcache.ini file located in the directory:
/etc/php5/apache2/conf.d/xcache.ini