Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 46808

Re: Problems installing moodle in web server

$
0
0
by Richard Jones.  

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 'db.isp.com' 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 userpassword - 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 = 'http://example.com/moodle';  // your website address with /moodle on the end

and

$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.

Richard


Viewing all articles
Browse latest Browse all 46808

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>