title: HTTP ERROR when trying to upload an image in Nextgen gallery
body: <p>I am getting an error when trying to upload an image on NextGen gallery.
  The error says:</p>
  
  <blockquote>
    <p>ERROR HTTP error.: HTTP Error.</p>
  </blockquote>
  
  <p>When checking on developer tool it says:</p>
  
  <blockquote>
    <p>POST nextgen-gallery/admin/upload.php 500 (Internal Server Error)</p>
  </blockquote>
  
  <p>I read on the internet that it may be the php.ini configuration (that limits the file size or process duration, but I couldn't solve it.<br>
  I also saw that it can be solved editing the HTACCESS file but it didn't lead me anywhere. </p>
  
  <p>From what I saw it's related to the size of the image. Whenever the image is bigger than 100-150kb it's failing. But this is not for sure the problem. It can be the this is causing a large duration time to process and there is a limit of that which is creating eventually the error.</p>
  
  <p>Do you have any advice?</p>
  
  <p>Thanks.</p>
  
  <hr>
  
  <p>UPDATE:</p>
  
  <p>php configuration:</p>
  
  <pre><code>post_max_size 48M
  upload_max_filesize 20M
  </code></pre>
  
  <p>Apache error.log:</p>
  
  <pre><code>mod_fcgid: HTTP request length 131768 (so far) exceeds MaxRequestLen (131072)
  </code></pre>