How to configure moodle configuration file.
$CFG->dblibrary = 'native';
$CFG->dbhost =
'11.0.1.94';
$CFG->dbname =
'dbname';
$CFG->dbuser =
'dbusername';
$CFG->dbpass =
'dbpassword';
$CFG->prefix =
'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbsocket' => 0,
);
$CFG->wwwroot =
'http://mysite.leeway.org';
$CFG->dirroot =
'/usr/share/nginx/html/My_Proj/My_branch';
// moodle file dir root
$CFG->dataroot =
'/usr/share/nginx/html/My_Proj/moodledata/';
moodle data root
$CFG->admin =
'admin';
$CFG->localcachedir = '/usr/share/nginx/html/My_Proj/My_branch/cache_data';
$CFG->directorypermissions = 0777;
$CFG->passwordsaltmain =
'1MlzkL&C](u,PZsJPIM8s&B,/i';
$CFG->showuseridentity = 'username';
require_once(dirname(__FILE__) . '/lib/setup.php');