PHP 5 - Apache module won't load

[email protected] ("Fabian Hore")
Newsgroups php.install
Message-ID <[email protected]>
Hi.
Any help with the following PHP module problem is greatly appreciated.
Environment; Mac OS 10.2 / PHP 5.0.2 / Apache 2.0.52


--------
I have just made PHP5 for the first time on my Mac OS X dev server.
- works fine on its own.

I have also just made Apache 2
- works fine without PHP module.

However; Loading the php5_module into the Apache config throws an error and
Apache will not start!

This is the standard httpd.conf line automatically added by apxs2;
 --------
 LoadModule php5_module libexec/apache2/libphp5.so
 --------

Starting Apache or running configtest;
shows SYNTAX OK and then shows the following error.
 --------
 $ apachectl configtest
 Syntax OK
 dyld: /usr/local/apache2/sbin/httpd Undefined symbols:
 _crc32
 _deflate
 _deflateEnd
 _deflateInit2_
 _gzclose
 _gzdopen
 _gzopen
 _gzread
 _gzrewind
 _gzwrite
 ./apachectl: line 100:   527 Trace/BPT trap          $HTTPD -t
 --------



Looks like the error might be to do with zlib [?]
My zlib vesion is 1.2.1 and compiled into PHP5 just fine.

I have read the warnings re Apache2/PHP, but it should still start up!

Any ideas greatfully receieved.




My configs below;


 # ----------------------------
 # APACHE 2.0.52 CONFIGURATION.
 #
 $ ./configure \
   --enable-layout=Custom \
   --with-mpm=prefork  \
   --with-ssl=/usr/src/ssl/openssl-0.9.7e \
   --enable-ssl=static \
   --enable-mods-shared=most


 # ----------------------------- 
 # PHP 5.0.2 CONFIGURATION
 #
 $ ./configure \
   --prefix=/usr/local/php5 \
   --with-xml --with-libxml --with-libxml-dir=/usr/local/php \
   --with-mysql=/usr/local/mysql \
   --with-zlib --with-zlib-dir=/usr/lib \
   --enable-ftp \
   --with-apxs2=/usr/local/apache2/sbin/apxs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.