Thank you for your advice. Of course I have Web Sharing enabled via the System Preferences. In spite of this, when I try to load the default Apache page using a web browser I get a "Failed to connect" error. That is why I tried to check my apachectl settings, giving me the above error. Is there anything else you can recommend?
I get the following when I run that:
Usage: /usr/sbin/httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-v] [-V] [-h] [-l] [-L] [-t] [-S]
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
-S : a synonym for -t -D DUMP_VHOSTS
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t : run syntax check for config files
So it doesn't like the command. If I run "#sudo /usr/sbin/apachectl -t", I get the error listed in my initial posting.
Here's what I get:
2/23/09 11:19:06 AM org.apache.httpd httpd: Syntax error on line 75 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/mod_deflate.so into server: dlopen(/usr/libexec/apache2/mod_deflate.so, 10): Library not loaded: /usr/lib/libz.1.dylib\n Referenced from: /usr/libexec/apache2/mod_deflate.so\n Reason: no suitable image found. Did find:\n\t/usr/lib/libz.1.dylib: no matching architecture in universal wrapper\n\t/usr/lib/libz.1.dylib: no matching architecture in universal wrapper
Same as above. It is also contantly trying to "respawn" the apache server, a la:
2/23/09 11:19:36 AM com.apple.launchd (org.apache.httpd) Throttling respawn: Will start in 10 seconds
It just keeps doing this over and over, with my antivirus software trying to keep up with the changes.
2/23/09 11:20:24 AM com.apple.launchd (com.mcafee.virusscan.VShieldEPOInterface) Throttling respawn: Will start in 10 seconds
Does this help?
Path:~$ls -l /usr/libexec/apache2/mod_deflate.so
-rwxr-xr-x 1 root wheel 129616 Sep 19 08:05 /usr/libexec/apache2/mod_deflate.so
Path:~$sudo /usr/sbin/apachectl -t
I suspect your mod_deflate.so is somehow corrupt, but the Apache start done by toggling Web Sharing should also be failing.