w3tools-varnish icon indicating copy to clipboard operation
w3tools-varnish copied to clipboard

Varnish Cache Inegration in cPanel

w3tools-varnish

####Varnish Cache Integration in cPanel

Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents.

####Installation:

$> yum update -y
$> yum install wget -y
$> wget "https://raw.githubusercontent.com/itseasy21/w3tools-varnish/master/install.sh" -O /root/varnish-install.sh
$> cd /root
$> chmod +x varnish-install.sh
$> ./varnish-install.sh

####Varnish Cache Settings

You can play around with Varnish setting to get best result based on your preferences

vim /etc/varnish/default.vcl

You can validate the setting before applying

varnishd -C -f /etc/varnish/default.vcl

To apply the setting, restart Varnish

service varnish restart
```

####UnInstall:

```bash
$> wget "https://raw.githubusercontent.com/itseasy21/w3tools-varnish/master/uninstall.sh" -O /root/varnish-uninstall.sh
$> cd /root
$> chmod +x varnish-uninstall.sh
$> ./varnish-uninstall.sh

Varnish Cache Proudly Presented by http://www.w3tool.blogspot.in/