Hi,
I have a moodle installation with more and less 900 users.
I Wanted to copy all moodle to another folder, to start working for the next year, and i made this:
1 - Copy moodle and moodledata to another folder
2 - Create another DB and import all the tables from the other one.
3 - Changed the config.php
After that it's all ok, and moodle appear in the new subdomain.
But the problem is that i can't login, appears that all the passwords were changed.
So i modified the MD5 from admin and i could enter, but i can't ask to my 900 users to change the password.
Someone knows the problem of that?
Thanks!
Check if you were using password salt on your previous config.php. If yes, use the previous salt on your new config. http://docs.moodle.org/en/Password_salting (you will nedd to re-set the admin passowrd again).
Thank you Andrea Bicciolo.
That works.
So to do that, when you change the config.php, you can't forget to change the $CFG->passwordsaltmain.
So,
Before:
$CFG->passwordsaltmain = '.....Password......';
After:
$CFG->passwordsaltalt1 = '.....Old Password......';
$CFG->passwordsaltmain = '.....New Password......';
Best regards,
Daniel Cruz
That works.
So to do that, when you change the config.php, you can't forget to change the $CFG->passwordsaltmain.
So,
Before:
$CFG->passwordsaltmain = '.....Password......';
After:
$CFG->passwordsaltalt1 = '.....Old Password......';
$CFG->passwordsaltmain = '.....New Password......';
Best regards,
Daniel Cruz