Laravel https和Auth是否需要php-mcrypt? [英] Laravel Is php-mcrypt necessary for https and Auth?
问题描述
所有内容都在标题中:如果未安装php mcrypt,可以使用https和Auth ::类吗? (我使用的是架构s390x上的redhat enterprise linux 6.1,这是不可能找到预编译的软件包的).
Everything is in the title : can I use https and the Auth:: class whithout having installed php mcrypt ? (I'm on a redhat enterprise linux 6.1 on architecture s390x, it's just impossible to find pre-compiled packages).
如果可能的话,我会在没有Mcrypt的情况下使用Laravel ...
If it's possible then I would just use Laravel whithout Mcrypt...
推荐答案
mcrypt是Laravel的要求,您必须在未安装mcrypt的情况下才能运行laravel应用.
mcrypt is a requirement of Laravel, you simply cannot run a laravel app without having mcrypt installed.
以下链接可能有助于安装mcrypt: http://injustfiveminutes.com/2012/11/23/install-php-mcrypt-extension-on-rhel-6/
The following link may help with installing mcrypt: http://injustfiveminutes.com/2012/11/23/install-php-mcrypt-extension-on-rhel-6/
节选:
php-mcrypt扩展在Redhat Enterprise Linux 6上不可用 尽管某些应用程序(例如Magento或phpMyAdmin)需要它 好好工作.我们可以通过Fedora Project轻松安装它 存储库.
The php-mcrypt extension is not available on Redhat Enterprise Linux 6 although some applications such as Magento or phpMyAdmin require it to work properly. We can easily install it though from the Fedora Project repositories.
1)下载以下RPM包装:
1) Download the following RPM pacakges:
wget http ://dl.fedoraproject.org/pub/epel/6/x86_64/php-mcrypt-5.3.3-1.el6.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/libmcrypt-2.5.8-9.el6.x86_64.rpm
2)使用YUM安装它们:
2) Install them using YUM:
$ yum localinstall php-mcrypt-5.3.3-1.el6.x86_64.rpm
$ yum localinstall php-mcrypt-5.3.3-1.el6.x86_64.rpm
$ libmcrypt-2.5.8-9.el6.x86_64.rpm
$ libmcrypt-2.5.8-9.el6.x86_64.rpm
3)重新加载Apache服务器以加载扩展:
3) Reload Apache server to load the extension up:
$服务httpd重新启动
$ service httpd restart
这篇关于Laravel https和Auth是否需要php-mcrypt?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!