Part 7 - Test the PHP configuration

  1. Create a PHPInfo.php test page in the folder where you installed Moodle. This is a simple .php file that contains just the following code:

    <?php
     PHPInfo();
    ?>

    Note

    The PHPInfo() function returns configuration information, in HTML form, about the PHP environment on the server. This includes information about PHP compilation options and extensions, the PHP version, server information and environment, the PHP environment, operating system version information, paths, master and local values of configuration options, HTTP headers, and the PHP License. Because every system is setup differently, PHPInfo() is used to check configuration settings and the available predefined variables on the system.

  2. Load the PHPInfo.php page in your web browser: http://yourmoodlesite.com/PHPInfo.php. If the PHP configuration has been done properly the output of the PHPInfo() function will be displayed. This is usually a good indicator that PHP has been setup correctly and is working.

When you're happy that your PHP installation is setup properly it's time to install Moodle.


Back | Home | Next
Contact