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

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 :

[root@CentOS57 ~]# vi /var/www/html/info.php

2. Insert this in info.php :


3. Navigate the following URL on your browser :
As an example :

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>