简体   繁体   中英

How do I install mcrypt for lampp in ubuntu 14.04 lts

I am new in php framework. So, I am trying to grasp the pros and cons of 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.

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

phpinfo() of Lampp showed that It has mcrypt support and mcrypt_filter support, both are enabled.

What should I do to enable artisan to work for Lampp's php?

First ensure the mcrypt module is installed:

sudo apt-get install php5-mcrypt

Then:

sudo php5enmod mcrypt

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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