Yeah unfortunately, this was asked a billion times but all the data was lost so you can't search for your answer.
I would first remove all your mysql / apache / php RPMs, then download and install each from source using the instructions in the manual..
First install mysql using a simple
./configure
make
make install
Then refer to the manual on this site for installation instructions for apache/php.