Hi feifeifei
i dont really understand what is the problem ?
rpm -qa | grep php
gives you all the rpm packages that contain the "php" string in it..
for more information about rpm command use:
man rpm ...(rtfm)
did you tested mysql on your server at all ?
if so give more information about that ....
yahel