Maximum Uploaded Filesize issue

Maximum Uploaded Filesize issue

Ryan Lungcay發表於
Number of replies: 1

Greetings!

I been trying to increase the maximum uploaded filesize from 2Mb to 500Mb, I've manage to check moodle docs https://docs.moodle.org/405/en/File_upload_size, and follow the instructions, but unfortunately it does not manifest on the Site Administrato ->Security -> Site Security Settings, the posted Maximum uploaded file size is still the default value of 2Mb, by the way may moodle version is 4.2, thank for anyone who can help me solve this issue.

here is the instruction 

You need to edit the following three settings in your php.ini file located at: /etc/php5/apache2/ Here are a set of instructions to follow line by line.

  • Type "sudo nano /etc/php5/apache2/php.ini"
  • Press Ctrl and W and type "post_max_size"
  • Change the value to the number of Mb you want your site to accept as uploads
  • Press Ctrl and W and type "upload_max_filesize"
  • Change the value to the number of Mb you want your site to accept as uploads
  • Press Ctrl and W and type "max_execution_time"
  • Change the value to 600
  • Press Ctrl and O
  • Press Ctrl and X
  • Type sudo apachectl restart


評比平均分數: -
In reply to Ryan Lungcay

Re: Maximum Uploaded Filesize issue

Marvin H發表於
Particularly helpful Moodlers的相片

Hello Ryan,

are you able to choose now a higher value in moodle? 

Not sure but perhaps moodle not automaticly changes the value, but you should be able to set the value now higher.

If you can't set the value over the website at all, check if in the moodle config-file the value maxbytesis set.

If you are able to set a value but not the 500 MB you want, you can check under website-administration -> server -> php-info. There you can see your used php version and also you can search for the values you changed and see if it is recegonized there. If your changes to php.ini not recognized there, you edited the wrong php.ini.

Regards

Marvin