试图设置Laravel并不断被这个错误击中.我通过brew安装了mcrypt,它位于/usr/local/ceral中.有什么 idea 吗..如果有必要的话,它也不会出现在终端命令php-m中.我正在用Mac原生网络服务器运行Mountaion Lion.
试图设置Laravel并不断被这个错误击中.我通过brew安装了mcrypt,它位于/usr/local/ceral中.有什么 idea 吗..如果有必要的话,它也不会出现在终端命令php-m中.我正在用Mac原生网络服务器运行Mountaion Lion.
您还需要在php.ini
文件中启用它,并可能重新启动Apache.
In php.ini
you will find ;mcrypt.so
and remove the ;
from it.
或者,如果它不在那里,就在某个地方加mcrypt.so
.
Also the salt option has been deprecated as of PHP 7.0.0. It is now preferred to simply use the salt that is generated by default.