Question

Ubuntu Lemp Nginx Server Site Keeps Not Working

I recently finished this tutorial for setting up a lemp nginx wordpress server. https://www.youtube.com/watch?v=P7W4iYkFaOU&t=168s. I currently have one domain and 4 subdomains hosted, each with their own server blocks. The problem I’m having is that the sites work for like 30 minutes and then stop working for a while, then turn back on. I have no clue what is causing this as the digital ocean graphs don’t show high memory, cpu or bandwidth usage.

Subscribe
Share

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

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.

Hello,

What I could suggest is starting by checking your Nginx error log first:

  1. tail -200 /var/log/nginx/error.log

Feel free to share the output here, just make sure to remove any sensitive information.

I could also suggest checking out this post here on how to troubleshoot common Nginx problems:

https://www.digitalocean.com/community/questions/how-to-troubleshoot-common-nginx-issues-on-linux-server

Best, Bobby