# Http error 500 after deploying a slim3 app

**URL:** <https://discourse.slimframework.com/t/http-error-500-after-deploying-a-slim3-app/1505>\
**Category:** Questions\
**Created:** [May 20, 2017, 9:45pm UTC](https://discourse.slimframework.com/t/http-error-500-after-deploying-a-slim3-app/1505 "2017-05-20T21:45:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![h0lend9r](https://avatars.discourse-cdn.com/v4/letter/h/50afbb/32.png) [@h0lend9r](https://discourse.slimframework.com/u/h0lend9r)\
**Post date:** [May 20, 2017, 9:45pm UTC](https://discourse.slimframework.com/t/http-error-500-after-deploying-a-slim3-app/1505/1 "2017-05-20T21:45:06Z")

</div>

So I got my app fully working on local server, but when I upload it to a server, I am getting a http error 500. Thing is I can’t access the command line tool so i had to upload the whole **vendors** folder. Could this be the possible source of my problem. I tested every step the app makes on production and it works until returning the response `return $this->view->render($response, 'auth/login.twig');`. I am lost and I already wasted a lot of time searching for the fix so I am asking if someone maybe encountered such a problem and succeeded upon fixing it. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![tflight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/tflight/32/1205_2.png) [@tflight](https://discourse.slimframework.com/u/tflight)\
**Post date:** [May 21, 2017, 1:24pm UTC](https://discourse.slimframework.com/t/http-error-500-after-deploying-a-slim3-app/1505/2 "2017-05-21T13:24:49Z")

</div>

If you are getting a 500 code error, look in your server’s error log as it will provide more details about the error.

---

<div class="post-metadata">

**Author:** ![h0lend9r](https://avatars.discourse-cdn.com/v4/letter/h/50afbb/32.png) [@h0lend9r](https://discourse.slimframework.com/u/h0lend9r)\
**Post date:** [May 21, 2017, 7:27pm UTC](https://discourse.slimframework.com/t/http-error-500-after-deploying-a-slim3-app/1505/3 "2017-05-21T19:27:42Z")

</div>

Dumb mistake, but the server was using php in version 5.6.30, and extension [Twig-View](https://packagist.org/packages/slim/twig-view) requires php in version 7. Thanks to [SVL](http://discourse.slimframework.com/u/SVL) for letting me know.

---

<div class="post-metadata">

**Author:** ![tflight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/tflight/32/1205_2.png) [@tflight](https://discourse.slimframework.com/u/tflight)\
**Post date:** [May 22, 2017, 1:59pm UTC](https://discourse.slimframework.com/t/http-error-500-after-deploying-a-slim3-app/1505/4 "2017-05-22T13:59:03Z")

</div>

FYI, Twig-View does not require PHP 7, it will accept `>=5.5.0`. Twig View requires Twig. Twig’s version 1.x requires PHP `>=5.3.3` and Twig version 2.x requires PHP `^7.0`.

So in your case, the thing to do would be to add a config platform entry to your `composer.json` file locally. In there you would specify the PHP version you are building against so that you will get components installed automatically that match your server.

```json
    "config": {
        "platform": {
            "php": "5.6.30"
        }
    }

```

---

<div class="post-metadata">

**Author:** ![h0lend9r](https://avatars.discourse-cdn.com/v4/letter/h/50afbb/32.png) [@h0lend9r](https://discourse.slimframework.com/u/h0lend9r)\
**Post date:** [May 22, 2017, 2:38pm UTC](https://discourse.slimframework.com/t/http-error-500-after-deploying-a-slim3-app/1505/5 "2017-05-22T14:38:16Z")

</div>

Oh, thanks for info 🙂 Will test it aswell.
