Mcrypt PHP extension required in Laravel [duplicate]

二次信任 提交于 2019-12-03 20:14:06

You need to check which ini file is being loaded. PHP CLI, and PHP server can sometimes run different config files.

Create a page with:

    <?php echo phpinfo(); ?>

then see which ini file is being loaded.

Installing the php5-mcrypt doesn't automatically enable the module. Maybe you have to enable it manually:

Install the module

apt-get install php5-mcrypt

Create an auxialiar symlink and enable the module

cd /etc/php5/mods-available
ln -sf ../conf.d/mcrypt.ini .
php5enmod mcrypt

And reload apache

service apache2 reload

Hope it helps!

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