PDA

View Full Version : [ubuntu] Apache dead after power flicker


R.Bucky
November 2nd, 2008, 04:00 PM
My 7.10 Ubuntu server times out for my domain http://buckyspalace.net. I had a momentary power flicker (yes, behind a surge protector), which did not turn off my server. Now, I am unable to view my web pages.

I have checked error.log and access.log with nothing out of the ordinary. Apache httpd is running. I took the liberty of restarting my machine with no success. Additionally, I restarted my modem and router.

Any suggestions?

~Mark

HermanAB
November 2nd, 2008, 04:40 PM
Before testing Apache, you need to ensure that the lower level stuff is working.

See whether you have an IP address
$ sudo ifconfig

See whether you have a default route to your gateway:
$ sudo route

See whether you can Ping something:
$ ping www.yahoo.com

By now you should have a better idea of where the problem lies.

Cheers,

Herman

R.Bucky
November 2nd, 2008, 04:46 PM
Yup, all responses appear as they should be. Connectivity is not a problem. I am uploading a torrent now... This same problem occurred in the past. The solution was a fresh start. That was not desirable.

cariboo907
November 2nd, 2008, 07:00 PM
Do you get any error messages when you restart apache2, at the prompt type:

sudo /etc/init.d/apache2 restart

note if their are any error mesaages.

Jim

lykwydchykyn
November 2nd, 2008, 11:48 PM
Post the outputs of

sudo netstat -tunap
sudo iptables -L

On the server.

I ran a port scan on your URL and port 80 is being filtered. I see several possibilities here:
- Your modem or router got reset, and your port forwarding/firewalling settings got reset
- If you're using a dynamic DNS service, your public IP may not have been updated correctly. (is the WAN ip on your modem 24.18.97.15?)
- Something is setting up an iptables firewall on reboot.

Check those things out.