Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rank-math domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u996806617/domains/vidyut.net/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rank-math-pro domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u996806617/domains/vidyut.net/public_html/wp-includes/functions.php on line 6114
Installing Varnish Cache for WordPress on Ubuntu Server - Vidyut

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 *