If you need to setup xcache for use in your nginx + php5 setup this tutorials will show you how.
Installation
- Update apt:
sudo apt-get update - Install xcache:
sudo apt-get install php5-xcache
Configuration of xcache
- Edit the xcache config file:
sudo vim /etc/php5/conf.d/xcache.iniand 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
- 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 - Enjoy your xcached php goodness…
