Skip to main content

Moodle

Disabling sending emails

Edit config.php on Moodle's root directory:

$CFG->noemailever = true;

Reseting Admin Password

Changing password via DB directly:

select * from mdl_user where username= 'x';
update mdl_user set password = 'x' where username = 'x';
tip

That will require the password to be a hash so to generate a hash: http://www.md5hashgenerator.com/

Changing password via CLI using PHP admin scripts:**

sudo -u www-data php admin/cli/reset_password.php