Note: You are currently viewing documentation for Moodle 2.9. Up-to-date documentation for the latest stable version of Moodle may be available here: Jon Witts/file-upload-v2.

User:Jon Witts/file-upload-v2: Difference between revisions

From MoodleDocs
No edit summary
Line 7: Line 7:


This is a contentious issue, mainly because you might think that it should be set inside the Moodle. Unfortunately, this is not so, Moodle cannot work outside itself. Your install of PHP is what determines the maximum upload file size; Moodle can only work with those settings determined by PHP. So to change these settings we first need to know what version of PHP you are running and where it is referencing its settings from. PHP uses a file called php.ini to determine its operational settings and this can be located in a number of places.
This is a contentious issue, mainly because you might think that it should be set inside the Moodle. Unfortunately, this is not so, Moodle cannot work outside itself. Your install of PHP is what determines the maximum upload file size; Moodle can only work with those settings determined by PHP. So to change these settings we first need to know what version of PHP you are running and where it is referencing its settings from. PHP uses a file called php.ini to determine its operational settings and this can be located in a number of places.
==What Webserver are you using?==
===Apache===
If you are using an Apche web server you can use .htaccess files to over ride the php.ini settings.
===IIS===
.... edit php.ini ?! ...
===Other===
??


==PHP Version and php.ini location==
==PHP Version and php.ini location==
Line 24: Line 33:
===Shared / Hosted access to server===
===Shared / Hosted access to server===
...
...
==What Webserver are you using?==
===Apache===
If you are using an Apche web server you can use .htaccess files to over ride the php.ini settings.
===IIS===
.... edit php.ini ?! ...
===Other===
??

Revision as of 18:25, 8 March 2010

Probably the most frequently asked question in the Moodle.org Using Moodle forums is "How do I increase the upload file size limit?" The changes that need be made are the same in all versions of Moodle, just in different OS' they need be made in different places. Upload file sizes are restricted in a number of ways and each one in this list restricts the following ones:

Server level
Moodle site level
Course level
Activity level

This is a contentious issue, mainly because you might think that it should be set inside the Moodle. Unfortunately, this is not so, Moodle cannot work outside itself. Your install of PHP is what determines the maximum upload file size; Moodle can only work with those settings determined by PHP. So to change these settings we first need to know what version of PHP you are running and where it is referencing its settings from. PHP uses a file called php.ini to determine its operational settings and this can be located in a number of places.

What Webserver are you using?

Apache

If you are using an Apche web server you can use .htaccess files to over ride the php.ini settings.

IIS

.... edit php.ini ?! ...

Other

??


PHP Version and php.ini location

Create a phpinfo() page or locate the phpinfo section in your Moodle, as per the instructions here: phpinfo

At the very top of the phpinfo page you will see the version of PHP that your server is running. See the relevant section below for information on how to proceed.

PHP Version is 5

Read location of active php.ini file from phpinfo page...

PHP Version is 4

...

What access do you have to the server?

To make changes to the main php.ini file you will need administrative access to the server...

Local / Full access to server

...

Shared / Hosted access to server

...