My server sometimes goes down.

July 3, 2018 534 views
Apache PHP Ubuntu

My server sometimes goes down then refresh to work again. How to fix it ?

Server Information

Ubuntu 14.04.5 x64

Apache

PHP 5.6

ERROR

The request URL could not be retrieved

The following error was encountered white trying to retrieve the URL: http://www.24modelling.com/pretty

Read Error

The system returned: (104) Connection reset by peer.

An error condition occurred while reading data from the network. Please retry your request.

Your cache administrator webmaster.


1 Answer

Hey friend,

That is a bit of a tough call. Most likely you will want to check the log entry for the web server which correlates to the error received. The process of doing this is relative, so my example is likely to need interpretation through what is correct and relevant to you. This is what I would do:

First determine my IP address:
https://www.whatismyip.com/

For this example, let's say my IP is 1.1.1.1. Let's also say this is Apache on Ubuntu. I would then do this:

grep "1.1.1.1" /var/log/apache2/*

Check the time stamps for the relevant entry that matches when you received the error. You may see another error, and you can use it to search Google for that message. Pay close attention to results from stackoverflow.com, there are often great discussions there about specific error messages that result in action items you can take to resolve it.

Kind Regards,
Jarland

Have another answer? Share your knowledge.