Rar afternoon of intense heaches trying to work out the solution to this
problem:
Initial problem: dead, unpingable, unloginable, unviewable box:
Theory (due to being able to look at console) Debian UM Linux box
crashing, seemingly due to mysql
Solution: Restart box via interface....
Box restarts, things come up. Now:
Problem: box unpingable, but loginable. ircd and mysql have both started
and are being used again, mail is up, but apache is dead: try starting
apache (using apachectl)
Configtest: all ok
Graceful:
root@dev:/var/log/apache# apachectl graceful
/usr/sbin/apachectl graceful: httpd not running, trying to start
[Sun Dec 14 16:07:44 2003] [error] (2)No such file or directory:
mod_mime_magic: can't read magic file /etc/apache/share/magic
/usr/sbin/apachectl graceful: httpd could not be started
looking at error.log:
root@dev:/var/log/apache# cat error.log
[Sun Dec 14 15:36:00 2003] [error] (2)No such file or directory:
mod_mime_magic: can't read magic file /etc/apache/share/magic
getpeername: Socket operation on non-socket
getsockname: Socket operation on non-socket
Error getting local address
again, thom steps in saying the mod_mime_magic isnt a problem as that
wiill just die nicely when it cant configure itself, but the getpeername
is possibly due to a failure of some non-existing domain name somehwere,
so I go through the entier config file commenting out the virtual host
loads, and the bit which makes it look for virtual hosts, and changing
anything which poitns at dev.imen.org.uk to pointing at its ip address,
and then try again, but I get the same error, checking all the way
through a couple of times and repeating.
The box is still unpingable from the outside world, (from various hosts)
but pingable by itself (duhh). Could this have an affect on it. DNS
lookups to it return the correct ip address for that box (otherwise I
couldnt log in or irc to it).
Searching the web gives me either results not relavent to apache, or
just other people (including entries on debian-users which havnt been
replied to (dating back years).
Am I doing something incredably stupid here?
J
ps apologies if this goes in the wrong format its my first time using
thunderbird