需要Mcrypt PHP扩展.在具有Ubuntu 14的Laravel中 [英] Mcrypt PHP extension required.IN Laravel With Ubuntu 14

查看:65
本文介绍了需要Mcrypt PHP扩展.在具有Ubuntu 14的Laravel中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将laravel应用程序迁移到ubuntu中,并出现诸如需要Mcrypt PHP扩展程序之类的错误. 当我使用 phpinfo()功能检查php详细信息时,它将显示在屏幕下方.

I am trying to migrate laravel app into ubuntu and getting error like Mcrypt PHP extension required. when i check php details with phpinfo() function it showing below screen.

请在下面找到终端屏幕截图,

PLlease find the Terminal Screenshot below,

php.ini

如何解决这个问题?

How to solve this issue ?

推荐答案

/etc/php5/mods-available/mcrypt.ini中查找mcrypt.ini文件,如果该文件不存在,则意味着php5-mcrypt可以创建该文件.

Find mcrypt.ini file in /etc/php5/mods-available/mcrypt.ini ,if this file does not exist,means php5-mcrypt could create the file.

  • 在目录/etc/php5/mods-available/中创建文件mcrypt.ini
  • 并向其中添加以下配置:

  • create the file mcrypt.ini in dir /etc/php5/mods-available/
  • And add the following config to it:

extension=mcrypt.so

运行此命令

sudo php5enmod mcrypt sudo service php5-fpm restart

这对我有用.干杯

这篇关于需要Mcrypt PHP扩展.在具有Ubuntu 14的Laravel中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆