0

I'm Installing Laravel, and it requires mcrypt extension to be activated. I want to know how to change the php.ini that Terminal uses to the one in my Apache (MAMP).

How can I do that?

crynobone
  • 1,814
  • 12
  • 22
Khalid Khalil
  • 419
  • 1
  • 6
  • 14
  • Read [this post](http://www.glenscott.co.uk/blog/2011/08/29/install-mcrypt-php-extension-on-mac-os-x-lion/). You can google it :-) – shin Jun 09 '13 at 11:46
  • @shin Ok that's was useful , but i prefer changing the php.ini that terminal deals with , that will be better for me . – Khalid Khalil Jun 09 '13 at 11:49
  • php.ini in Mac is /Applications/MAMP/bin/php/php5.2.17/conf/php.ini or /Applications/MAMP/bin/php/php5.3.6/conf/php.ini – shin Jun 09 '13 at 11:50
  • @shin I want to change it to this dir. /applications/mamp/bin/php/php5.4.10/conf/php.ini this is my mamp php.ini file – Khalid Khalil Jun 09 '13 at 11:52
  • I'm going to try the article you've put and i'll post the results – Khalid Khalil Jun 09 '13 at 11:54
  • The article you've posted envolves downloading and installing xCode and that's require a lot of time with my internet connection I just want to install that mcrypt lib for laravel :( – Khalid Khalil Jun 09 '13 at 12:02
  • Surely you want to use a different PHP binary, not a different PHP ini file? Use "which php" on your terminal to find out where PHP is right now. – Phill Sparks Jun 09 '13 at 15:38
  • @PhillSparks Yep ! I was looking for that ! How can i change that dir to my apache php bin ?? – Khalid Khalil Jun 09 '13 at 15:43
  • See http://stackoverflow.com/a/11035955/1269513 and http://stackoverflow.com/a/4262717/1269513 – Phill Sparks Jun 09 '13 at 15:45
  • @PhillSparks YOU MADE MY DAY !! Thanks very much sir !! Laravel 4 Finally is working :) – Khalid Khalil Jun 09 '13 at 15:56

0 Answers0