";Bcrypt哈希不受支持”;在生产服务器上的Laravel 4与PHP 5.4&;Mcrypt


"Bcrypt hashing not supported" error on Laravel 4 on production server with PHP 5.4 & Mcrypt

我在注册过程中遇到这个错误,因为密码是散列的。

我检查了一下,我们正在运行PHP 5.4.something,当在cPanel上运行EasyPache时,我还验证了Mcrypt是否已安装。是什么原因导致了这个问题?

执行'phpinfo();'并确保您有>=5.3.7和mcrypt。

您使用的是哪个环境?我在Laravel的Ubuntu上遇到了mcrypt问题,直到我没有运行sudo apt-get install php5-mcrypt当然,我必须在php.ini文件中启用mcrypt扩展名。