Installing Varnish Cache for WordPress on Ubuntu Server

My intention is to whiz up the WordPress. The best of both worlds, so to say. WordPress is very cool, but needs some serious speed boost to lose that leisurely blog feel.

So here’s how you do it. Please remember, this is code I use on Ubuntu. If that is not your server, you are better off following the Varnish Cache website.

Install Varnish.

Begin with getting the key.

curl http://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add -

If you have been following the Server from the beginning, you don’t have curl installed. So you install it and run the command again.

apt-get install curl

If this fails with a missing package, update

apt-get update

and then install curl, and then import key.

Add varnish to your sources.list.

echo "deb http://repo.varnish-cache.org/ubuntu/ lucid varnish-3.0" >> /etc/apt/sources.list

Or, if you have been installing other stuff too, and would like to add them all at once, simply edit the sources.list file and add the repository in.

vi /etc/apt/sources.list

Update and install varnish.

apt-get update
apt-get install varnish

Done. But follow on to configuring. Configuring Varnish for WordPress is another animal altogether.


Posted

in

by

Tags:

Comments

3 responses to “Installing Varnish Cache for WordPress on Ubuntu Server”

  1. liza Avatar

    Jestem mile zaskoczony wypowiedzi? , czekam na wiecej sukienki podobnych artyku?ów autora.

  2. liza Avatar

    Nies?ychanie interesuj?cy wpis, wszyzstko sukienki zosta?o w nim opisane. Oby wi?cej tego typu wpisów.

  3. Joe Gardiner (@Joe_Gardiner) Avatar

    Hi,

    Have you written a guide for WordPress config? I have been having issues with admin panels being cached.

    Joe

Leave a Reply

Your email address will not be published. Required fields are marked *