Ubuntu 升级到 13.10 后 mCrypt 不存在 [英] mCrypt not present after Ubuntu upgrade to 13.10

查看:28
本文介绍了Ubuntu 升级到 13.10 后 mCrypt 不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我将系统从 Ubuntu 13.04 升级到 13.10 后,apache、mysql 和 php 配置出现了几个问题.

After I have upgraded my system from Ubuntu 13.04 to 13.10 several problems have occurred with apache, mysql and php configurations.

我解决了大部分问题,但我似乎无法让 mCrypt 库正常工作.包已安装,所以我不需要 apt-get 它.服务器工作正常,一切似乎都很好,但是当我尝试使用 Laravel 4 运行 php artisan serve 时,我收到一条消息,提示需要 mCrypt.

I solved most of them but I can't seem to get mCrypt library working. Package is installed so i don't need to apt-get it. Server works and everything seems fine, but when I try to run php artisan serve with Laravel 4, I get a message that mCrypt is required.

我做了 php --ri mcrypt 并且输出是 Extension 'mcrypt' not present.我试过把 extension=mcrypt.so 放到 /etc/php5/apache2/php.ini 中,但是没有用.

I did php --ri mcrypt and the output was Extension 'mcrypt' not present. I have tried putting extension=mcrypt.so to /etc/php5/apache2/php.ini but it didn't work.

有什么想法吗?

dpkg --get-selections 的输出 |grep php5

libapache2-mod-php5         install
php5                        install
php5-cli                    install
php5-common                 install
php5-gd                     install
php5-json                   install
php5-mcrypt                 install
php5-mysql                  install
php5-readline               install

推荐答案

我想我在 launchpad.net.

sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
sudo php5enmod mcrypt
sudo service apache2 restart

这对我有用.

这篇关于Ubuntu 升级到 13.10 后 mCrypt 不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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