increasing max upload size on server 2008 R2

increasing max upload size on server 2008 R2

by Mary Cooch -
Number of replies: 6
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Our  network manager has installed Moodle in our school  on server 2008 R2 IIS - but the vanilla install has a max upload size of 2MB.

He says he has followed the instructions here  http://docs.moodle.org/24/en/File_upload_size

trying both with instructions for  the server 2008 and the XP/Server 2003 but no joy.

Does anyone have any suggestions please?

thanks

Average of ratings: -
In reply to Mary Cooch

Re: increasing max upload size on server 2008 R2

by Alan Hare -

Mary,

You will need to make changes in the php.ini and the web.config.  IIS 7.x has a limit of 30mb.  Change the values below to match your needs.

php.ini

  • upload_max_filesize = 500M
  • post_max_size = 500M

web.config

<system.webServer>
        <security>
            <requestFiltering>
                <requestLimits  maxAllowedContentLength="524288000"/>
            </requestFiltering>
        </security>
</system.webServer>

I would also suggest installing the windows PHP Manager via the Windows Web Installer.

Reference links:

 

Average of ratings: Useful (2)
In reply to Alan Hare

Re: increasing max upload size on server 2008 R2

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Hi there. Thanks very much for this - I will pass it on but - can you just confirm something - "IIS 7  has a limit  of 30MB" You mean we can't upload (through Moodle interface) anything larger than 30MB???  

In reply to Mary Cooch

Re: increasing max upload size on server 2008 R2

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

(ignore my last post) He's done it - 500MB - great thanks smile

In reply to Mary Cooch

Re: increasing max upload size on server 2008 R2

by Alan Hare -

The limit is imposed by default, the web.config changes the limit.

Glad I could be of assistance.

 

~Alan

In reply to Alan Hare

Re: increasing max upload size on server 2008 R2

by Sairam Mukkamala -

Hi Alan

I'm using moodle 2.4 version and IIS 7.

i want to increase the moodle upload_max_filesize from 2MB to 500MB.

I changed the upload_max_filesize and post_max_size in php.ini file and also included the following code in web.config file in php folder.

<security>
<requestFiltering>
<requestLimits maxAllowedContentLength=”2000000000″ />
</requestFiltering>
</security>

 

but still i'm getting 2MB only, what else i need to change.

please help me

Thanks in advance