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 *

A world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websites

Built on the best available technologies combined with Google Cloud for strong redundancy and application availability. Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo.


* up to 30 days money back guarantee