move moodle to new box

move moodle to new box

by Thomas Haynes -
Number of replies: 5

Greetings...

I need to move moodle to a different server, and I would like to move everything and just give users the new address.

I suspect I can backup/restore my moodle directory, my data directory, and then use webmin to backup/restore the moodle database in MySQL.

Is there some important part of the equation that I am missing here?

Where will I need to change the server name in config files?

Thanks...   Tom

Average of ratings: -
In reply to Thomas Haynes

Re: move moodle to new box

by Paul Shew -
I just did that yesterday, and it was relatively problem-free. I was switching my domain as well, and that created some problems until my new DNS fully propogated. (I had to switch because of an unreliable webhost. angry )

Here's how I would do it if I were you:
  • copy your Moodle directory to the new server
  • copy your Moodle_data directory
  • edit config.php for the new server
  • restore the database from sql backup
    • If you just create the database and user, you should be able to upload the backedup sql, and it will create all of the necessary tables.
  • load it in your browser and check for problems!


I hope your server switch goes as easily as mine. big grin
In reply to Paul Shew

Re: move moodle to new box

by Thomas Haynes -

Hmmm...

I tried this and got

Warning: could not find the name of this server!

Warning: Could not find any of these web server variables: $REQUEST_URI, $PATH_INFO or $PHP_SELF

 

when I tried to load the page. I'll go eat some lunch and try to figure this out.

Regards...   Tom

In reply to Thomas Haynes

Re: move moodle to new box

by Thomas Haynes -
I think the problem may be PHP 4.1 something on the old box and 4.0 something on the new...
In reply to Thomas Haynes

Re: move moodle to new box

by Thomas Haynes -

I know it is bad form to reply to your own posts, but I wanted to report some closure on this one and thank everyone for the help.

The box I was moving to is faster, more memory, etc. It is an older installation, and some of the packages were a little dated.

Over the weekend, I upgraded the kernel, PHP, and archive software. I then moved moodle over, and it is now working quite well (and quickly) on the new machine.

The old machine was a 300mHz K6-2 with 64 megs of ram and later 128 megs. It had a 3 gig HD. It bogged down badly when an entire class tried to use it at once.

The current home is a 733mHz machine with 256 megs of ram and a 20 gig HD. I'll see when the kids are back if it still bogs down...