Skip to main content


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';

That will require the password to be a hash so to generate a hash:

Changing password via CLI using PHP admin scripts:**

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