title: How to increase the maximum allowed upload filesize for Moodle
body: <p>I've tried all of the suggestions that I've found and haven't succeeded in eliminating the error message:</p>
  
  <pre><code>The page at [ip address] says:
  [filename] is too large to upload
  </code></pre>
  
  <p>I'm running Ubuntu 12.04.1 server and Moodle 2.3.1+.  As others have suggested, I modified
  <code>/etc/apache2/httpd.conf</code> adding 
  <code>LimitRequestBody 0</code> so that there is no limit on the maximum size of uploads.</p>
  
  <p>I also modified <code>/etc/php5/apache2/php.ini</code> setting:</p>
  
  <pre><code>post_max_size = 1024M
  upload_max_filesize = 1024M
  max_execution_time = 300
  </code></pre>
  
  <p>Those changes actually had an effect on Moodle and caused it to list larger upload limits in the site security policies and the course settings.  Prior to revising php.ini the maximums were 2MB. And so, I set each of those limits to 1GB.</p>
  
  <pre><code>http://[ip address]/moodle/admin/settings.php?section=sitepolicies
  http://[ip address]/moodle/admin/settings.php?section=coursesettings
  </code></pre>
  
  <p>And still I get the error message that the file I'm trying to upload is too large.  It is only 30MB.</p>
  
  <p>Can you help?</p>