Project

General

Profile

Actions

Check php information » History » Revision 14

« Previous | Revision 14/17 (diff) | Next »
Amber Herold, 04/30/2012 03:19 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).

sudo nano /var/www/html/info.php

Copy and paste the following code into info.php:

<?php
phpinfo();
?>

Restrict access to your info.php file.

sudo chmod 444 /var/www/html/info.php

Visit this page at http://HOST.INSTITUTE.EDU/info.php or http://localhost/info.php

You will see comprehensive tables of php and apache information, including the location of the additional .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. This information will be used while installing components of the Web Server.


< Install Apache Web Server | Download Appion and Leginon Files >


Updated by Amber Herold over 12 years ago · 14 revisions