<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>

CC BY-SA 4.0
2018-06-12T03:53:07.367Z
2018-06-12T03:53:07.367Z
Jegra
<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>

CC BY-SA 4.0
2018-06-10T22:35:34.087Z
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
Brad Bell
CC BY-SA 4.0
2018-06-12T03:48:47.827Z
Thanks Brad.  I think we tracked it down -- will post a separate reply describing the fix.
Jegra
<error-message><install><aws>
500 Error on AWS bitnami instance
# 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 Brad.  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...


---

