wamp 已安装cakephp Fatal error: You must enable the intl extension to use CakePHP. in XXX

时间:2021-07-29 10:57:23

今wamp已安装cakephp3.x什么时候。报告这样的错误:Fatal error: You must enable the intl extension to use CakePHP. in D:\wamp1\www\cakephp\config\bootstrap.php on line 38。查了非常多资料。发现还是没用!最后。看cakephp手冊Cookbook 3.x才发现早已经有了解决方式:

In WAMP, the intl extension is “activated” by default but not working. To make it work you have to go to php folder (by default) C:\wamp\bin\php\php{version}, copy all the files that looks like icu*.dll and paste them into the
apache bin directory C:\wamp\bin\apache\apache{version}\bin. Then restart all services and it should be OK.

这句话解释一下,就是把D:\wamp1\bin\php\php5.5.12(我的wamp安装在d盘)下带有icu*.dll的文件。例如以下所看到的:

wamp 已安装cakephp Fatal error: You must enable the intl extension to use CakePHP. in XXX

放到D:\wamp1\bin\apache\apache2.4.9\bin中。重新启动下一个apche所有的服务可以!

版权声明:Hello,很高兴能在CSDN我们见面!我们希望交朋友!