Share this Article !

Increasing Moodle’s Max Upload Size

Increasing Moodle’s Max Upload Size

Don’t worry if you have trouble using Moodle’s upload size limitation; a few simple adjustments will allow you to have a seamless, productive Moodle experience while increasing the maximum upload size. For thorough instructions, keep reading.

result after fixing in php.ini

Adjust PHP Settings

Firstly, locate your php.ini file. You can find this by going to Site administration → Server → PHP Info. Edit the file and set upload_max_filesize it post_max_size up to the limit you wish.You can modify the file upload size by following these instructions to edit your php.ini file.

Modifying your php.ini

Open php.ini file and find  “post_max_size“,”upload_max_filesize” and change it to values that suit your needs.

post_max_size=2048M;
upload_max_filesize=2048M;

Adjust .htaccess File

Next, locate the .htaccess file in Moodle’s root directory. Add the following code: php_value upload_max_filesize [desired size]M and php_value post_max_size [desired size]M.

The .htaccess file is a directory-level configuration file used to override server configurations.you can edit .htaccess using FTP or cPanel’s file manager. Incorrectly editing .htaccess can result in server errors. Always make a backup before making changes.

Adjust Server Configuration File

If Moodle is hosted on a shared server, your hosting company may have configured it to prevent changes to PHP values. You could ask if they can adjust upload_max_filesize and post_max_size in the server configuration file.Your hosting company may not allow server configuration changes. If so, consider switching to a more flexible host.

If you’re not sure where it is, contact your hosting company or see the hosting provider’s documentation.Restart your server, or at least the Apache or Nginx service on the server, after making any modifications to the php.ini or .htaccess file. This verifies that the modifications are in effect.make sure to check if the new limit has been implemented before celebrating. To be sure there are no issues, try uploading a file that is almost at the limit.

Conclusion

  • Benefits of Increasing Max Upload Size
    Users have more freedom to upload larger files without the inconvenience of compression or file splitting.
  • Upload Limit Tip
    Consider making a maximum limit for the course or assignment to avoid overwhelming your server.

 

Share this Article !


You may like this
Top 10 most popular programming language in 2025

Top 10 most popular programming language in 2025

Nowadays, we know and see coding skills hold immense value in technology beyond 1990 till 2025, with effects on career advancement being profound. Extremely popular languages such as Python, JavaScript, and Java...
how to improve seo and increase audience for your website

how to improve seo and increase audience for your website

To increase your audience and boost your SEO (Search Engine Optimization), you’ll need to implement a mix of technical strategies, content creation, and marketing campaigns. This is a step-by-step guide to help...
Moodle – how get total course completed and login chart in current year into dashboard page

Moodle – how get total course completed and login chart in current year into dashboard page

To add the total course completed and login chart in the current year to the dashboard, you need to get a query from course complete and login from the database. We created...
(100% worked) How to fix PHP is not recognized as an internal or external command for Xampp Or Wamp

(100% worked) How to fix PHP is not recognized as an internal or external command for Xampp Or Wamp

5 steps for fixing PHP is not recognized as an internal or external command for Xampp rr Wamp. You can follow the tips below. Go to My Computer->properties -> Advanced system setting->...
How to loop post under category in wordpress

How to loop post under category in wordpress

To loop posts under categories, you should know something. get_categories($args): Arguments to retrieve categories and we want to return array List of category objects that   ‘parent’ => 0 .  $categories =...
boostrap columns left in desktop and right in mobile

boostrap columns left in desktop and right in mobile

When you want to change columns left on desktop and right on mobile, we always think about the responsive screen.This tip will help you. following the below code : <div class="container">  ...