Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

PHP info: diferència entre les revisions

De MoodleDocs
Salta a:navegació, cerca
Cap resum de modificació
Línia 3: Línia 3:
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
* 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.


Línia 8: Línia 9:
__TOC__
__TOC__


== Displaying phpinfo ==
== Displaying phpinfo in Moodle==


To view the phpinfo information:
To view the phpinfo information:
* In Moodle version 1.7 or greater, choose Site Administration -> Server -> PHP info.
* In Moodle version 1.7 or greater, choose 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:
* Create a file called info.php using your text editor, containing this single line:


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


* Upload this file into your moodle folder on your PC or server.
* Save this file as info.php
* Now open this file in your browser. For example <nowiki>http://127.0.0.1/info.php</nowiki>.
* Upload this file into the root web accessible folder on your server.
* Now open this file in your browser. For example <nowiki>http://<server-name>/info.php</nowiki>.


==Sample output==
==Sample output==

Revisió del 18:21, 8 març 2010

Location: Administration > Server > PHP info

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.

Table of contents

Displaying phpinfo in Moodle

To view the phpinfo information:

  • In Moodle version 1.7 or greater, choose 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.


http://www.php.net

=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