Heroku PHP mcrypt not found

扶醉桌前 提交于 2020-01-03 04:37:05

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!