I recently installed Moodle 3.0, everything was going to plan until I noticed that Moodle was giving me the warning below:
“Your database has tables using Antelope as the file format. You are recommended to convert the tables to the Barracuda file format. See the documentation Administration via command line for details of a tool for converting InnoDB tables to Barracuda.”
As the warning alludes to, there is a simple script that you can run that will correct the issue for you. However, there is a caveat, you need to give your moodle database user super permissions, something that I did not wish to do.
You can convert your file format by running the commands directly on the DB using your main administrator account.
SET SESSION sql_mode=STRICT_ALL_TABLES;
SET GLOBAL innodb_file_per_table=1;
SET GLOBAL innodb_file_format=Barracuda;
ALTER TABLE mdl_certificate ROW_FORMAT=Compressed;
ALTER TABLE mdl_data ROW_FORMAT=Compressed;
ALTER TABLE mdl_data_fields ROW_FORMAT=Compressed;
ALTER TABLE mdl_enrol_paypal ROW_FORMAT=Compressed;
ALTER TABLE mdl_lti ROW_FORMAT=Compressed;
ALTER TABLE mdl_user ROW_FORMAT=Compressed;
ALTER TABLE mdl_user_info_field ROW_FORMAT=Compressed;
Once you have ran the above commands the warning on the Moodle site will no longer show.
Git is a software development versioning control system. Using Git with Moodle will allow you to easily upgrade and maintain your Moodle site. First you will need to install Git by running the command:
sudo yum install git
Once Git is installed move into your web server document root. To move to the standard web server document root in CentOs enter the following command:
Next we will clone a local version of Moodle by entering the following command:
git clone git://git.moodle.org/moodle.git
Once this command is finished, move into the moodle directory it creates by entering the command:
You can list Moodle branches available by entering the following command:
git branch -a
You can then select the branch which you want to track, here we will track Moodle 3.0:
git branch –track MOODLE_30_STABLE origin/MOODLE_30_STABLE
We can now checkout this Moodle branch:
git checkout MOODLE_30_STABLE
You are now using Git to maintain your Moodle site. If you need to update your moodle site you can navigate into your Moodle directory by typing:
Once here you just need to run the command:
That’s all there is to downloading and updating Moodle using Git!
Moodle course pages are split into sections. By default the sections are split into weekly sections and the date of each week displayed. This is known as weekly format. Courses in weekly format look like the screen grab below:
However, this may not always suit as you may only hold classes intermittently or, indeed, you may wish to split your course up by topics.
You can do this by looking under course administration and selecting edit settings. Depending on how your administrator as configured Moodle this may exist on the left or right side of the page but the menu will always be the same.
In the page that appears select the course format drop-down and change format to topics format. Once you have done this, click save changes.
You will now see that your Moodle course is separated into topics.
You can now rename these topics to more suitable names, by first clicking “Turn Editing On” in the upper right of the screen.
Next click the wheel symbol under a Topic.
Untick “Use default section name” and enter a section name that you have chosen. Then click save changes.
We can now see that topic one is now called introduction.