Nahuels
Nahuels

Reputation: 31

laravel installation mcrypt unable to initialize module

im trying to install laravel 4 on my mac mavericks os with xampp server. I solved several problems but a cant With This:

Warning: PHP Startup: mcrypt: Unable to initialize module Module compiled with module API=20100525 PHP compiled with module API=20121212 These options need to match in Unknown on line 0

i understund the problem , but i dont know how to fix it. thanks a lot !

Upvotes: 0

Views: 3137

Answers (2)

Rahman
Rahman

Reputation: 552

brew reinstall mcrypt --build-from-source php56-mcrypt --build-from-source

You may only need the php56-mcrypt module.

Upvotes: 5

jameslittle230
jameslittle230

Reputation: 3108

Are you using Homebrew? If so, you need to brew tap homebrew/php and then brew install php55-mcrypt.

If you're not using Homebrew, then you really should be. (Xampp probably isn't the way to locally develop Laravel either...) Check out Jeffrey Way's http://laracasts.com. There are a couple of free videos in the series Laravel From Scratch that should answer some installation questions.

Upvotes: 2

Related Questions