Monday, October 20, 2008

Moodle fixes: loss of admin rights, loss of admin password, loss of admin user name

Somewhere along the way, I messed up the roles that the administrator could do in Moodle. I don't know how I did it, but I saw nothing but my course list when I logged in as administrator because I had no rights. After searching the Moodle Forums, I found this post and its responses about the admin roles problem.

The solution here takes the solution above one step further. It sets roles, identifies the administrator and resets the administrators password, but also goes on to force a reset of the admin password and removal of the reset file. You can download the file: adminfix.php.

Here are the steps you need to take:
  1. Download this file to your machine.
  2. Remove the "_" that follows ".php"
  3. Drop the downloaded file (ftp, etc.) in the root directory of your server.
  4. Direct your browser to http://yourserver/adminfix.php.

Note: The admin password is changed to 'moodle' and all of the roles are reset. If the script reports that it cannot remove itself, the file must be removed manually and then you may proceed to login. If the removal went ok, you are redirected to login screen to reset your password.

Labels: , , ,

0 Comments:

Post a Comment

<< Home