O.K. here's what I did.
Used KDE package manager to install the following packages:
php4 debian package - PHP 4.1.2 (Not the cgi, the php module, which has built-in zlib support).
php4-imap debian package - PHP imap module . It automatically edited /etc/php4/apache/php.ini to load the module.
apache debian package - 1.3.26
I uncommented the LoadModule line in httpd.conf to load the php module.
<?php phpinfo() ?> shows that zlib 1.14 support enabled and zlib foopen support is enabled. It also shows imap support is enabled.
Also, libz.so.1.1.4 is in /usr/lib
There's a symlink to libz.so.1.1.4 named libz.so.1 in /usr/lib
There's also libzvt.so.2.2.10 and a symlink to it named libzvt.so.2
Here's what php was configured with.
Code:
./configure --prefix=/usr
--with-apxs=/usr/bin/apxs
--with-regex=php
--with-config-file-path=/etc/php4/apache
--disable-rpath
--disable-debug
--enable-memory-limit
--enable-calendar
--enable-sysvshm
--enable-track-vars
--enable-trans-sid
--enable-bcmath
--with-bz2
--enable-ctype
--with-db2
--with-icnov
--with-ndbm
--enable-exif
--enable-filepro
--enable-ftp
--with-gettext
--enable-mbstring
--with-pcre-regex=/usr
--enable-shmop
--enable-sockets
--enable-wddx
--with-xml=/usr
--with-expat-dir=/usr
--enable-yp
--with-zlib
--without-pgsql
--disable-static
--with-layout=GNU
--with-curl=shared,/usr
--with-dom=shared,/usr
--with-zlib-dir=/usr
--with-gd=shared,/usr
--with-jpeg-dir=shared,/usr
--with-xpm-dir=shared,/usr/X11R6
--with-png-dir=shared,/usr
--with-freetype-dir=shared,/usr
--with-imap=shared,/usr
--with-ldap=shared,/usr
--with-mcal=shared,/usr
--with-mhash=shared,/usr
--with-mm
--with-mysql=shared,/usr
--with-unixODBC=shared,/usr
--with-recoded=shared,/usr
--enable-xslt
--with-xslt-sablot=shared,/usr
--with-snmp=shared
--enabled-ucd-snmp-hack
--with-sybase-ct=shared,/usr
--with-ttf=shared,/usr
--with-t1lib=shared,/usr Installing the packages works as I want it to.
Now the admin should be able to do the same type of thing on RedHat: right?
If not, do you think that should be enough info to build php? I didn't try to build myself.
I'd still like to know if the php module only works with a certain version of apache or not?
Also, have and links to newer RPM packages for php, apache, etc?
Can Redhat handle deb packages like debian can with alien?
Thanks