dongmaomou4117 2014-05-12 00:56
浏览 49
已采纳

Laravel 4 - 需要Mcrypt扩展

I just finished installing Ubuntu, setting up Apache, MySQL, and PHP. I then decided to install the Laravel framework. I ran a composer install and got the following error:

Mcrypt PHP extension required. Script php artisan clear-compiled handling the post-install-cmd event returned with an error

I then installed mcrypt deal and all that remained was the artisan error. I decided to go on about my business because I couldn't find a solution online.

Now I am starting my first laravel project. I ran php artisan migrate:install and it says Mcrypt PHP extension required.

What can I do to fix this?

I ran this command and it didn't help:

sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/apache2/conf.d/20-mcrypt.ini

I've ran this a couple of times and it just says its installed:

sudo apt-get install php5-mcrypt
  • 写回答

1条回答 默认 最新

  • douyamitong57935 2014-05-12 01:10
    关注

    You just need to make sure that the extension config file has been linked into the correct spot. This is accomplished via the php5enmod utility. You shouldn't be creating symbolic links directly

    I'd say this should work. First, remove the symlink you created...

    sudo rm /etc/php5/apache2/conf.d/20-mcrypt.ini
    

    then use the php5enmod tool

    sudo php5enmod mcrypt
    

    then reload Apache

    sudo service apache2 reload
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在node.js中或者java中给wav格式的音频编码成sil格式呢
  • ¥15 不小心不正规的开发公司导致不给我们y码,
  • ¥15 我的代码无法在vc++中运行呀,错误很多
  • ¥50 求一个win系统下运行的可自动抓取arm64架构deb安装包和其依赖包的软件。
  • ¥60 fail to initialize keyboard hotkeys through kernel.0000000000
  • ¥30 ppOCRLabel导出识别结果失败
  • ¥15 Centos7 / PETGEM
  • ¥15 csmar数据进行spss描述性统计分析
  • ¥15 各位请问平行检验趋势图这样要怎么调整?说标准差差异太大了
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题