When installing Apache1.3.19 with PHP4.0.5 and MySQL 3.23.38 on RedHat 7.1, I do these steps:
For MySQL:
I copied the binary file to /home/install and made a link to /usr/local as in : ln -s /home/install/mysql-3.23.38-pc-linux-gnu-i686 /usr/local/mysql
For Aapche:
./configure --with-layout=RedHat --enable-module=most --enable-shared=max --disable-module=auth_dbm --enable-module=auth_db --without-confadjust
For PHP:
./configure --with-mysql=/usr/local/mysql --enable-trans-sid --enable-memory-limit=yes --with-config-file-path=/etc/httpd/conf --with-apxs=/usr/sbin/apxs --enable-track-vars --with-system-regex --disable-pear --disable-debug
When I run "apachectl configtest", I get this error:
Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/apache/libphp4.so: undefined symbol: uncompress