Yes, this is not a problem, first. / configure and build php using:
--with-apache=../path/to/apache-2
then ./configure apache with:
--activate-module=src/modules/php5/libmodphp5.a \
From http://php.net/manual/en/configure.about.php :
--with-apache[=DIR]
Build a static Apache module. DIR is the top-level Apache build
directory, defaults to /usr/local/apache.
source
share