Apple Event: May 7th at 7 am PT

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 25, 2009 6:37 AM in response to Michael Price3

Hi Mike--

Michael Price3 wrote:
I tried what you suggested, but that didn't fix the problem.


Sorry, I should have read the entries from your error log closer. It's not actually a problem with the mod_deflate.so file, but in a file that links to it.

What do you get as the result of this?:

<pre class="command">ls -l /usr/lib/libz.*</pre>

I get this:

lrwxr-xr-x 1 root wheel 12 Nov 18 08:52 /usr/lib/libz.1.1.3.dylib -> libz.1.dylib
-rwxr-xr-x 1 root wheel 346144 Sep 23 2007 /usr/lib/libz.1.2.3.dylib
lrwxr-xr-x 1 root wheel 16 Nov 18 08:52 /usr/lib/libz.1.dylib -> libz.1.2.3.dylib
lrwxr-xr-x 1 root wheel 16 Nov 18 08:52 /usr/lib/libz.dylib -> libz.1.2.3.dylib


Since all the dylibs are links to libz.1.2.3.dylib, I checked mine and it's definitely a four-way fat binary:

<pre class="command">file /usr/lib/libz.1.2.3.dylib</pre>

/usr/lib/libz.1.2.3.dylib: Mach-O universal binary with 4 architectures
/usr/lib/libz.1.2.3.dylib (for architecture ppc7400): Mach-O dynamically linked shared library ppc
/usr/lib/libz.1.2.3.dylib (for architecture ppc64): Mach-O 64-bit dynamically linked shared library ppc64
/usr/lib/libz.1.2.3.dylib (for architecture i386): Mach-O dynamically linked shared library i386
/usr/lib/libz.1.2.3.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64


This, unfortunately doesn't appear to have been updated since the original release of 10.5 (though I haven't installed the latest security update, so I don't know if it's updated there).

One other thing to try would be to see if you can extract it off your original installation DVD using Pacifist. On the other hand, that might just be the first of a number of libraries that are missing pieces and an OS re-install might still be necessary...

charlie

Feb 25, 2009 7:01 AM in response to Charles Minow

Charlie,

Here's what I get from #ls -l /usr/lib/libz.*:

lrwxr-xr-x 1 root wheel 12 Sep 10 10:38 /usr/lib/libz.1.1.3.dylib -> libz.1.dylib
-rwxr-xr-x 1 msprice 501 174480 May 22 2006 /usr/lib/libz.1.2.3.dylib
lrwxr-xr-x 1 root wheel 16 Sep 10 10:38 /usr/lib/libz.1.dylib -> libz.1.2.3.dylib
lrwxr-xr-x 1 root wheel 16 Sep 10 10:38 /usr/lib/libz.dylib -> libz.1.2.3.dylib

What I'll probably do is wait until Snow Leopard comes out, and then hope that install fixes the issue. Thanks for all your help; hopefully others that followed my path will at least see this thread and know what happened.

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.