How to Install XVarnish in WHM Server? Skriv ut

  • 0

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


Hjälpte svaret dig?

«Tillbaka
Sign up for a newsletter

chat