Installation

Moving courses from 2.4.1 to 2.7 on new server

Moving courses from 2.4.1 to 2.7 on new server

by Deb Bahr -
Number of replies: 3
I am planning on installing WebWork 2.7 on Ubuntu 12.04 in a VM environment. I currently have WebWork 2.4.1 on Ubuntu 8.04.

What is the best way to move the courses from the old server to the new server?

In reply to Deb Bahr

Re: Moving courses from 2.4.1 to 2.7 on new server

by Lars Jensen -
Hi Deb,

Install webwork 2.8 on the new server using the directions here. Make a mysqldump of your old database, and a tarball of your webwork/courses directory from the old server. Copy the tarball to the new server and expand into the webwork/courses directory there (but keep the new modelCourse). Make a new (empty) webwork database on the new server (as described in the installation instructions) and expand the dump from the old server into it. If you have custom library files, you may also want to copy these to the new webwork/libraries directory.

Hope this helps,
Lars.
In reply to Lars Jensen

Re: Moving courses from 2.4.1 to 2.7 on new server

by Danny Glin -
A couple of things to look out for with Lars's instructions:

Make sure you re-set the permissions after you copy the courses directory over.  tar is unreliable at preserving file permissions.

Once you have moved the database and files over, log in to the admin course first.  It will prompt you to update the database tables in all of your courses so it will be compatible with the new version.

One quick question: why 2.7 and not 2.8, since that is the current release version?

Danny
In reply to Danny Glin

Re: Moving courses from 2.4.1 to 2.7 on new server

by Hedley Pinsent -
The @Library links (found in each template directory) from the old system will be pointing to the NPL library?; you will need to replace these with links pointing to the new OPL.

Maybe gksudo nautilus and then use an appropriate one (possibly from the model course?)

hp