apache2:
./configure --prefix=/usr/local/apache2 --enable-module=most --enable-shared=max --enable-so --enable-shared=ssl
make
make install
php:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --disable-debug --with-xml --with-mysql=/usr/local/mysql-5.0.4 --enable-track-vars --with-ldap-sasl --with-ldap
make
make install
cp php.ini-dist /usr/local/apache2/conf/php.ini
vi /usr/local/apache2/conf/httpd.conf
/usr/local/apache2/bin/httpd -k start