Hi,
I definitively do not think "what an idiot" 😃
Installing php can sometimes be a very frustrating task.
To check the existing installation:
1)
do a rpm --query --all |grep php
you'll see if there is a php package installed or not.
2) create a phpinfo() script. On top of the output you can see how php has been compiled (configure options).
If there is no rpm package you might need to recompile stuff yourself.
Run configure in the source directory with exactly the same configure options shown on the phpinfo page.
You might need to install additional packages for some of the features supported by php (some ???-develop packages).
After running make you might either execute make install or if you don't want to mess up things copy the created shared library (or libraries if extensions have been compiled as shared) to the directory/directories where the original libraries reside.
It's very important to make a backup prior to installing stuff to be able to switch back to the original installation.
Hope this helps you a little bit 🙂