title: HTTP 500 Internal Server error when uploading files
body: <p>This is driving me crazy. I have a php file upload script hosted on CPanel-controlled web hosting, whenever I try to upload files larger than 3-4 MB I get a HTTP 500 Internal Server Error. Now, I did create a php.ini file in my public_html directory and did specify:</p>
  
  <pre><code>upload_max_filesize = 250M
  post_max_size = 250M
  </code></pre>
  
  <p>and indeed, when I execute <code>phpinfo()</code> I see that both of these values are set and active. When I run the exact same script on my local wamp configuration it works.</p>
  
  <p>I'm out of options here. What could it be? Memory exhaustion? Highly doubt it.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Weird: when I go to <code>PHP Configuration</code> in CPanel, <code>upload_max_filesize</code> is set to <code>2MB</code> even though <code>phpinfo()</code> shows <code>250MB</code>. So apparently it is blocked server-wide in WHM? Why does it say otherwise in phpinfo?</p>