Installing and upgrading help

Problems installing moodle in web server

Picture of Richard Jones
Re: Problems installing moodle in web server
Particularly helpful MoodlersPlugin developersTesters

Looks like you have created the database and the user, hopefully you gave this user (u557442447_242a password which you remember also.  You can use the bottom dialog to reset the password for this user (242) if neccessary. 

Now, you have to find the file called config-dist.php in your moodle folder. make a copy of that file called config.php.  Edit config.php and supply the information needed - database type (mysqli), username, password (from the screen above).

$CFG->dbtype = 'mysqli'; // 'pgsql', 'mysqli', 'mssql', 'sqlsrv' or 'oci'
$CFG->dblibrary = 'native'; // 'native' only at the moment  do not change
$CFG->dbhost = 'localhost'; // eg 'localhost' or '' or IP do not change
$CFG->dbname = 'u557442447_moodle'; // database name, eg moodle 
$CFG->dbuser = 'u557442447_242'; // your database username
$CFG->dbpass = 'password'; // your database user password - 242's password) 
$CFG->prefix = 'mdl_'; // prefix to use for all table names do not change

While you are there, also change the lines

$CFG->wwwroot = '';  // your website address with /moodle on the end


$CFG->dataroot = '/home/example/moodledata';  // probably '/home/u557442447/moodledata'

to the website and location of datafiles on your system.  

You need to create the moodledata folder on your local installation - you can do it at the same level as public_html.  The web root is your public_html folder.  

Be careful with the quotes and the semi-colons.

If these instructions are still not understandable, perhaps consider asking someone local who has some knowledge of websites and databases to help you with it.

Good luck.


Average of ratings: -