找不到Heroku PHP mcrypt [英] Heroku PHP mcrypt not found

查看:107
本文介绍了找不到Heroku PHP mcrypt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天,我能够毫无问题地推送,但今天,我的框架(Laravel 4)发现,heroku雪松应用程序上已经没有mcrypt了。



你有信息可以帮助我吗?



我尝试在项目的根目录下添加一个php.ini文件,其中包含

  extension_dir =/ app / www / ext /
extension = mcrypt.so

我下载了这个档案 https:/ /s3.amazonaws.com/heroku-buildpack-php-tyler/libmcrypt-2.5.8.tar.gz ,将libmcrypt.so.4.4.8文件重新安装到mcrypt.so并放入我的应用程序根目录下的一个ext文件夹。



预先感谢。

解决方案

/ p>

分叉官方默认的heroku php构建包(github.com/heroku/heroku-buildpack-php),并将其恢复为几个提交
(我做了它在这里.. https://github.com/jdomonell/heroku-buildpack-php.git )。然后为应用程序设置你的buildpack(我用我自己的降级回购,也可以使用它):

$ b




$ b

$ heroku config:add BUILDPACK_URL = https:// github .com / jdomonell / heroku-buildpack-php.git



这个问题是由最近使用PHP_VERSION =5.3.27的更新引起的(取而代之PHP_VERSION =5.3.10)...这似乎不包括mcrypt。

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.

解决方案

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.

这篇关于找不到Heroku PHP mcrypt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆