1

When i tried to install Yii2 using composer

I had this exception

Script yii\composer\Installer::postCreateProject handling the post-create-project-cmd event terminated with an exception

  [Exception]                                    
  The mcrypt PHP extension is required by Yii2.  

how can i solve this ?

1
  • I get that error message even mcrypt was already installed on my machine. I just ignore it and project works fine... Commented Oct 17, 2014 at 14:11

1 Answer 1

5

You have to install mycrypt first to the php.

See the link below: http://php.net/manual/en/mcrypt.installation.php

Sign up to request clarification or add additional context in comments.

1 Comment

Run php5enmod mcrypt; service apache2 restart

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.