WeBWorK Main Forum

Upgrading 2.16 to 2.18 (ubuntu)

Upgrading 2.16 to 2.18 (ubuntu)

by Kelsey Caron -
Number of replies: 3

Hello,

I am looking for instruction or updated documentation on upgrading my Webwork site. I would hope to upgrade it without affecting any of the Webwork courses that are currently apart of the system. 

Any direction or guidance would be appreciated.

Thank you!

In reply to Kelsey Caron

Re: Upgrading 2.16 to 2.18 (ubuntu)

by Kelsey Caron -
I should also mention I am currently using Ubuntu 20.04.6 LTS
In reply to Kelsey Caron

Re: Upgrading 2.16 to 2.18 (ubuntu)

by Danny Glin -

WeBWorK 2.18 has been well-tested on Ubuntu 22.04.  Things should probably work the same on Ubuntu 20.04, but you may run into some compatibility issues with older versions of packages.

If your server is a virtual machine then I recommend deploying a new VM running Ubuntu 22.04, installing a new instance of WeBWorK, and then copying your data from the old server.  Once you have WeBWorK running on the new server you should be able to import the database from the old server (do a mysqldump, copy the dump file, then import it on the new server), and copy the courses directory from the old server to the new server.  After upgrading the courses from the admin interface all of the courses should be migrated.

If you want to upgrade in place, instructions for upgrading to 2.18 can be found in the release notes.  WeBWorK 2.16 should be recent enough that those directions can be followed directly.  I highly recommend backing everything up before starting this process.


In reply to Kelsey Caron

Re: Upgrading 2.16 to 2.18 (ubuntu)

by Arnold Pizer -

Look at

https://webwork.maa.org/wiki/Converting_the_webwork_database_from_the_latin1_to_the_utf8mb4_character_set#Methodology

for information on transferring courses.  Obviously, the main purpose of the documentation is different but it covers various methods.   If you don't have too many courses, the archive/unarchive method may be just as fast and safer.