Increase the max_upload_file in Moodle

To increase the maximum file upload size in Moodle, you need to adjust settings in three places:

1. Server-Level (PHP Configuration)

    You need to change the PHP settings in the php.ini file:

               sandip@moodle:~# /etc/php/8.x/apache2/php.ini      




            

                                           

upload_max_filesize = 100M    (line no.850)

post_max_size = 100M             (line no. 698)

max_execution_time = 300       (line no. 409)

 
            sandip@moodle:~# sudo systemctl restart apache2

  After editing, restart the web server:


2. Moodle Site-level Configuration

    Go to your Moodle admin panel:

        Site administration > Security > Site policies > Maximum uploaded file size


    




Set it to the maximum value you want.


3. Course-Level Upload Limited

    In each course:

        Course settings > Files and uploads > Maximum upload size

    Set it appropriately (up to the site-wide max).

    

Comments

Popular posts from this blog

Install Moodle 4.3 on Ubuntu 23.10

Activate window and MS-Office with PowerShell

GNS3 installation in Linux