I have a staging server, which is run out of our office, that we use for showing websites currently in development to clients for approval, and for content input into a CMS. It is not under high load, only a few visits a month and there is only a handful of sites on it at a time. The server is running Ubuntu 14.04.1 LTS with Apache 2.4.7 with the ITK module.
I have started having a problem completely out of the blue where the sites on it are just completely hanging. Sometimes it times out, sometimes they just seem to spin indefinitely and sometimes the browser just says the resource cannot be accessed.
I have dug through the Apache Logs and cannot find any errors that seem remotely useful. I have checked out netstat
and there is a lot of processes in there on TIME_WAIT
which don't seem to be clearing themselves, with some from IP's that I do not recognise either.
If I try and restart Apache with any of the following commands, it just hangs infinitely with no error message:
service apache2 reload
service apache2 restart
apache2ctl restart
apache2ctl stop/start
Although I am fairly comfortable with the command line and Ubuntu, I am no expert by any means. Without any error messages, I do not really know what to try next.
Can anyone offer any advice?