PHP info: Difference between revisions
From MoodleDocs
No edit summary |
Helen Foster (talk | contribs) (category) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
The phpinfo display contains information about the configuration of your PHP installation. This is useful for checking: | The phpinfo display contains information about the configuration of your PHP installation. This is useful for checking: | ||
* that your PHP installation meets Moodle's system requirements. | * that your PHP installation meets Moodle's system requirements. | ||
* the values that are currently applied to your server's PHP install, e.g. File upload limits | * the values that are currently applied to your server's PHP install, e.g. File upload limits | ||
* that you have installed the required modules needed for Moodle to work, e.g. the LDAP module for LDAP authentication. | * that you have installed the required modules needed for Moodle to work, e.g. the LDAP module for LDAP authentication. | ||
== Displaying phpinfo in Moodle== | == Displaying phpinfo in Moodle== | ||
An administrator can find PHP info in ''Settings > Site administration > Server > PHP info''. | |||
== Displaying phpinfo outside of Moodle == | == Displaying phpinfo outside of Moodle == | ||
Line 29: | Line 23: | ||
==Sample output== | ==Sample output== | ||
This is a sample output displayed. | This is a sample output displayed. | ||
<table border="0" cellpadding="3" width="600"> | <table border="0" cellpadding="3" width="600"> | ||
Line 58: | Line 51: | ||
==See also== | ==See also== | ||
* [http://www.php.net/ini.core PHP reference] describing the core PHP.INI directives | * [http://www.php.net/ini.core PHP reference] describing the core PHP.INI directives | ||
* [[PHP FAQ]] | * [[:dev:PHP FAQ|PHP FAQ]] in the developer docs | ||
[[Category:Site administration]] | |||
[[es:phpinfo]] | [[es:phpinfo]] | ||
Line 65: | Line 60: | ||
[[pl:phpinfo]] | [[pl:phpinfo]] | ||
[[ja:phpinfo]] | [[ja:phpinfo]] | ||
Latest revision as of 17:26, 2 November 2011
The phpinfo display contains information about the configuration of your PHP installation. This is useful for checking:
- that your PHP installation meets Moodle's system requirements.
- the values that are currently applied to your server's PHP install, e.g. File upload limits
- that you have installed the required modules needed for Moodle to work, e.g. the LDAP module for LDAP authentication.
Displaying phpinfo in Moodle
An administrator can find PHP info in Settings > Site administration > Server > PHP info.
Displaying phpinfo outside of Moodle
To view the phpinfo information:
- Create a file called info.php using your text editor, containing this single line:
<?php phpinfo(); ?>
- Save this file as info.php
- Upload this file into the root web accessible folder on your server.
- Now open this file in your browser. For example http://<server-name>/info.php.
Sample output
This is a sample output displayed.
=PHP Version 4.3.3= |
System | Windows NT MYLAPTOP0106 5.1 build 2600 |
Build Date | Aug 24 2003 22:01:16 |
Server API | Apache |
Virtual Directory Support | enabled |
Configuration File (php.ini) Path | C:\WINDOWS\php.ini |
PHP API | 20020918 |
PHP Extension | 20020429 |
Zend Extension | 20021010 |
Debug Build | no |
Thread Safety | enabled |
Registered PHP Streams | php, http, ftp, compress.zlib |
...
This output goes on for about 5 pages.
See also
- PHP reference describing the core PHP.INI directives
- PHP FAQ in the developer docs