Cannot increase upload size past 2MB

Editing apache.conf to increase max upload

by Marc Grober -
Number of replies: 0
Very strange..... seems like somehow two drafts of my post were published.... LOL

In any event, if you look here:
http://docs.moodle.org/en/Step-by-step_Install_Guide_for_Ubuntu_using_apt-get
you will find a discussion of the moodle file you discovered,

This moodle install will only work from the localhost. To make it accessible from other hosts you must edit the file /etc/apache2/conf.d/moodle. Type

sudo nano /etc/apache2/conf.d/moodle

(This is actually a soft link from /etc/moodle/apache.conf). This fires up the 'nano' text editor which is command line text editor and the sudo gives you the write access you need.

There is also extensive discussion about linking /etc/moodle/apache.conf with /etc/pache2/conf.d/moodle

And here is a discussion on the packaging specifics peculiar to some forms of linux:
http://www.control-escape.com/web/configuring-apache2-debian.html

As you can see, apache will read as conf files the contents of conf.d, so it is "easier" to set moodle apache conf directives in /etc/moodle/apache.conf, which through linking to the apache conf.d directory, are read when you force apache to reread conf files via a restart....

Of course, none of this is apparently documented in the docs vis-a-vis changing file limits.... LOL.... and I will try to get to that, but if you would like to experiment so that the docs could address some examples (deleting the file, commenting out the directives, use of the file instead of a custom php.ini, etc) that would be great.....