Moodle will detect that configuration is necessary and
will lead you through some screens to help you create
a new configuration file called config.php.
After the language selection screen, Moodle will detect
whether PHP is set up correctly on the server (Fig. 83).
If any settings do not Pass this check, make sure you
correct whatever feature on the server that has not
passed before proceeding with installation. See
General Web Server Settings section for suggestions.
The next screen in Moodle's installer (Fig. 84) will ask
you about the location of Moodle on your server.
You will be asked for the absolute Web address for
your site, and for the name of the directory where
Moodle is located. Make sure you enter the server
name. Finally, enter the server path for where the
moodledata directory is located (see Step 2).
Now installer will ask for your database connection
information (Fig. 85), starting with the Type of
database (MySQL or Postgre SQL) used. This is often
a point where a problem may occur if you are not
familiar with these properties. In most cases the
Host Server name will be simply localhost . Some
ISP's will use a specific name or IP address for their
database server, in which case you will enter that
name or number (e.g. mysql.ispname.net).
Now add the name of your Database as it was set up.
This is typically prefaced with the name of your
Moodle server, an underscore, and then the name of
the database (Fig. 85). Do the same when you add the
User name assigned to the database. Note that for
security reasons you should create a unique user
name and password for Moodle's database. Finally,
add just the Password (no underscore) that was
assigned to the database. By default Moodle uses a
table prefix of mdl . Unless you are a database admin
or know what you are doing, do not change this value.
At the end of the Installation process Moodle will try
and write the config.php file into the right location.
If Moodle is unable to do this (Fig. 86), which may be
the case because of permission settings, you will be
given an option to download the file so that you can
then manually upload config.php into the main Moodle
directory on the server.
Add configuration settings the installer creates to the
config dist.php file in the Moodle folder. Copy and
paste to the top portion of the file as needed. Make
sure there are no spaces at the bottom of this file
after ?>. Finally, rename this file config.php