MAMP PRO install extension intl doesn't work

9.6k views Asked by At

I use version 2.2 of MAMP PRO with PHP 5.5.3. I use port to install the packages. I installed php5-intl and I copied the file intl.so in /Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212. I called the extension in the php.ini file via> Edit config> php> php5.5.3.ini because I have the pro version of mamp. After restarting servers and display phpinfo () the extension is not loaded. I tried to call the extension directly in php.ini like this "extension = '/ Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212 /intl.so' but it does not work.

I do not see why extension is not loaded could you help me please ?

Best regards,

1

There are 1 answers

2
Jose Serrano On

Step 1:

With the terminal execute the following command:

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5

Once done go to the folder:

/usr/local/php5 <version-number> /lib/php/extensions/no-debug-non-zts- <version-number> 

Copy the file intl.so and pasted it in the folder of MAMP for me:

/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts- <version-number>

Step 2:

Edit php.ini the following path:

/Applications/MAMP/bin/php/php5.5.3/conf/

Once opened with textEdit search part :

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

Add the following line JUST BEFORE:

extension=intl.so

which should include:

; Extensions

extension=apc.so

extension=imap.so
extension=yaz.so
extension=mcrypt.so
extension=gettext.so
extension=pgsql.so
extension=pdo_pgsql.so
extension=pdo_mysql.so
extension=intl.so

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

Step 3:

Restart your MAMP server.