Project

General

Profile

Actions

Check php information » History » Revision 4

« Previous | Revision 4/17 (diff) | Next »
Neil Voss, 05/12/2010 02:57 PM


Check php information

Create the following info.php in your web server document root directory (/var/www/html on CentOS. /srv/www/htdocs on SuSE. You can find its location in httpd.conf mentioned above under the line starting DocumentRoot).

<?php
phpinfo();
?>
sudo echo "<?php  phpinfo();  ?>" > /var/www/html/info.php

Visit this page at http://yourhost/info.php

You will see comprehensive tables of php and apache information, including the location of the addition .ini files, extension, include path, and what extension is enabled.

Here is an example screen shot of the part of the info.php page that tells you where php.ini and other configuration files are.


< Install Apache Web Server | Install the MRC PHP Extension >


Updated by Neil Voss over 14 years ago · 4 revisions