Hi there, hoping someone can help!
Our Moodle server had hardware problems...I'm reinstalling from scratch, including reinstalling Ubuntu Server 12.04.1 LTS 64-bit onto a new hard disk.
I have a good backup of the moodle database, the moodle code directory, and the moodledata directory from before things went haywire.
I thought I'd take the opportunity to upgrade Moodle to the latest 2.4.1 but am having issues and am hoping someone can clarify the restore process.
1) After fresh install of Ubuntu + LAMP, used GIT to download Moodle 2.4.1 and successfully installed Moodle using the web browser-based script. I installed using the same directory paths and database settings/usernames as before. The default, black & white and bare bones Moodle home page appeared. I entered a new Moodle admin password and was good.
2) Next, I imported the database I backed up earlier, as well as restored the original moodledata folder.
3) Now, when I went back to our moodle login page, local admin can't login. I read elsewhere here to check the config.php and copy over the $CFG->passwordsaltmain = line. I did that, but I still can't login!
What am I doing wrong? How can I reset this so I can get back on?
If all else fails, can I restore the database, moodledata, and orignal moodle code folders? config.php is the only file i copied over from the old moodle code directory, as I was hoping to keep the newer version of Moodle installed (the previous version being 2.4)
Is it necessary to run the install script to properly setup Moodle, or should restoring the moodle directory, database, and moodledata directory suffice?
I'm wondering if my problem is trying to do a restore/upgrade at the same time. That is, new Moodle install + old Moodledata + old database? Should I be restoring the original three components, then try the upgrade?
Any help would be greatly appreciated! Thanks in advance.
Rick