简体   繁体   English

如何在Ubuntu 14.04 LTS中为Lampp安装Mcrypt

[英]How do I install mcrypt for lampp in ubuntu 14.04 lts

I am new in php framework. 我是php框架的新手。 So, I am trying to grasp the pros and cons of Laravel 4.2.11 所以,我试图把握Laravel 4.2.11的利弊

But when I was going to install composer in the laravel's root folder in the htdocs folder of lampp, it showed warning in the terminal that it requires MCrypt PHP Extension. 但是,当我要在Lampp的htdocs文件夹中的laravel的根文件夹中安装composer时,它在终端中显示警告,提示它需要MCrypt PHP Extension。

By the way, I have another php installed in my PC in /usr/bin/php and its version is 5.5.9 and Lampp's php version is 5.6.12 顺便说一句,我在PC中的/ usr / bin / php中安装了另一个php,它的版本是5.5.9,Lampp的php版本是5.6.12。

phpinfo() of Lampp showed that It has mcrypt support and mcrypt_filter support, both are enabled. Lampp的phpinfo()表明它具有mcrypt支持和mcrypt_filter支持,两者均已启用。

What should I do to enable artisan to work for Lampp's php? 我应该怎么做才能使工匠能够为Lampp的php工作?

First ensure the mcrypt module is installed: 首先确保已安装mcrypt模块:

sudo apt-get install php5-mcrypt

Then: 然后:

sudo php5enmod mcrypt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM