Answers.Body: <p>So, turns out the issue was with the <code>$app = require 'bootstrap.php';</code> line in app/index.php.  There was another directory for smarty template engine that was getting pulled from for the bootstrap file.  After removing that conflicting file, the issue was resolved.  Strange issue, but hopefully can help if anyone bumps into this in the future...</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-12T03:53:07.367Z
Answers.LastActivityDate: 2018-06-12T03:53:07.367Z
Answers.UserDisplayName: Jegra
Body: <p>I have a fresh LAMP instance based on a bitnami image on AWS. All server requirements are met for Craft 2, but I'm getting a 500 error when trying to hit the site:</p>
  
  <blockquote>
    <p>site.com is currently unable to handle this request. HTTP ERROR 500</p>
  </blockquote>
  
  <p>Seeing this in the error log:</p>
  
  <blockquote>
    <p>Uncaught Error: Call to a member function run() on integer</p>
  </blockquote>
  
  <p>I've done separate db tests for pdo and mysqli -- connectivity seems fine. Permissions all look correct (774). Any thoughts on what could be causing?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-10T22:35:34.087Z
Comments.Text: No idea, but there is a similar question here that might help: https://craftcms.stackexchange.com/questions/19332/500-error-with-no-details-on-site-migration
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-12T03:48:47.827Z
Comments.Text: Thanks Brad.  I think we tracked it down -- will post a separate reply describing the fix.
Comments.UserDisplayName: Jegra
Tags: <error-message><install><aws>
Title: 500 Error on AWS bitnami instance
ThreadText: # 500 Error on AWS bitnami instance
  
  (Asked by: username_0 on 2018-06-10)
  
  I have a fresh LAMP instance based on a bitnami image on AWS. All server requirements are met for Craft 2, but I'm getting a 500 error when trying to hit the site:
  
  > site.com is currently unable to handle this request. HTTP ERROR 500
  
  Seeing this in the error log:
  
  > Uncaught Error: Call to a member function run() on integer
  
  I've done separate db tests for pdo and mysqli -- connectivity seems fine. Permissions all look correct (774). Any thoughts on what could be causing?
  
  **Tags:** error-message, install, aws
  
  > **Comments:**
  > **username_1**: No idea, but there is a similar question here that might help: https://craftcms.stackexchange.com/questions/19332/500-error-with-no-details-on-site-migration  
  > **username_0**: Thanks username_1.  I think we tracked it down -- will post a separate reply describing the fix.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-06-12. Score: 2 | Accepted answer
  
  So, turns out the issue was with the `$app = require 'bootstrap.php';` line in app/index.php. There was another directory for smarty template engine that was getting pulled from for the bootstrap file. After removing that conflicting file, the issue was resolved. Strange issue, but hopefully can help if anyone bumps into this in the future...
  
  
  ---
  
  