Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

intl PHP extension is not working for xampp server

Tags:

php

cakephp

I am trying to install CakePHP 3-0-0 version and I have downloaded the source code from here. But it is showing the error of enable intl extension. As I have already changed ;extension=php_intl.dll to extension=php_intl.dll (remove the semicolon) in php.ini file and restart xampp 2-3 times, but still it is showing that same error.

Here is the error below:

Fatal error: You must enable the intl extension to use CakePHP. in D:\xampp\htdocs\cakephp-3-0-0\config\bootstrap.php on line 38

So, can anyone please tell me what is the issue here? And what should I do to resolved this issue?

like image 914
Mash Avatar asked May 27 '15 11:05

Mash


1 Answers

Once you have activated the php_intl.dll in the php.ini file you also need to copy the dll files that php_intl.dll uses from the PHP folder to the Apache/bin folder.

I am not a XAMPP user so I am not sure of the actual folder names

copy xampp/php/icu*.dll to xamp\apache\bin

Also remember that you have to edit the php.ini file that lives in the \xampp\apache\bin folder and not the one in the \xampp\php folder.

The one in the \xampp\php folder only gets used by PHP CLI (Command Line Interface)

like image 62
RiggsFolly Avatar answered Nov 14 '22 23:11

RiggsFolly