Laravel Is php-mcrypt necessary for https and Auth?

守給你的承諾、 提交于 2019-12-24 13:33:24

问题


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).

If it's possible then I would just use Laravel whithout Mcrypt...


回答1:


mcrypt is a requirement of Laravel, you simply cannot run a laravel app without having mcrypt installed.

The following link may help with installing mcrypt: http://injustfiveminutes.com/2012/11/23/install-php-mcrypt-extension-on-rhel-6/

Excerpt:

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) 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) Install them using YUM:

$ yum localinstall php-mcrypt-5.3.3-1.el6.x86_64.rpm

$ libmcrypt-2.5.8-9.el6.x86_64.rpm

3) Reload Apache server to load the extension up:

$ service httpd restart



来源:https://stackoverflow.com/questions/22472359/laravel-is-php-mcrypt-necessary-for-https-and-auth

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