Skip to content

Instantly share code, notes, and snippets.

@jmmeacham
Created December 13, 2021 20:29
Show Gist options
  • Save jmmeacham/90cb763642969e0feee389f60bd5d64f to your computer and use it in GitHub Desktop.
Save jmmeacham/90cb763642969e0feee389f60bd5d64f to your computer and use it in GitHub Desktop.
config.php
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodledb';
$CFG->dbuser = 'moodleuser';
$CFG->dbpass = 'rrevif123!';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => '',
'dbsocket' => '',
'dbcollation' => 'utf8mb4_unicode_ci',
);
$CFG->wwwroot = 'http://54.187.27.32/moodle';
$CFG->dataroot = '/var/moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 0777;
require_once(__DIR__ . '/lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment