Home > Chamilo, English, Techie > Chamilo big files upload fails on some cPanel

Chamilo big files upload fails on some cPanel

Recently I’ve had to fix a very strange cPanel installation of Chamilo. For some reason small files could be uploaded but not large files. Modifying the .htaccess file to add post_max_size and upload_max_filesize didn’t work.

The problem was due to two things, really:

  1. the re-configuration of php settings could only be done through local php.ini files (which only work for one directory, non-recursive, so you have to apply in several places)
  2. for some very strange reason, the upload_tmp_dir setting was undefined, which apparently didn’t work as I would have expected: it didn’t store temporary uploaded files in the /tmp directory of the server. I had to set this one manually (in a local php.ini file) to /home/myuser/public_html/www/chamilo/archive/ (feel free to put it somewhere else) to get it to work.

The resulting php.ini file looked like this:

post_max_size = 133M
upload_max_filesize = 133M
memory_limit = 256M
max_execution_time = 300
upload_tmp_dir = /home/myuser/public_html/chamilo/archive/

In the hope this helps somebody out there in the future…

Categories: Chamilo, English, Techie Tags: , ,
  1. ricardo
    February 6, 2012 at 6:32 pm

    This has really helped me … thank you.

    I am having trouble getting chamillo prestashop login to work … is there any other shopping cart plugin that you can suggest or a user guide? also will like to contact you considering possible future extensions of the education aspect of chamillo for mathematics education in particular … I have researched the area of adaptive educational technologies for 7 years

    I welcome a joint effort with beeznet and the group to achieve this goal

    • Yannick Warnier
      February 6, 2012 at 6:50 pm

      Hi Ricardo,

      Inside the latest version of the Prestashop package, there is a Readme file which explains how to install. It’s pretty easy, really, so please follow it and if you think one of the step is not documented well enough, please let us know so we can improve it.

      Sending you contact information in case your requirements for new developments are confirmed…

  2. November 23, 2014 at 7:27 am

    Hello Yannick

    documentation on uploading scorm is too little especially when file sizes are big . what i did, but im not sure if this is right is in cpanel , go to file manager , then search all files in site on top right for php.ini file . It should bring up php.ini file thats stored not on the root directory . Then edit it , search for word “upload” in php.ini file . Change it to 100 MB like so :
    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ;upload_tmp_dir = 100M

    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 20M

    Now the scorm will be uploaded and you wont get file size too big . I can view scorm created which is 7mb . How this helps someone . Please let me know if this is right. great job btw

    • Yannick Warnier
      November 24, 2014 at 6:58 pm

      Hi Dale,

      Sorry, we consider information of this kind to be server-related, not Chamilo-related, but I guess we could add some kind of message when the archive is larger than the limit.

      • Yannick Warnier
        November 24, 2014 at 6:58 pm

        This being said, I believe there is already something saying so before the upload is finished, but I’m not sure what it says anymore. Sadly, there are many configurations around (not only CPanel) and we couldn’t cover them all in just one message.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: