Tuesday, April 24, 2012

Uploading course backups

Today, I was uploading a few newly created backup files from our 1.9 instance, with the intention to restore to our 2.2 instance.  When creating the backup, I choose no user data, or roles, just a nice clean backup file.  One of them was about 55 MB.  When I attempted to upload the 55MB zip file to the 2.2 instance, I got the familiar moodle message;

Could not upload file, may have exceeded post_max_limit.
 
I remoted into the 2.2 server, used the WAMP icon to quickly find and open the php.ini file and changed two settings.
  • upload_max_filesize (from 25 to 100 MB)
  • post_max_size (from 25 to 100 MB)
Saved the file and restarted the Apache Service.

When back to moodle 2.2 instance, attempted to upload the file again, and whalla, success.




1 comment: