Installing PHP5
We can install PHP5 and the Apache PHP5 module as follows:
[bash]yum install php[/bash]
Restart Apache to take things to effect:
[bash]/etc/init.d/httpd restart[/bash]
Testing PHP5 / Getting Details About Your PHP5 Installation
[bash]vi /var/www/html/info.php[/bash]
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.
Leave a Reply