Please refer to the document in the attachment for installing PHP on Centos.

Hope it helps you.