Set up H5P for Moodle
Download and install Moodle
Skip this step if you already have a functional Moodle installation.
- Download Moodle.
- Follow the usual installation instructions.

Looking for a hosting option?If you are looking for hosting option for your H5P content - try out H5P.com. H5P.com provides hosting and LTI integration with your Moodle site.
Install the H5P plugin
1. Log in to your Moodle installation as an administrator. Under Site Administration, Plugins in the admin menu, press Install plugins and then the button labelled Install plugins from the Moodle plugins directory.
2. At this point, you may have to log into your moodle.org account. Locate the H5P plugin page and press the button labelled Install now.
3. On the next screen, press the Install now link located next to the site ON WHICH you wish to install H5P.
4. You will now be redirected back to your site, confirm the installation by pressing Continue.
5. Review the install log and check for any error messages. Press Continue again.
6. Now you'll be viewing the Plugins check page. Verify that the H5P plugin has the status To be installed. Proceed by pressing the button labelled Upgrade Moodle database now. (This may take some time)
7. You should now be greeted by a message from the H5P plugin. Please take note if the content types were automatically installed, if not you will need to go through the next section, Uploading and creating content. Press Continue when you are ready to move on.
8. Verify the H5P Settings and press Save changes. The default settings should be fine for most sites.
That's it! If everything went smooth, you should now be ready to start creating H5P activities in your courses.
Create an H5P activity
- Log in as an administrator or a user that has the permission to create H5Ps inside a course
- Go to the course you wish to add the H5P content to
- Press "Add an activity or resource."
- Select H5P - "Interactive Content" and click "Add".
-
Finish creating or uploading your H5P content
-
Save the activity at the bottom of the form
Installing Manually
- Download the plugin from the H5P page.
- Visit Site administration -> Plugins -> Install plugins page (/admin/tool/installaddon/index.php).
- Select the Activity module (mod) as the Plugin type.
- Select the downloaded plugin file(zip), read and check the Acknowledgement box.
- Press the Install plugin from the Zip file button.
- Follow the process. Upgrade the database and afterwards, review and save the H5P settings page.
Feedback
If you find any bugs or issues, please report them.
Let us know what you think of the plugin or if you have any suggestions for improvement.
For further info and issue tracking, check out the h5p-moodle-plugin page on GitHub.
Enjoy making rich interactive content in your favourite LMS!
Comments
BV52
Wed, 05/01/2019 - 08:34
Permalink
Hi vivekctc,Do you see any
Hi vivekctc,
Do you see any error messages in the browser console?
-BV52
Paul EKAM
Mon, 05/27/2019 - 11:24
Permalink
Installing Moodle
I'm just discovering H5p so it's possible that i make mistakes
tsch0014
Wed, 05/29/2019 - 03:11
Permalink
Moodle 'roll over' id in embed code does not update
In Moodle, when you create interactive content and embed it elsewhere within the same Moodle site, the embed code does not update when that unit is then 'rolled over' for the next delivery. The Interactive Content you've built gets a new id, but the embed code's id does not update, meaning you have to go into every place you've embedded H5P content and update the embed code again. Moodle is able to update activity ids for other activity types, is it possible to get the same process happening whereby Moodle scans for the embed code and the Interactive Activity, acknowledges the link and updates both in the subsequent unit?
stopbit
Wed, 05/29/2019 - 10:54
Permalink
Absolutely!
Hi tsch0014,
I have not noticed this behaviour as yet, however if you're correct then you're also absolutely correct regarding auto update of filter ID's. I assume you are talking about the add-on for Moodle called "H5P filter", found here: https://moodle.org/plugins/filter_h5p
If you're not talking about that and just the regular embed code, then I don't think it's designed to update the embed code within content - hence why the H5P Filter exists to get around the issue (just one use of the filter), meaning you don't ever need to update the embed code, just insert a 'short code' like this within any content with the filter turned on {h5p:My interactive Video}. The filter is very simular to how short codes work on Wordpress for example.
tsch0014
Thu, 05/30/2019 - 08:05
Permalink
Oh My Goodness!
This would totally solve our problem. But I don't think our instance of Moodle has this plugin installed, and I don't have the access to install it myself. This is such a clever solution to this problem. Big thumbs up to the developer. I've logged a request to get it done and have transformed into full pest mode until it's put in place. Some of our Moodle sites have 100+ H5Ps so every roll over costs hours of copying and pasting embed codes. Thanks for showing me the fix. Much appreciated.
stopbit
Thu, 05/30/2019 - 10:29
Permalink
Glad this helped you!
Hi tsch0014,
Wow, you seem very happy with my response :-) glad I could help you. In-fact the idea for a H5P Filter was first proposed by myself I believe here: H5P Filter for Moodle and a few years later someone going by the name rschrenk kindly created the H5P Filter for moodle themselves, see here: H5P Filter creation.
I've been using the filter myself and works well, as you say saving time updating over and over manually replacing embed code - this plugin completely gets around the problem.
Good luck
BV52
Fri, 05/31/2019 - 05:30
Permalink
Hi stopbit,Thank you for the
Hi stopbit,
Thank you for the info. If I'm not mistaken you also answered one other post with the same suggestion I just lost my bookmarks a few days ago when my laptop got infected by a virus.
-BV52
stopbit
Fri, 05/31/2019 - 10:37
Permalink
Probably
Hi BV52,
Sounds lik me :-) - I do appreciate the H5P Filter, amoungst other very useful features.
Thanks
Richard.vansons...
Thu, 06/13/2019 - 19:45
Permalink
Question with formula with random parameters
Is it possible with H5P to create a question in which you ask a student to calculate a value based on randomly chosen parameters and variables which (s)he has to use in a formula? I.e. for example ask the student to calculate the area of a rectangle, given the varialbles lenght and width that each may vary between certain values and that are randomly selected?
BV52
Mon, 06/17/2019 - 05:36
Permalink
Hi Richard,What you asked is
Hi Richard,
What you asked is not exactly possible. However it is possible to create quizzes with random questions an example of this is the Quiz (Question Set).
-BV52
rmumr
Thu, 06/20/2019 - 04:23
Permalink
Hi there,Can someone help me
Hi there,
Can someone help me to resolve the below issue? System on centos 7 Moodel 3.7. Try to install manually. but I'm getting the same error. Use this command to give permission "sudo chown -R apache:apache /var/www/html/moodle/mod/". But still no luck.
There is a request to install plugin Interactive Content – H5P (mod_hvp) version 2019052100 from the Moodle plugins directory on this site. However, the location /var/www/html/moodle/mod is not writable. You need to give write access for the web server user to the location, then press the continue button to repeat the check.
BV52
Fri, 06/21/2019 - 03:45
Permalink
Hi rmumr,Please check your
Hi rmumr,
Please check your server's and Moodle's security settings.
-BV52
conoron
Tue, 08/20/2019 - 16:28
Permalink
H5P Libraries not installed
Hi there
I have downloaded and installed the H5P plugin from the Moodle plugin page and I have followed all the steps below but when trying to add an interactive content type via the Moodle activity and all works fine, however, when I search for an activity type the content types are not there, so then I checked the Moodle administration and as it turns out there are no H5P libraries installed, I did the steps below so I would imagine that the libraries come as part of the install?
I'm on Moodle 3.7 and I have the same problem with H5P 1.8 and 1.9
Thanks
Conor
BV52
Wed, 08/21/2019 - 19:19
Permalink
Hi Conor,Can you please check
Hi Conor,
Can you please check if you have the Hub enabled? You should see this in the H5P settings under administration->plugins.
-BV52
eagarciaj
Wed, 08/28/2019 - 00:55
Permalink
Can't create content Moodle 3.7
Hi, I have a similar problem. But I can't create any content because theres no content type on the list. Only display:
No results found
There is no content type that matches your search criteria.Hub is enabled.Please adviseRegards,BV52
Wed, 08/28/2019 - 18:45
Permalink
Hi eagarciaj,Could you please
Hi eagarciaj,
Could you please check if you can upload a content downloaded from the examples page. If this doesn't work please post a separate report in the bug reports forum and include the information requested.
-BV52
Pages