{"id":66741,"date":"2023-02-08T03:37:18","date_gmt":"2023-02-08T09:37:18","guid":{"rendered":"https:\/\/www.scalahosting.com\/blog\/?p=66741"},"modified":"2024-08-08T03:11:40","modified_gmt":"2024-08-08T09:11:40","slug":"how-to-update-moodle","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/blog\/how-to-update-moodle\/","title":{"rendered":"How to Update Moodle"},"content":{"rendered":"\n<p><em>We all know updates are important <\/em>&#8211; not only do they get rid of bugs, but they also improve the overall security of the apps or platforms you\u2019re using. This is especially crucial with<strong> <\/strong><strong><em>Learning Management Systems (LMSs)<\/em><\/strong> where any unauthorized breach can affect thousands of people.<\/p>\n\n\n\n<p>That. of course, is highly valid for the <strong>most popular LMS solutions<\/strong> out there &#8211; Moodle.&nbsp; Worried that you don\u2019t know <strong>how to update Moodle<\/strong>? Or maybe the process looks a bit intimidating? We\u2019re here to help!<\/p>\n\n\n\n<p><em>Let\u2019s start from the beginning\u2026<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"What-is-Moodle\">What is Moodle?<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.scalahosting.com\/blog\/what-is-moodle\/#Moodle-Deployment\">Moodle<\/a> is a<strong> free learning management system (LMS)<\/strong> that works with all <a href=\"https:\/\/www.scalahosting.com\/blog\/choosing-an-operating-system-for-your-vps\/\">operating systems<\/a>. Students and teachers alike can <strong>create their own courses, set assignments, upload presentations<\/strong>, and more<strong>.<\/strong> The platform is <strong>user-friendly <\/strong>and has <strong>numerous resources <\/strong>to ease the onboarding process. In order for Moodle to function properly, frequent updates are necessary.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Find-Out-Your-Moodle-Version\"><strong>Find Out Your Moodle Version<\/strong><\/h2>\n\n\n\n<p>There are two ways to find your Moodle version out. Which one will work for you depends on your role &#8211; <strong>Admin<\/strong> or <strong>Teacher<\/strong>. If you\u2019re a <strong>Moodle Admin<\/strong>, go to <strong>Site Administration<\/strong> and choose<strong> Notifications<\/strong>. The current version of the platform will be visible<strong> at the bottom of the page.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR1.png\"><img decoding=\"async\" width=\"1024\" height=\"325\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR1-1024x325.png\" alt=\"How to Update Moodle, Find Out Your Moodle Version\" class=\"wp-image-66744\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR1-1024x325.png 1024w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR1-300x95.png 300w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR1-768x244.png 768w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR1-1536x488.png 1536w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR1.png 1739w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<p>In case you\u2019re a<strong> Moodle Teacher<\/strong> and the platform is either in English or German, you can see the version in the <strong>Moodle docs<\/strong>. It will show up<strong> at the bottom of any page<\/strong> on the Moodle LMS.&nbsp;<\/p>\n\n\n\n<p>For any <strong>other language<\/strong> &#8211; simply <strong>check the URL<\/strong>. Your site address will <strong>contain a number<\/strong>, for example, 25, which means your version is 2.5.<\/p>\n\n\n\n<p><em>Let\u2019s update\u2026<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-Update-Your-Moodle\"><strong>How to Update Your Moodle&nbsp;<\/strong><\/h2>\n\n\n\n<p>The process is a bit lengthy, but don\u2019t worry &#8211; we\u2019ve got it all covered.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Check-Moodle-Requirements\"><strong>Check Moodle\u2019s Requirements<\/strong><\/h3>\n\n\n\n<p>That\u2019s maybe the easiest part. Go to<strong> Site Administration<\/strong>, choose <strong>Server<\/strong>, and click on <strong>Environment<\/strong>. You will see files with release notes for the <strong>server and client software requirements<\/strong>.&nbsp;<\/p>\n\n\n\n<p><strong>Those will vary, as they are based on:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Server<\/li>\n\n\n\n<li>Database<\/li>\n\n\n\n<li>Browser<\/li>\n<\/ul>\n\n\n\n<p><em>So, read carefully!<\/em><\/p>\n\n\n\n<p><br>After you\u2019ve completed this step, you need to back up your site.<br><\/p>\n\n\n\n<p><strong>Here\u2019s how to do it and why it matters:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR2.png\"><img decoding=\"async\" width=\"1024\" height=\"478\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR2-1024x478.png\" alt=\"How to Update Moodle, Check Moodle\u2019s Requirements\" class=\"wp-image-66745\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR2-1024x478.png 1024w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR2-300x140.png 300w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR2-768x359.png 768w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR2-1536x718.png 1536w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR2.png 1909w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Backing-Up-Your-Moodle-Site\"><strong>Backing Up Your Moodle Site<\/strong><\/h3>\n\n\n\n<p><strong>Before you update, you need to back up:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>the code<\/li>\n\n\n\n<li>your Moodle files<\/li>\n\n\n\n<li>your database<\/li>\n<\/ul>\n\n\n\n<p>The way to save your <strong>database<\/strong> will <strong>depend on the system you\u2019re using<\/strong>. There\u2019s <strong>documentation available on Moodle\u2019s official site<\/strong> that will guide you through the right steps. Tools like <a href=\"https:\/\/www.scalahosting.com\/kb\/how-to-create-a-database-in-mysql\/\"><strong>phpMyAdmin<\/strong><\/a><strong>, MySQLDumper, and AutoMySQLBackup <\/strong>will prove to be an invaluable helper for the task.&nbsp;<\/p>\n\n\n\n<p class=\"alert-red\"><strong>IMPORTANT: <\/strong>Don\u2019t change any data during the backup process! It will interfere with it and you won\u2019t like the results.<\/p>\n\n\n\n<p><strong>The uploaded files can be found in a directory called <\/strong><strong><em>moodledata<\/em><\/strong><strong>. From there, you can:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>use a<strong> file transfer program<\/strong> and move everything on a drive or a computer<\/li>\n\n\n\n<li>create <strong>compact files <\/strong>(<em>for example, zip<\/em>) via a compression program of the entire moodledata<\/li>\n<\/ul>\n\n\n\n<p><strong>As for the code, the Moodle directory offers three options:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>rsync in Linux<\/strong> &#8211; enables you to copy only the changed files to another host<\/li>\n\n\n\n<li><a href=\"https:\/\/www.scalahosting.com\/kb\/what-is-ftp\/\"><strong>FTP<\/strong><\/a> &#8211; used in cases when hosting provider does not allow ssh<\/li>\n\n\n\n<li><a href=\"https:\/\/www.scalahosting.com\/blog\/what-is-ssh-and-how-to-use-it\/\"><strong>SSH<\/strong><\/a> &#8211; you can back up the entire database using the <em>wget<\/em> command<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Updating-Plugins-and-Third-Party-Components\"><strong>Updating Plugins and Third-Party Components<\/strong><\/h3>\n\n\n\n<p>If you enable<strong> Automatic updates deployment <\/strong>in Moodle, the associated plugins will also upgrade during the update process. There\u2019s a button for available updates at the <strong>Plugin Check<\/strong> screen that will show you if any are necessary.&nbsp;<\/p>\n\n\n\n<p>In case you\u2019re updating manually, you need to <strong>check the Moodle Plugins directory <\/strong>to see if there\u2019s a new version available. If there is &#8211; you will need to <strong>download the<\/strong> <strong>plugin package<\/strong>, then <strong>extract it<\/strong> to the appropriate location in the Moodle code.<\/p>\n\n\n\n<p>When all is done, you\u2019ll be ready to install the updated software.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Installing-the-Updated-Moodle-Software\"><strong>Installing the Updated Moodle Software<\/strong><\/h3>\n\n\n\n<p>First and foremost &#8211;<strong> put Moodle into Maintenance mode<\/strong>. This will prevent non-admin users from logging in and messing with the process. You can do so by going to <strong>Site Administration &gt; Server &gt; Maintenance Mode<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR3.png\"><img decoding=\"async\" width=\"1024\" height=\"474\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR3-1024x474.png\" alt=\"How to Update Moodle, Installing the Updated Moodle Software\" class=\"wp-image-66746\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR3-1024x474.png 1024w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR3-300x139.png 300w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR3-768x355.png 768w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR3-1536x710.png 1536w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2023\/02\/MoodleUpgradeSCR3.png 1905w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<p>Now, head on to <strong>Moodle Downloads<\/strong> to get the latest stable version of the app in the form of an archive. Before you extract its contents in your <strong><em>\/moodle<\/em><\/strong><strong> folder,<\/strong> make sure to <strong>move the old files<\/strong> from&nbsp; <strong><em>mysite.com\/moodle to mysite.com\/moodle\/OLDSITE<\/em><\/strong> (or whatever you want to call it). You can now go ahead and unzip the compressed file.<\/p>\n\n\n\n<p>One last thing &#8211; after you are done with the steps, to copy the old config.php file back <em>from the \/OLDSITE to your \/Moodle folder.<\/em><\/p>\n\n\n\n<p class=\"alert-red\"><strong>IMPORTANT:<\/strong> If you have <strong>plugins<\/strong> you wish to keep, you need to <strong>add them to the code tree<\/strong>. Again, be careful not to overwrite anything.<\/p>\n\n\n\n<p>All the instructions above are valid for the <strong>standard install package<\/strong>. In case you&#8217;re using Linux or need Git &#8211; Moodle has the steps outlined on its company website.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Final-Steps\"><strong>Final Steps<\/strong><\/h3>\n\n\n\n<p>All that\u2019s left for you to do is<strong> trigger the update<\/strong>.<\/p>\n\n\n\n<p>To do so take your Moodle site <strong>out of Maintenance Mode<\/strong>.&nbsp; You know the drill already: go to <strong>Site administration<\/strong> and then <strong>Notifications<\/strong>. The platform will automatically detect the upgrade.&nbsp;<\/p>\n\n\n\n<p>More often than not, it will do all the<strong> SQL database <\/strong>or file system upgrades without needing any help from you. If there\u2019s a bump on the road, Moodle will <strong>show you a message with instructions <\/strong>on how to proceed.<\/p>\n\n\n\n<p>Sounds easy enough, right? Well, things can get even easier if you find a reliable Moodle hosting provider.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ScalaHosting-and-Moodle\"><strong>ScalaHosting and Moodle<\/strong><\/h2>\n\n\n\n<p>Teachers, schools, and educational organizations from all over the world can unlock the full power of <a href=\"https:\/\/www.scalahosting.com\/moodle-hosting.html\">Moodle with ScalaHosting<\/a>. The long years of experience with LMS websites have taught us that there is no better environment for such a project than<strong> cloud VPS hosting<\/strong>.&nbsp;<\/p>\n\n\n\n<p>Virtual servers give you full <strong>customization control, optimized performance, <\/strong>and<strong> enhanced security at very affordable rates<\/strong>. Our <a href=\"https:\/\/www.scalahosting.com\/managed-cloud-hosting.html\">managed VPS<\/a> plans are well-tailored for beginners as all technicalities are handled by our <strong>24\/7 professional support.<\/strong>&nbsp;<\/p>\n\n\n\n<p>Whether you need to run online courses, create quizzes, or set up different levels of member access &#8211; Moodle and ScalaHosting are a wonderful match!<\/p>\n\n\n<div class=\"shortcode-cta-new-wrap row moodle\">\r\n    <img decoding=\"async\" class=\"shortcode-logo\" src=\"\/blog\/images\/shortcode-bg-new-logo-moodle.svg\" alt=\"shortcode-logo\" title=\"shortcode-logo\"\/>\r\n    <div class=\"shortcode-cta-img col-10 col-sm-7 col-md-5\">\r\n        <img decoding=\"async\" class=\"shortcode-bg\" src=\"\/blog\/images\/shortcode-bg-new-moodle.webp\" alt=\"shortcode-bg\" title=\"shortcode-bg\"\/>\r\n    <\/div>\r\n    <div class=\"shortcode-cta-content col-12 col-md-7\">\r\n        <div class=\"content\">\r\n            <div class=\"heading\">Power Up Your Online Teaching - Join the ScalaHosting Family<\/div>\r\n            <div class=\"list-wrap\">\r\n                <div class=\"list\">\r\n                    <div><b>Free, Effortless & No-Downtime Migration<\/b><\/div>\r\n                    <div><b>Anytime Unconditional Money-back Guarantee<\/b><\/div>\r\n                    <div><b>Optimized Moodle Performance and 24\/7 Expert Support<\/b><\/div>\r\n                <\/div>\r\n            <\/div>\r\n            <div class=\"btn-wrap row\">\r\n                <div class=\"col-auto\">\r\n                    <a class=\"button green\" href=\"https:\/\/www.scalahosting.com\/moodle-hosting.html\">Start Now<\/a>\r\n                <\/div>\r\n                <div class=\"col-auto\">\r\n                    <button class=\"button purple_outer\" title=\"Contact Sales\" onclick=\"chatChangeVisibility(this, 'maximize', {}, 5);\">Chat with our Experts<\/button>\r\n                <\/div>\r\n            <\/div>\r\n        <\/div>\r\n    <\/div>\r\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Wrap-Up\"><strong>Wrap Up<\/strong><\/h2>\n\n\n\n<p>Congratulations, you\u2019re now ready to enjoy the latest version of Moodle!<br>What\u2019s even better &#8211; you know how to update the LMS on your own.&nbsp;<\/p>\n\n\n\n<p>Just remember the vital things &#8211; <strong>check Moodle\u2019s requirements<\/strong>, don\u2019t change any data during the backup process, and add your plugins to the code tree. All of this should be done while the <strong>LMS is in Maintenance mode<\/strong>, which you should disable, once you\u2019re ready to trigger the update.<\/p>\n\n\n\n<p>Not so intimidating now, is it?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"FAQ\"><strong>FAQ<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How do I know what version of Moodle I am using?<\/strong><\/h3>\n\n\n\n<p>If you\u2019re a site admin, you can see your current Moodle version when you go to <strong>Site administration &gt; Notifications<\/strong>. You can locate it at the bottom of the page.<\/p>\n\n\n\n<p><strong>Moodle Teachers<\/strong> can see the version in the Moodle docs, at bottom of any page on the <strong>Moodle LMS<\/strong>. If the platform is not in English or German &#8211; check the URL for a number. That will specify your Moodle version.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How do I cancel my Moodle update?<\/strong><\/h3>\n\n\n\n<p>To cancel your Moodle update, you need to first back up your <strong>Moodle database<\/strong>. You can then restore the backup and get a hold of the previous version from Git or the official website. Lastly, just connect your restored database with the old code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How do I turn off Moodle maintenance mode?<\/strong><\/h3>\n\n\n\n<p>You can turn off <strong>Maintenance mode in Moodle <\/strong>by going to the Site Administration section and then Notifications. You\u2019ll see the disable option inside.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We all know updates are important &#8211; not only do they get rid of bugs, but they also improve the &#8230;<\/p>\n","protected":false},"author":115,"featured_media":66749,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-cluster-moodle.php","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[128],"tags":[],"class_list":["post-66741","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-moodle-hosting"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/posts\/66741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/comments?post=66741"}],"version-history":[{"count":10,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/posts\/66741\/revisions"}],"predecessor-version":[{"id":71378,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/posts\/66741\/revisions\/71378"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/media\/66749"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/media?parent=66741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/categories?post=66741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/tags?post=66741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}