I want to run my installation of CakePHP 3 with XAMPP 7 on my Mac and always get the following error message in my browser:
Fatal error: You must enable the intl extension to use CakePHP. in /Applications/XAMPP/xamppfiles/htdocs/cake_test/config/bootstrap.php on line 27
I already did the following:
- I commented out
extension=php_intl.dll
in the XAMPP’s php.ini file. - I installed
intl
with the terminal commandsudo pecl install intl
- When my PHP path is set for “/usr/bin/php” I get “intl” when I enter the command
root$: php -m | grep intl
. That means it is successfully installed. - After I've switched my path to
/Applications/XAMPP/bin/php
I get PHP warnings:
PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20151012/php_intl.dll' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20151012/php_intl.dll, 9): image not found in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20151012/php_intl.dll' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20151012/php_intl.dll, 9): image not found in Unknown on line 0
I would need intl
for XAMPP and not for the pre-installed Apache on my Mac, but I don’t know how to get it. Does anyone have suggestions?