Pues .. fijate en esos manuales y empiza por la parte q diga:
"compilar PHP ..." (./configure ... make .... )
Ahi veras q te dicen q tienes q usar el parámetro:
7. cd ../php-x.x.x
8. ./configure
--with-mysql --with-apache=../apache_1.3.x --enable-track-vars
9. make
10. make install
(esto está extraido del manual de PHP oficial:
http://www.php.net/manual/en/install.unix.php .. y yo apenas se nada de Linux) ...
Un saludo,