Question

Magento 2 site gets down after removing Varnish.

Posted June 13, 2021 116 views
ApacheDigitalOcean Droplets

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 :(

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.

×
Submit an Answer
1 answer

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.

  • 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:

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

Hope that this helps!
Regards,
Alex

by Jamon Camisso
There are three main commands, and a set of common log locations that you can use to get started troubleshooting Apache errors. Generally when you are troubleshooting Apache, you will use these commands in the order indicated here, and then examine log files for specific…