Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Apache web server not working...PLEASE HELP!!

I'm trying to get apache working on my Mac so I can host a website that will access a local MySQL database. I've researched this for a while. When I run the command:

#sudo /usr/sbin/apachectl -t

I get the following output:

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\n\t/usr/lib/libz.1.dylib: no matching architecture in universal wrapper

How do I fix this issue? I would really like to get this running without having to resort to a virtual Linux box or using XAMMP if possible. Thanks for any help you can provide!

Mike

Mac Pro, Mac OS X (10.5.6)

Posted on Feb 23, 2009 7:36 AM

Reply
24 replies

Feb 23, 2009 8:10 AM in response to doug pennington

I get the following when I run that:

Usage: /usr/sbin/httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
-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.

Mike

Feb 23, 2009 8:21 AM in response to xnav

Here's what I get:

2/23/09 11:19:06 AM org.apache.httpd[1854] 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[1] (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[1] (com.mcafee.virusscan.VShieldEPOInterface) Throttling respawn: Will start in 10 seconds

Does this help?

Mike

Apache web server not working...PLEASE HELP!!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.