How to Get the Details About Your PHP Installation on CentOS 5/CentOS 6/RHEL 5/RHEL 6

Share this Article :

In this post, i will show on how to get the details about your PHP installation. This steps has been tested on CentOS 5.7, but it may working on CentOS 5.1, CentOS 5.2, CentOS 5.4, CentOS 5.5, CentOS 5.6, Red Hat Enterprise Linux 5 (RHEL 5) and Red Hat Enterprise Linux 6 (RHEL 6). Assumed that the document root of the default web site on apache httpd server is /var/www/html. Follow the following steps :

1. Create a small PHP file (info.php) in that document root directory :

[[email protected] ~]# vi /var/www/html/info.php

2. Insert this in info.php :

<?php
phpinfo();
?>

3. Navigate the following URL on your browser :
As an example :
http://192.168.1.45/info.php

Leave a Reply