How to Install XVarnish in WHM Server?

xVarnish is an open source high-performance HTTP accelerator, best suitable for shared WHM servers. It allows you to set up and configure Varnish cache as a website optimizing front-end for the standard cPanel-WHM server. It also allows cPanel users to disable the caching permanently or temporarily from cPanel itself. In this tutorial, we'll walk you through to install and enable xVarnish plugin.

Install xVarnish


Installation Commands For WHM Server with CentOS 7


yum install epel-release
rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-4.1.el7.rpm
rpm --nosignature -i https://repo.xvarnish.com/xvarnish-repository-1-8.el7.rpm
yum install xvarnish
Installation Commands For WHM Server with CentOS 6

yum install epel-release
 rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-4.1.el6.rpm
 rpm --nosignature -i https://repo.xvarnish.com/xvarnish-repository-1-8.el6.rpm
 yum install xvarnish

Activate xVarnish License


To activate the xVarnish plugin, you’ll have to register to xVarnish site with your email address. Once signed up, xVarnish license manager will immediately send you the access information. From your login, you can create a license key for any number of servers. Run the following command to activate the license key collected from your sign in at xVarnish dashboard.

/usr/local/xvarnish/bin/activate --key 5940da47-77e3-4833-94c1-1117a56f272d

Enable xVarnish


xvctl enable xvarnish
xvctl enable https

Remove xVarnish


Disabling xVarnish

xvctl disable xvarnish
 bash /usr/local/xvarnish/bin/revert-apache.sh
Completely Remove From Server

yum remove xvarnish xvarnish-vmods varnish varnish-libs
 rm -rI /usr/local/xvarnish

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to Install UNIXy cPanel Varnish Plugin?

UNIXy is a feature-rich Varnish cache plugin for WHM servers developed by UNIXy. It allows you to...

How to Install NGINX in WHM Server Through Engintron?

Engintron (Nginx on cPanel) is an open source NGINX installer, which integrates your existing WHM...

How to Install NGINX in WHM Server Through Cpnginx?

Cpnginx is yet a feature-rich customizable NGINX installer. It allows you to build and deploy...

How to Install LiteSpeed Web Server in WHM Server?

LiteSpeed is a commercial and most efficient Apache replacement, which improves the performance...