Download the source for php and apache.
Build php with config options:
Code:
'./configure' \
'--with-apache=/usr/src/apache_1.3.19' \
'--enable-track-vars' \
'--enable-shared'
Use the correct absolute or a relative path to your apache. Run make and then make install. When complete go to the apache dir and configure apache with the following:
Code:
./configure \
"--enable-shared=max" \
"--enable-module=rewrite" \
"--enable-module=most" \
"--with-layout=Apache" \
"--activate-module=src/modules/php4/libphp4.a" \
"--activate-module=src/modules/standard/mod_so.o"
This will staticly link in the php library into the httpd executable. Run make, then make install and it should be done.
Both the php and apache come with good build and install documentation, so I suggest that you read it. I may have left some details out.
Gary