Apache refuses to start (due to Parallels?) and virtual hosts
problem
Markus Ruggiero
markus at ruggiero.ch
Thu Nov 8 10:22:07 PST 2007
I have a weird problem with Apache2, virtual hosts, Leopard and
Parallel (and maybe other things)
Environment: Leopard, upgraded from Tiger with option "Archive and
Install, transfer user and network settings" on MacBook Pro with 4G of
RAM
After reboot of Leopard I can do http://localhost and everything
works. However the upgrade process did not reestablish the virtual
host config I had on Tiger. OK, no problem, I added the hosts to /etc/
hosts and enabled virtual hosts in /etc/apache2/httpd.config and /etc/
apache2/extras/httpd-vhosts.config). Unfortunately none of my hosts
are found. However I can prove that the config files are read because
the first virtual host has a directory that lies outside of the
default /Library/WebServer/Documents - and these files are being
served. No matter what hostname I enter in Safari, it is always that
first-in-the-file host that is serving. This is clearly an indication
that Apache does not find a virtual host corresponding to the used
host name. No problem, must be some typo so I started playing with the
vhosts file and restarting Apache (both with the Sharing Prefs pane as
well als from the commandline with apachectl). Now in the System.log I
see weird entries for each restart that some Key to lanch demon is
not known (see below). I had to interrupt my trying to do some "real"
work. Therefore I booted up WindowsXP within Parallels (network set to
direct connect mode to ethernet adaptor). Later I came back to Apache
and all of a sudden Apache refused to start at all (again see copy
from log further down). Shuting down Parallels does not help, only a
reboot cleared things. Apache starts and restarts somewhat cleanly but
again refuses to start after Parallels has run. Oh, and I still don't
know why my virtual hosts don't work.
Anyone knows what is going on here? How can I debug the Apache startup
failure? What is launch demon complaining about? And how can I debug
virtual hosts?
Here is one set of log entries for an Apache startup. The only
difference between a start and a failed start are the two lines at the
end.
Nov 8 08:42:21 vmtellswin1 kernel[0]: IOMemoryDescriptor: attempt to
create 32b virtual in 64b task, use ::withAddressRange()
Nov 8 08:42:21 vmtellswin1 kernel[0]: Backtrace 0x426b0b 0x4269fb
0x426446 0x6d4b2a 0x6d6ea1 0x6d75c3 0x6d8129
Nov 8 08:42:21 vmtellswin1 kernel[0]: Kernel loadable modules in
backtrace (with dependencies):
Nov 8 08:42:21 vmtellswin1 kernel[0]:
at.obdev.nke.LittleSnitch(2.0.21)@0x6d1000->0x6f1fff
Nov 8 08:42:21 vmtellswin1 kernel[0]: m7e0f6384m0ca6b462 -536870211
Nov 8 08:42:21 vmtellswin1 kernel[0]: m15b71329 -536870211
Nov 8 08:42:21 vmtellswin1 com.apple.launchd[1]
(org.apache.httpd[624]): Exited with exit code: 1
Nov 8 08:42:21 vmtellswin1 com.apple.launchd[1] (org.apache.httpd):
Throttling respawn: Will start in 10 seconds
Thanks for any help
---markus---
Markus Ruggiero
rucotec consulting and technologies email mailto:markus.ruggiero at rucotec.ch
rucotec GmbH web http://www.rucotec.ch
Steinentorstrasse 8
4051 Basel Mobile +41 (0)79 508 4701
Switzerland Phone/Fax +41 (0)61 271 4990
More information about the MacOSX-admin
mailing list