Project

General

Profile

Check php information » History » Revision 16

Revision 15 (Amber Herold, 12/16/2013 01:04 PM) → Revision 16/17 (Amber Herold, 12/16/2013 03:27 PM)

h1. 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). 

 <pre> 
 sudo nano /var/www/html/info.php 
 </pre> 

 Copy and paste the following code into info.php: 

 <pre> 
 <?php 
 phpinfo(); 
 ?> 
 </pre> 

 Restrict access to your info.php file. 

 <pre> 
 sudo chmod 444 /var/www/html/info.php 
 </pre> 

 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. 

 !http://emg.nysbc.org/software/leginon/images/images/phpini.png! 


 ______ 

 [[Start NFS|< Start NFS]] | [[Install SSH module for PHP webserver|Install SSH module for PHP [[Download Appion and Leginon Files|Download Appion and Leginon Files >]] 

 ______