Compile PHP4 into Apache

I have a server running cpanel and apache, but don't have php4. I want to compile php4 for apache, but I have some non-standard mods for apache, such as mod_bwlimited, mod_frontpage, mod_log_bytes.

How do I compile php4 and not have to mess with those other mods? I've done this with no success:

[#]cd /backup/stuff/php-4.1.1/
[#]./configure --prefix=/usr/local/lib/php --with-config-file-path=/usr/local/lib --with-mysql --with-apache=../apache_1.3.23 --enable-track-vars --enable-debugger --enable-magic-quotes
[#]make
[#]make install
[#]cd ../apache_1.3.23/
[#]./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.so --add-module=src/modules/standard/mod_so.c --enable-module=rewrite --enable-shared=mod_ssl.so --enable-shared=mod_frontpage.so --enable-shared=mod_log_bytes.so --enable-shared=mod_bwlimited.so
[#]make
[#]make install
[#]/usr/local/apache/ctl configtest

I get the following error:
API module structure `bwlimited_module' in file /usr/local/apache/libexec/mod_bwlimited.so is garbled - perhaps this is not an Apache module DSO?


HELP???

 

 

 

 

Top