Web Server Crashing, Part II

My Apache web server crashed again. It's been running for about two weeks, and today I went to my web page, and it wouldn't load.

This is a continuation of the thread: http://www.linode.com/forums/viewtopic.php?t=300

Before I restarted the server, I ran top, but nothing was really taking up any memory. I looked at my apache error_log, and it didn't seem that I was bombarded or anything. I do receive attention from what look like hackers searching IPs for certain Windows files (but these are coming in just every few hours so it shouldn't be a problem).

I ran: "apachectl status" before I restarted my server and got:

Looking up localhost
localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://localhost/server-status

Caker, you asked me awhile whether I was starting my apache server by console or ssh. I start it via ssh…is that wrong?

I suppose two weeks isn't so bad, but I feel like it shouldn't crash like this. Any ideas?

Thanks all.

1 Reply

My apache httpd also stopped working yesterday. What happened on my machine was that the hostname somehow got changed. In my /etc/HOSTNAME file it was still the same, but I ran 'hostname dmbshare.org' (thats my hostname) and all is fine again. I fig'd this out after repeatedly trying to start httpd (using apachectl). Then i tried to restart proftpd, and same probs, but said it couldnt resolve the local host.. One of my brain cells woke up and I decided to check the httpd error logs, and low and behold, same prob. Hence the 'hostname hostname'

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct