Moodle 3.5.2 is now Available — Here’s How to Install / Upgrade on Ubuntu 16.04 | 18.04 LTS

The team behind Moodle, an open source course manage system (CMS) has released a new minor update ( 3.5.3 ) and this brief tutorial is going to show students and new users how to install or upgrade on Ubuntu 16.04 | 18.04 LTS servers…

This is a release focused on stability and some bug fixes, and comes with awaited improvements, and a number of fixes for security vulnerabilities…. You should upgrade your sites as soon as possble… and the process should be very straightforward….

Some of the changes and improvements are:

  • Option to set a data request expiry time
  •  Global search allows searching for users by alternate name
  •  Pre-signup (minor check) session is not deleted upon signup
  • Multiple fixes when redirecting to a URL after clicking on a notification
  • Tracked forums now display the number of unread messages
  • Empty course sections deleted when upgrading
  • External tool Message in Membership Service not in an Array
  • Online text assignment submissions generate a blank HTML document for grading when no text is entered
  • The current core php-css-parser prefixing library does not support sass syntax “@supports”
  •  Forum index page alignment improvements
  • QuickForm library remote code vulnerability (upstream)
  • Moodle XML import of ddwtos could lead to intentional remote code execution

For more that this release, please check its release notes….

Below are two posts that show you how to install Moodle with Apache2 and Nginx HTTP support… Select the installation option that suit your environment…

Option #1: Install Moodle with Apache2 Support

If you want to install Moodle with Apache2 support, the post below should be a great place to start… It shows you how to install Apache2, MariaDB and PHP…

Option #2: Install Moodle with Nginx HTTP Support

For those who want to install Moodle with Nginx HTTP support, the post below should help… It shows you how to intall Nginx with PHP-FPM support…

The two post above show you how to install Moodle… If you already have Moodle install and you wish to upgrade, then read the steps below:

Option 3: Upgrading Moodle

For students and new users who already have Moodle installed and wish to upgrade, asuming that you followed the steps above to install, run the commands below to backup your old Moodle folder…

sudo mv /var/www/html/moodle /var/www/html/moodle_bak

Then download the latest copy of Moodle and move it in the webserver root directory…

cd /tmp && wget
tar -zxvf moodle-latest-35.tgz
sudo mv moodle /var/www/html/moodle

Next, copy Moodle config file, theme and data folder… If you updated your themes… a theme content should be there…. If you also installed aditional modules… you should find them in the /mod directory… copy them to the new Moodle folder….

sudo cp /var/www/html/moodle_bak/config.php /var/www/html/moodle
sudo cp -pr /var/www/html/moodle_bak/theme/mytheme /var/www/html/moodle/theme/mytheme
sudo cp -pr /var/www/html/moodle_bak/mod/mymod /var/www/html/moodle/mod/mymod

After that, update the web server permissions…

sudo chown -R www-data:www-data /var/www/html/moodle/
sudo chmod -R 755 /var/www/html/moodle/

Restart your web server…

The last step is to trigger the upgrade processes within Moodle….. If you put your site into Maintenance mode earlier; take it out now!

Once you browse to the server IP or hostname, Moodle should prompt you to begin upgrading your database… After upgrading the database, logon to Moodle and go to:

Administration > Site administration > Notifications.

Moodle will automatically detect the new version and perform 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.

Assuming all goes well (no error messages) then you can start using your new version of Moodle and enjoy the new features!

Moodle Upgrade ubuntu

That’s it!


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.