{"id":374,"date":"2011-03-23T08:24:19","date_gmt":"2011-03-22T21:24:19","guid":{"rendered":"http:\/\/howden.net.au\/thowden\/?p=374"},"modified":"2011-03-23T08:24:19","modified_gmt":"2011-03-22T21:24:19","slug":"moodle-upgrade-from-1-9-to-2-0","status":"publish","type":"post","link":"https:\/\/howden.net.au\/thowden\/2011\/03\/moodle-upgrade-from-1-9-to-2-0\/","title":{"rendered":"Moodle upgrade from 1.9 to 2.0"},"content":{"rendered":"<p>The actual versions of the upgrade are v1.9.5 (live) and moving to 2.0.1+ (daily download from Jan 2011).<\/p>\n<p>The server had been setup with a working copy of the live system from January and tested through an upgrade to 2.0.1+ so we were happy that all would work well.  This upgrade was also a server migration from an older RedHat box to a Debian vm, but the principles are the same for any upgrade. The Moodle version to be used was already installed as a staging platform.<\/p>\n<p>The following notes relate to the process that I used for the live cut-over.<\/p>\n<p>Backup of live 1.9.5 database via phpmyadmin<\/p>\n<p>Copy the moodledata directory (the one with the files) from live to new<br \/>\n(must change owner and ensure write permissions after copy or you will get an odd blank page in the middle of the upgrade)<br \/>\nI used rsync to transfer between the servers here.<\/p>\n<p>database created live_2 :  (note to self:ensure utf8 collation setting for the db in future)<br \/>\nimport old 195 data to new db<br \/>\nconfig.php modified to use the new db<br \/>\nrun moodle2 as admin<br \/>\nauto upgrade :  error check references installing UTF8. This is because I forgot to set collation = utf8  corrected* and reran upgrade<\/p>\n<p>Update DNS settings  (transferring from one server to another)<\/p>\n<p>Changed apache config on new server to accept the new virtual host.<\/p>\n<p>*Correcting the collation is as simple as using your mysql admin tool and issung &#8216;ALTER DATABASE db_name COLLATION &#8216;new collation name&#8217;;<br \/>\nwith the new collation name inside single quotes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The actual versions of the upgrade are v1.9.5 (live) and moving to 2.0.1+ (daily download from Jan 2011). The server had been setup with a working copy of the live system from January and tested through an upgrade to 2.0.1+ so we were happy that all would work well. This upgrade was also a server [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-374","post","type-post","status-publish","format-standard","hentry","category-moodle"],"_links":{"self":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/comments?post=374"}],"version-history":[{"count":0,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/374\/revisions"}],"wp:attachment":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/media?parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/categories?post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/tags?post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}