Juan Pablo Rinaldi
Juan Pablo Rinaldi

Reputation: 3504

Choosing PHP version for a Heroku app

I deployed an app to Heroku and it correctly detected that it was a PHP app. It works great, but there's a small issue. Heroku chose to use PHP version 5.3, and I'd like to use version 5.4.

Is this possible? If so, how?

Upvotes: 3

Views: 2447

Answers (1)

friism
friism

Reputation: 19279

There are several unofficial buildpacks that use more modern PHP versions, here's an example that uses PHP 5.4 and has several other improvements: https://github.com/iphoting/heroku-buildpack-php-tyler

To use:

heroku config:add BUILDPACK_URL=git://github.com/iphoting/heroku-buildpack-php-tyler.git

... and push a new build.

Upvotes: 4

Related Questions