Configure PHP
Independent of which platform you are planning to use, there are some configuration parameters you should consider changing before setting up H5P. These parameters are related to file upload, and the max sizes allowed by your web server.
Start by finding the php.ini in use by your web server, and open it in any text editor. When deciding how large files you will allow being uploaded, have in mind these settings is relevant both when uploading H5P-files, and when uploading other files to your site. The parameters you would like to change, are upload_max_filesize and post_max_size. In the example below, these values are set to 128MB. Note that post_max_size should always be larger or equal to upload_max_filesize.
If you set upload_max_filesize to 64M and post_max_size to 128M, this means that you can upload two files at max 64M at the same time. (in the same request)
; Maximum allowed size for uploaded files. upload_max_filesize = 128M ; Maximum size of POST data that PHP will accept. post_max_size = 128M
After saving the changes to php.ini, you will need to restart your web server so that it reloads the new php.ini.
Now before you go wild with these settings you should keep in mind that increasing them will make you more vulnerable to vicious Denial of Service attacks, as your server will spend more time handling requests. As of PHP 5.3.1 there's a setting called max_file_uploads that will limit the number of simultaneous uploads for all users.
If you're still having issues uploading big files after you've changed these settings, you should check your web server for a max request size limit. In nginx this will be called client_max_body_size.
PHP extensions
PHP extensions are modules that add functionality to your PHP environment. Usually the most common extensions are bundled with your PHP, so you wont have to take any action. If you find that you're missing some PHP extension, then make sure the following extensions, which H5P depends, are enabled for your environment:
- ZipArchive (mandatory)
- mbstring (mandatory)
- openssl (optional)
You can see which extensions are enabled for your PHP version by looing at the output of PHPINFO, most web CMS will provide you a way to inspect it throuhg a page, otherwise you can print it out from a PHP script or inspect your php.ini file.
Troubleshooting
Unable to communicate with the Hub
If you're getting this problem it is likely that something is wrong with how your server is set up for talking to H5P.org.
A common problem we see with Guzzle is that a required certificate is not present when using the https protocol.
You can usually solve this by adding a valid "cacert" to your server setup. See papi Joe's comment for more information.
Comments
yaaasmina
Tue, 06/02/2015 - 16:05
Permalink
Thank you so much for the
Thank you so much for the clarifications I will apply what you said and let you know whether it works or not .
manishmandal
Thu, 10/15/2015 - 12:49
Permalink
Plug-in for Java, HTML, JSP and JQuery based application
Is there any Plug-in for Java, HTML, JSP and JQuery based application
falcon
Thu, 10/15/2015 - 14:52
Permalink
Not yet, but we hope there
stopbit
Thu, 01/28/2016 - 14:14
Permalink
Max ececution time
Hi,
You should also add this lines to ensure the uplaod doesn't time out and scripts that restore the data can run for a maximum time.
Defaults are general set to these values, but should be increased to a comfortable value
Most have low values by default, and should be increased:
php_value max_execution_time 60 -> Max execution of scripts 60 seconds
php_value max_input_time 60 -> Max time-out for input from a web browser of 60 seconds
php_value post_max_size 8M -> Max upload file size of 8 MB
upload_max_filesize = 8M
-> Max upload file size of 8 MBHere's what I would do as the above are too small for me - just add these values to .htaccess file as described in this config page:
php_value max_execution_time 300
php_value max_input_time 300
php_value post_max_size 128M
upload_max_filesize = 128M
Hope this helps some one.
tortilaman
Sat, 10/22/2016 - 02:17
Permalink
Required libraries
I was wondering what PHP libraries are required.
First it told me ziparchive is required, and now after modifying my installation it's telling me the mbstring php extension is required.
I'm trying to create a docker image of this, so is it possible I can get a list of the php extensions and libraries that are required to run this? It's a hassle as it is.
thomasmars
Mon, 10/24/2016 - 09:21
Permalink
Hi,
Unfortunately there is no complete list of the php extensions and libraries that are required at this point. It would be very valuable if you decided to share them with the rest of the community.
varun
Wed, 03/08/2017 - 09:59
Permalink
regarding displaying/viewing
Is it possible to display or visualize offline prepared question set in online account.
fnoks
Thu, 03/09/2017 - 08:41
Permalink
I am not sure what you are
I am not sure what you are asking, but I'll try to answer anyways.
One of the strengths of H5P is that content can be moved from one site to another in an easy way. You could e.g. create a Question Set on a local H5P-site, export the H5P, and then upload it to another. Was that the answer to your question?
varun
Fri, 03/10/2017 - 07:36
Permalink
regarding visualization of a Que. set from one pc to another pc
I have prepared a question set in offline mode at my home pc and I want to visualize the same as online in my office, because I dot't have h5p in my office pc. Is it possible to visualize a question set using internet in my h5p account.
tim
Fri, 03/10/2017 - 08:52
Permalink
Hi, there isn't a way to
Hi, there isn't a way to import H5P's onto your h5p.org account just yet. You may have to recreate it on h5p.org.
liesverhetsel
Mon, 09/25/2017 - 14:14
Permalink
Is there file size limit for uploading to my account on H5P.org?
Hi, I am not using H5P on my own website yet. I have been uploading and making H5P files to my account on H5P.org. Today I want to upload a file of 33,6MB and I am not succeeding. The message I get is that I should check my error server log. What could be the problem? Is the file too big?
BV52
Mon, 09/25/2017 - 16:25
Permalink
Hi liesverhetsel,Thank you
Hi liesverhetsel,
Thank you for the information, yes you are correct the file that you are uploading exceeds the limit. The maximum upload size for any files uploaded across the site is 16 MB.
-BV52
varun
Fri, 11/10/2017 - 04:44
Permalink
regarding cloning and number of viewer
1-Is it possible to create a barrier to others, that they did not become able to clone any e-content.
2-Is it possible to figure out how many viewer have seen my e-content.
BV52
Wed, 11/08/2017 - 02:39
Permalink
Hi varun,1. It's possible but
Hi varun,
1. It's possible but only as an on/off feature. This can be done by unchecking the download button.
2. I'm sorry but this is not possible.
-BV52
varun
Wed, 11/08/2017 - 10:23
Permalink
REGARDING COMMENT
Hello Sir,
Thanks for YOUR REPLY.
IS IT POSSIBLE TO COMMENT ON A PARTICULAR E-CONTENT by viewer (e.g. Correction or Suggestion ect.)
BV52
Fri, 11/10/2017 - 05:39
Permalink
Hi Varun,Sorry but this is
Hi Varun,
Sorry but this is not possible.
-BV52
piyon
Fri, 09/28/2018 - 11:05
Permalink
H5P Drag'nDrop error.
are there any modules beside the listed ones above to run Drag'n Drop module? php.ini parameters also done.
thomasmars
Thu, 10/04/2018 - 11:39
Permalink
Hi, what are you trying to do
Hi, what are you trying to do, what have you done this far and what is not working for you ?
Heiner Roland
Mon, 04/15/2019 - 18:41
Permalink
text field doesn´t work
When i try to enter a text in a drag and drop exercise - and the same in fill in the blank, the Text field under "label" doesn´´t open properly as on hp5.org , but disappears. Im using wordpress last version, installation seems ok, other plugins (audio recorder, flashcards work fine, Can you help? Is it some problem with java or security issue? Tried with explorer and firefox, same issue.
BV52
Tue, 04/16/2019 - 05:34
Permalink
Hi Heiner,Can you please post
Hi Heiner,
Can you please post a separate thread here. Please follow the suggested format.
-BV52
varun
Tue, 04/23/2019 - 12:07
Permalink
reagarding e-content "Guess the Answer"
I am unable to attach list of developers in the e-content "Guess the Answer" kindly suggest ASAP.
Regards
TK
BV52
Wed, 04/24/2019 - 04:25
Permalink
Hi Varun,I'm not sure I
Hi Varun,
I'm not sure I follow. Can you please elaborate your question.
-BV52
varun
Thu, 04/25/2019 - 17:47
Permalink
Regarding Guess the Answer@2
I want to provide list of developer e.g.
Coordinator : ABC
Contributer : xyz
Acknowledgement
Kml
BMS
Jpf
BV52
Fri, 04/26/2019 - 04:02
Permalink
Hi Varun,I'm afraid there isn
Hi Varun,
I'm afraid there isn't really a place you add additional information except the metadata/copyright. I created a sample content here.
-BV52
varun
Fri, 04/26/2019 - 07:36
Permalink
Regarding Guess the Answer@3
Hello BV52,
Thank you for your prompt response. I also appreciate your efferts that you made in a very short span of time.
I would like to add, if possible, can we make atlest some textual diiffernce between Names' (e.g. ABC, DEF, GHI) and Nouns' (Coordinator, Contributer and Acknowledgements) in terms of Bold Text/Normal Text.
an early action would be higly appreciated
Regards
Varun
Normal 0 false false false EN-US X-NONE HI MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; mso-bidi-font-size:10.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}
Hello BV52,
Thank you for your prompt response. I also appreciate your efforts that you made in a very short span of time.
I would like to add one thing, do we make atlest some textual difference e.g
Coordinator:ABC
Contributor: DEF
Acknowledgements: HIJ, KML, XYZ
An early action would be highly appreciated.
Regards
Varun
BV52
Mon, 04/29/2019 - 07:47
Permalink
Hi Varun,I'm afraid this is
Hi Varun,
I'm afraid this is not possible since what I suggested waas actually just a workaround. However you can post a feature request. In order for your feature request to attract as much interest as possible make sure it follows the below guidelines:
It is clear from every perspective how the feature will work. We recommend describing the feature with one or more user stories, for instance “As an author I want it to be possible to pick between different effects for the check answer animation so that the learners will see a variety of effects and also I can adapt the effects to my target audience(I’ll be using pink unicorns which works really well for both my target audience which are 4 year old girls and venture capitalists)”
If the feature can be illustrated with images or videos it always helps
Make it clear what content types this is relevant for, and or if this is a new content type
Make sure you post the feature in the Feature Request forum.
-BV52
ama178
Thu, 06/20/2019 - 15:07
Permalink
Is there a plug in to add to
Is there a plug in to add to Lib Guides?
ama178
Thu, 06/20/2019 - 15:08
Permalink
lib guide
is there a plug in to add to lib guides?
Inma Alvarez
Fri, 10/18/2019 - 09:52
Permalink
thank you
thank you
varun
Fri, 05/01/2020 - 19:07
Permalink
Regarding clone of any e-content
Dear Sir,
I am unable to clone my e-contents.
kindly help.
Regards
Varun
BV52
Mon, 05/04/2020 - 18:06
Permalink
Hi Varun,Cloning has been
Hi Varun,
Cloning has been removed from H5P.org.
-BV
varun
Sat, 05/09/2020 - 16:35
Permalink
Regarding cloning of e-content
Oh no, it was very useful sir, if possible kindly activate again.
varun
Sat, 05/09/2020 - 18:33
Permalink
Regarding cloning of e-content
Oh no, it was very useful sir, if possible kindly activate again.
BV52
Mon, 05/11/2020 - 18:15
Permalink
Hi varun,I'm afraid the core
Hi varun,
I'm afraid the core team does not have any plans of enabling the feature anytime soon.
-BV