3

I have installed Varnish in my WordPress Ubuntu EC2 instance as described in this guide:

http://jeffreifman.com/detailed-wordpress-guide-for-aws/install-varnish/

I do have many issues with Varnish and would like to disable Varnish.

I tried to undo the steps described in the guide, e.g. setting ports from :8080 back to :80, then restarting Apache and rebooting Ubuntu. Unfortunately, since my WordPress website does no longer work after these steps, I must have missed something.

When opening my website in a browser, I get the following error message:

Error 503 Service Unavailable

Service Unavailable

Guru Meditation:

XID: 513637370

What is the correct way to disable (and even uninstall Varnish) from my WordPress installation?

AlexR
  • 173
  • 2
  • 2
  • 7

2 Answers2

7

if you use CentOS or Red Hat, use this:

service varnish stop

if you want to uninstall varnish, try this:

yum erase varnish

or refer to https://stackoverflow.com/questions/27739853/varnish-cache-server-error-503-service-unavailable

John Yin
  • 186
  • 1
  • 2
2

Looking at the message, it seems you have forgotten to change back varnish port to it's default 6081, so you should edit your /etc/default/varnish file and change VARNISH_LISTEN_PORT or the -a applicable reference.

If you want to uninstall varnish, it should be as easy as sudo apt-get remove varnish

NITEMAN
  • 314
  • 1
  • 5
  • 4
    Folks commenting here are assuming a lot of things, in some system setups, if you stop varnish you stop your websites. – Mike Q Nov 15 '16 at 21:39