问题
Yesterday, I was able to push without any problems, but today, my framework ( Laravel 4 ) detects that there are not anymore mcrypt on the heroku cedar app.
Do you have information that could help me ?
I tryed to add a php.ini at the root of my project with
extension_dir = "/app/www/ext/"
extension=mcrypt.so
and I download this archive https://s3.amazonaws.com/heroku-buildpack-php-tyler/libmcrypt-2.5.8.tar.gz , took the libmcrypt.so.4.4.8 file, renammed it to mcrypt.so and put it in a ext folder at root of my application.
Thanks in advance.
回答1:
Here's a quick fix:
Fork the official default heroku php build pack (github.com/heroku/heroku-buildpack-php), and revert it back a couple commits (i did it here.. https://github.com/jdomonell/heroku-buildpack-php.git).
Then set your buildpack for the app (I used my own downgraded repo, feel free to use it too):
$ heroku config:add BUILDPACK_URL=https://github.com/jdomonell/heroku-buildpack-php.git
The issue is caused by a recent update that uses PHP_VERSION="5.3.27" (instead of PHP_VERSION="5.3.10") ... which doesn't seem to include mcrypt.
来源:https://stackoverflow.com/questions/17971844/heroku-php-mcrypt-not-found