Question

Magento 2 site gets down after removing Varnish.

I have been running Magento 2 site where I was facing varnish issue so I decided to remove varnish entirely using this command “sudo apt-get remove varnish” command but the site went down permenantly

I have re-install varnish using the same backup but still site is down. Could you please help me how can I fix this. I am bout to lose everything :(


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, @zuberanish

What is the exact error when you open the website? You can double-check if the webserver (Apache/Nginx) is running. You can also use the netstat command to check if any service is listening on port 80 and 443 as well.

  1. netstat -tulpn | grep :80

or

netstat -tulpn | grep :443

I will also recommend you examine the Apache/Nginx error logs. If there is a problem with the webserver the error will be logged and you can then can easily resolve any issues.

https://www.digitalocean.com/community/tutorials/how-to-troubleshoot-common-apache-errors

And to check the Nginx error_log you can use the cat or less commands:

  1. sudo cat /var/log/nginx/error.log
  1. sudo less /var/log/nginx/error.log

Hope that this helps! Regards, Alex