Check php information » History » Version 6
Neil Voss, 05/12/2010 02:58 PM
| 1 | 1 | Amber Herold | h1. Check php information |
|---|---|---|---|
| 2 | |||
| 3 | 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). |
||
| 4 | |||
| 5 | <pre> |
||
| 6 | <?php |
||
| 7 | phpinfo(); |
||
| 8 | ?> |
||
| 9 | </pre> |
||
| 10 | |||
| 11 | 4 | Neil Voss | <pre> |
| 12 | 5 | Neil Voss | sudo touch /var/www/html/info.php |
| 13 | 6 | Neil Voss | sudo chmod 666 /var/www/html/info.php |
| 14 | echo "<?php phpinfo(); ?>" > /var/www/html/info.php |
||
| 15 | 4 | Neil Voss | </pre> |
| 16 | |||
| 17 | 1 | Amber Herold | Visit this page at http://yourhost/info.php |
| 18 | |||
| 19 | 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. |
||
| 20 | |||
| 21 | 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. |
||
| 22 | |||
| 23 | !http://emg.nysbc.org/software/leginon/images/images/phpini.png! |
||
| 24 | 2 | Amber Herold | |
| 25 | |||
| 26 | ______ |
||
| 27 | |||
| 28 | [[Install Apache Web Server|< Install Apache Web Server]] | [[Install the MRC PHP Extension|Install the MRC PHP Extension >]] |
||
| 29 | 3 | Amber Herold | |
| 30 | ______ |