Upgrading Moodle 2.5 to 2.6

Quick post about upgrading moodle 2.5 to 2.6, quite simple and should only take few min (minus backup time)


Backing up Moodle files

There are three areas that should be backed up before any upgrade:

  • Moodle software (server/htdocs/moodle)
  • Moodle uploaded files (server/moodledata)
  • Moodle database (Postgres or MySQL database dump)


Put your site into maintenance mode

Before you begin upgrading your site, you should put it into maintenance mode to stop any non-admin users from logging in.

  • Log in with user with admin rights.
  • Navigate to – Settings > Site administration > Server > Maintenance mode
  • Toggle the state to Enable
  • Input a message if you require.
  • Click Save.

Your site is now in maintenance mode users who don’t have administrator privileges will only be able to access the front page but won’t be able to access any resources…

maintenance mode


Install the new Moodle software

  • Make a copy of the config.php file in your Moodle program files. (IMPORTANT STEP)
  • As long as you have made a backup of your Moodle program files you can delete the folder/content (My case i remove all content from the inetpub\wwwroot)
  • Download the latest stable version of Moodle (2.6.2+) 
  • Unzip the downloaded file and move the file or content to the same location as the one you just deleted. (My case i extracted the content to inetpub\wwwroot)


Restoring backup files

  • Copy the backup config.php file to the new Moodle directory. (This file contains the database configuration and connection settings)
  • If you had installed any custom add-ons, themes, mods… on your site you should copy them from your backup to the new program files. (Note don’t just copy and paste the folder eg, theme folder. Best to just copy over the single theme file you need)

Finishing the upgrade

The last step is to trigger the upgrade processes within Moodle.

  • To do this just login to your Moodle site, it will open a page with message – Updating Moodle database from 2.5.2 (build …
  • If not go to Administration > Site administration > Notifications. and follow from there.
  • Click Continue


  • Check to make sure that the Server Checks all passed (If not investigate)
  • Click Continue

moodle server checks

Moodle will automatically detect the new version and do all the SQL database or file system upgrades that are necessary. If there is anything it can’t do itself (very rare) then you will see messages telling you what you need to do. Such as asking you to install missing plugins that you may have had before upgrade but you forgot to replace from your backup before this step.

Once you have gone through the Plugins/add ons check and installed any missing add ons  click Upgrade Moodle database Now


This may take several minutes depending on the number of add ons… you have. Once the scroll bar has stopped head to the bottom of the page and click Continue.




Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.