OK, I decided to try compiling PHP5 as a static Apache module and I followed the install instructions but got the attached error.
and there I get the error. Now I'm reading over the documentation again I noticed I missed a make install line This would probably fix the error but I'm going to post this anyway in case it doesn't
./configure --with-mysql --with-apache2=../apache
./configure --prefix=/root/apache --activate-module=src/modules/php4/libphp4.a