[英]How to resolve mcrypt error ' Use of undefined constant MCRYPT_RIJNDAEL_128' in php laravel framework?
By running 'php artisan serve' on my phpstorm, i get this error ' ErrorException
in EncryptionServiceProvider.php
line 16: Use of undefined constant MCRYPT_RIJNDAEL_128
- assumed ' MCRYPT_RIJNDAEL_128
'' on browser. 通过在我的phpstorm上运行“ php artisan serve”,我在
EncryptionServiceProvider.php
第16行中收到此错误“ ErrorException
:使用未定义的常量MCRYPT_RIJNDAEL_128
在浏览器上假定为“ MCRYPT_RIJNDAEL_128
”。
I've tried reinstalling mcrypt but it didn't work. 我试过重新安装mcrypt,但是没有用。 Also i didn't find any solution to this problem.
我也没有找到这个问题的任何解决方案。
php artisan serve
PHP Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /Users/optergy/safetybeat-dashboard-live/dashboard/config/app.php on line 83
Laravel development server started on http://localhost:8000/
This error is blocking me to run the project properly. 此错误使我无法正常运行该项目。
After reinstalling mcrypt did you enable it? 重新安装mcrypt后,您启用了它吗? It does not come enabled by default.
默认情况下未启用它。
sudo apt-get install php5-mcrypt
sudo php5enmod mcrypt
sudo service apache2 restart
Or restart nginx if using that. 或重新启动nginx(如果使用的话)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.