We can install PHP5 and the Apache PHP5 module as follows:
yum install php
Restart Apache to take things to effect:
Testing PHP5 / Getting Details About Your PHP5 Installation
Check the output of info.php in Browser (http://10.10.3.100/info.php)
As you see, PHP5 is working, and it’s working through the Apache 2.0 Handler, as shown in the Server API line. If you scroll further down, you will see all modules that are already enabled in PHP5.
Installing PHP is done!
MySQL is not listed there which means we don’t have MySQL support in PHP5 yet.