How to install XCache
XCache Installation:
- Download the latest compatible version and extract:
# cd /usr/local/src && wget http://xcache.lighttpd.net/pub/Releases/1.3.2/xcache-1.3.2.tar.gz && tar -xzf xcache-1.3.2.tar.gz && cd xcache-1.3.2
- Note the path returned for the following command:
# whereis php-config
- Use the output from #2 to modify the –with-php-config flag in the following compile command:
# phpize && ./configure --with-php-config=/usr/bin/php-config --enable-xcache --enable-xcache-optimizer --enable-xcache-coverager && make && make install
The result should be similar to:
Installing shared extensions: /usr/lib/php/modules/
- You can also use the eaccelerator.ini file we prepared for you:
# cp /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/w3-total-cache/ini/xcache.ini /etc/php.d/
- Restart apache when ready:
# /etc/init.d/httpd restart
- You’re done! XCache should now be available. If the following command retuns anything, you’re all set:
# php -r 'phpinfo();' | grep 'xcache'
Recommended Posts
Virtualmin – Migrating to a new server
24th November 2016