Tag Archives: xcache

Ubuntu xcache

1
Filed under Linux, Servers

If you need to setup xcache for use in your nginx + php5 setup this tutorials will show you how.

Installation

  1. Update apt:
    sudo apt-get update
  2. Install xcache:
    sudo apt-get install php5-xcache

Configuration of xcache

  1. Edit the xcache config file:
    sudo vim /etc/php5/conf.d/xcache.ini

    and update the values for

    • xcache.size (set to desired memory size)
    • xcache.var_size (set to desired memory size)
    • xcache.cacher (set to On)
    • xcache.optimizer (set to On)

    If you don’t want admin access then set
    xcache.admin.auth = Off

Finishing Up

  1. Now that the configuration is complete we need to restart php:
    sudo /etc/init.d/init-fastcgi stop
    sudo /etc/init.d/init-fastcgi start
  2. Enjoy your xcached php goodness…