title: Failed to load resource: the server responded with a status of 500 error (Internal Server Error)
body: <p><strong>Summary :</strong></p>
  
  <p>While making a <code>$http</code> call from angular to the backend(php file) for getting the requested data. In localhost(e.g. <a href="http://localhost" rel="nofollow noreferrer">http://localhost</a>) everything is working fine. Issue is generating when open a web page on hosted server(e.g. <a href="http://www.example.com" rel="nofollow noreferrer">http://www.example.com</a>). I am getting this error.</p>
  
  <blockquote>
    <p>Internal Server Error</p>
    
    <p>The server encountered an internal error or misconfiguration and was
    unable to complete your request.</p>
    
    <p>Please contact the server administrator, webmaster@xyz.com and inform
    them of the time the error occurred, and anything you might have done
    that may have caused the error.</p>
    
    <p>More information about this error may be available in the server error
    log.</p>
    
    <p>Additionally, a 500 Internal Server Error error was encountered while
    trying to use an ErrorDocument to handle the request.</p>
  </blockquote>
  
  <p>This is my <code>.htaccess</code> file :</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /s/public/
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*) /s/public/#/$1 
  &lt;/IfModule&gt;
  </code></pre>
  
  <p><strong>Tried So far :</strong></p>
  
  <ol>
  <li><p>check error logs in <code>cpanel</code>.</p>
  
  <p>I already checked out the error log and get more information on what is      causing the error. Here is an example video that i followed for cPanel logs.</p>
  
  <p><a href="http://www.youtube.com/watch?v=pzO1UNHZjZo" rel="nofollow noreferrer">http://www.youtube.com/watch?v=pzO1UNHZjZo</a></p>
  
  <p>Server logs :</p>
  
  <p><a href="https://i.stack.imgur.com/zTkqK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zTkqK.png" alt="enter image description here"></a></p></li>
  </ol>
  
  <p>I am not able to understand this error.</p>
  
  <p>There are lot of answers on SO but all are confusing.</p>
  
  <p><a href="https://stackoverflow.com/questions/19508313/memory-limit-1024m-still-cannot-allocate-memory-couldnt-create-child-proce">memory_limit = 1024M, still, Cannot allocate memory: couldn&#39;t create child process: /opt/suphp/sbin/suphp</a></p>
  
  <p>Do any one have Idea why this problem is occuring? </p>
  
  <p>Is there any misconfiguration with my server settings.
  Any immediate help will be highly appreciable. Thanks</p>