Master da Web
Back to Blog

How to Install and Configure XCache in Debian

LucasMarch 5, 20121 min readUpdated on November 4, 2023

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

Tags#debian#linux#xcache
Share

Need Hosting or Servers?

Discover our VPS, dedicated servers and professional hosting solutions

Related Articles

View all articles