I am not going to sit here and say that I am a PHP expert. But I have compiled a PHP4, several, several times. And at one point I wuld have been so bold as to say that I could do it in my sleep, I admit I am a little rusty, but this can't be my fault.
So, I configured PHP5 the same way as I did PHP4, same options and extensions. But I ended up getting the following error.
-------------------------------------------------------------------------------------------
Syntax error on line 234 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
-------------------------------------------------------------------------------------------
This appears to be a somewhat common problem.
I tried several things to fix it, changing the file permissions, directory permissions, ownership. None of which seemed to work.
Then I hit Google and found this answer.
--------------------------------------------------------------------------------------------
chcon -c -v -R -u system_u -r object_r -t lib_t modules/libphp5.so
--------------------------------------------------------------------------------------------
That definitely helped.
It made the error go away. However, the Apache config had this AddModule line in it from the PHP5 install that was a problem. Commented that out and then Apache restarted.
All good, right?
Nope, that would be why this post isn't titled "Pardon the Dust - Success!" You guessed it, a problem.
It would appear that for whatever reason, PHP5 can't access the file system? at least that is some of what I was able to garner. I am going to poke around and see if there is something I was supposed to add to the configure line that I didn't.
So, please bear with, this is going to take longer than 20 minutes, maybe I downloaded a dev version of PHP5 by mistake.
Laterz