scorm package of 24 mb is too big?

scorm package of 24 mb is too big?

by Klaas Hobo -
Number of replies: 5

Ik have been working with scorm for a long time now but never had a scorm package of >24 mb. When I now upload it in an activity all goes well until I save the activity and try to get to the course again. Then after a long time the installation freezes and I cannot save the package?? I'm using Moodle 3.0

I did a setup for a virtual demo ubuntu installation with Moodle3 on my pc to test another linux environment and that's working fine with the package and it's not lasting that long also to get saved after uploading. 

I have read all documentation on settings for scorm packages (I think) and have read some posts where it was possible to work with scorm packages of about > 350mb. Really don't know how to move on as I really want to get the content in one package. All file sizes for uploads exceed 150mb (server and course).

What settings can be involved to stop me from using larger scorm packages??

Average of ratings: -
In reply to Klaas Hobo

Re: scorm package of 24 mb is too big?

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Klass,
it depends on your PHP configuration, first. Then, in the course settings.

The php.ini related settings are:

; Maximum size of POST data that PHP will accept.
; http://php.net/post-max-size
; Usually, upload_max_filesize + 40%.

post_max_size = 1434M
; The real size of the file.
; http://php.net/upload-max-filesize
upload_max_filesize = 1024M
; Maximum amount of memory a script may consume.
; http://php.net/memory-limit
memory_limit = 1434M
; It depends also on the available bandwidth to perform the upload.
; http://php.net/max-execution-time
max_execution_time = 900

HTH
Matteo

In reply to Matteo Scaramuccia

Re: scorm package of 24 mb is too big?

by Klaas Hobo -

Hi Matteo,

Thank you for this information. I have not had the time to try these PHP settings but will give it a shot tomorrow. I will let you know whether this is solving my problem.

Rgds,

Klaas


In reply to Klaas Hobo

Re: scorm package of 24 mb is too big?

by Klaas Hobo -

Hi Matteo,

These settings where indeed the solution for my installation.
Thanks again!

Rgds,

Klaas


In reply to Matteo Scaramuccia

Re: scorm package of 24 mb is too big?

by Sam Stevens -
Just  had exactly the same thread on this and this suggestion of just putting the php settings sky high was also proposed as the solution.


Yes it will work but it comes with the risk of deceased security and the potential for errant php scripts to cause problems. You are giving any php script up to 15 minutes to run there, plus the possibility of accessing loads of memory and the possibility of people putting very large files through the php upload method.

It is much, much better to make a repository, FTP the file onto the server into the repository folder and then pick it with the file picker. Then you only need to up max_execution_time = 180 (or something like that depending on server specs) and leave the upload and memory size settings alone. As all the picker and php does then is check the scorm package and do some other moodle stuff with it. Which means you don't need to set massive upload or execution times to accommodate the time it take to upload and the size of the package.


In reply to Sam Stevens

Re: scorm package of 24 mb is too big?

by Klaas Hobo -

Obviously it's not the numbers that are put in the answer above that you should use for your installation if you go this path. But if you just try to find out what you need and perhaps expand it a bit I think that's fine. I must say that with a small bit more space my problems where gone.

I also appreciate your solution Sam as it's indeed a much better way if you really need a lot more. 

Thanks for your help!