Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

How To Install Varnish Cache

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
n0rton
Posts: 29
Joined: Tue Mar 31, 2015 7:31 am

How To Install Varnish Cache
  • Quote

Post by n0rton » Tue Jun 02, 2015 9:27 am

Hi,

I installed varnish cache, memcached, xcached and nice work website.


Ubuntu:

Code: Select all

  
    apt-get install apt-transport-https
    curl https://repo.varnish-cache.org/GPG-key.txt | apt-key add -
    echo "deb https://repo.varnish-cache.org/ubuntu/ precise varnish-4.0" >> /etc/apt/sources.list.d/varnish-cache.list
    apt-get update
    apt-get install varnish
Debian:
apt-get install apt-transport-https
curl https://repo.varnish-cache.org/GPG-key.txt | apt-key add -
echo "deb https://repo.varnish-cache.org/debian/ wheezy varnish-4.0" >> /etc/apt/sources.list.d/varnish-cache.list
apt-get update
apt-get install varnish
Red Hat (Linux - Centos):

Code: Select all

    Version 4.0

    rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-4.0.el6.rpm
    yum install varnish

service varnish restart

And for see if work:

varnishstat (comand)


Uptime mgt: 0+00:11:00 Hitrate n: 10 100 573
Uptime child: 0+00:11:00 avg(n): 0.0000 0.0000 0.0000

NAME CURRENT CHANGE AVERAGE AVG_10
MAIN.uptime 660 1.00 1.00 1.00
MAIN.pools 2 0.00 . 2.00
MAIN.threads 100 0.00 . 100.00
MAIN.threads_created 100 0.00 . 0.00
MAIN.n_backend 1 0.00 . 1.00
MAIN.n_vcl 1 0.00 . 0.00
MAIN.bans 1 0.00 . 1.00
MGT.uptime 660 1.00 1.00 1.00
SMA.s0.g_space 268435456 0.00 . 268435456.00




Test in gtmetrix for speed website:

Page Speed Grade:
(98%)

YSlow Grade:
(96%)

Page load time: 0.94s
Total page size: 72.8KB
Total number of requests: 5
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: How To Install Varnish Cache
  • Quote

Post by skurudo » Tue Jun 02, 2015 2:20 pm

It was tested on static site?
varnish + nginx + apache?
Top

mephivio
Posts: 198
Joined: Thu Mar 27, 2014 7:35 am

Os: Debian 8x
Web: nginx + php-fpm
Re: How To Install Varnish Cache
  • Quote

Post by mephivio » Wed Jun 03, 2015 6:33 am

hi
that's not enougth : you have to setup a vcl file depending on the spec of your platform wordpress, joomla, prestashop etc... or you will cache anything including user pages, carts etc....

cheers

JP
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: How To Install Varnish Cache
  • Quote

Post by skurudo » Wed Jun 03, 2015 6:57 am

mephivio wrote: that's not enougth : you have to setup a vcl file depending on the spec of your platform wordpress, joomla, prestashop etc... or you will cache anything including user pages, carts etc....
Yep, this is important notice.
But for popular platforms exist ready examples ;-)
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password