title: Cannot change upload_max_filesize or post_max_size in php.ini
body: <p>Bear in mind, I am no sysadmin, I am just a developer. I cannot find anyone with the <em>exact</em> problem as me, just similar, and none of their "fixes" seem to work.</p>
  
  <p>I am currently running an Amazon EC2 instance running.</p>
  
  <pre><code>CentOS 6.2
  Nginx 1.2.2
  PHP 5.3.16 with APC
  Percona 5.5.24 // not currently using this as I am using an RDS
  </code></pre>
  
  <p>I have set my php.ini (/etc/php.ini) settings to the following</p>
  
  <pre><code>upload_max_filesize=10M
  post_max_filesize=20M
  </code></pre>
  
  <p>After reloading the config, using <code>php -i</code> via ssh, these settings seemed to be loaded. Showing <code>upload_max_filesize=10M</code>, etc.</p>
  
  <p>When using <code>phpinfo()</code> or <code>ini_get</code>, both options are returned as <code>4M</code></p>
  
  <p><code>phpinfo()</code> indicates that the file I am editing is the one loaded (<code>/etc/php.ini</code>).</p>
  
  <p>I have also run <code>php -i | grep "\.ini"</code> to check which files are loaded, and there are no unnecessary loaded configs. I even went through each loaded file individually to check they didn't have the settings inside.</p>
  
  <p>Additionally, I have been suggested to try using a <code>.user.ini</code> config file. This did not change the values either.</p>
  
  <p><code>ini_set()</code> does not work either.</p>
  
  <p>I'm at a bit of a loss.</p>
  
  <p>EDIT: not sure this will help, but I am using this AMI <a href="http://megumi-cloud.com/">http://megumi-cloud.com/</a></p>