我将服务器更新为PHP7,现在CakePHP给出了这个错误:
Fatal error: You must enable the intl extension to use CakePHP. in /var/www/clients/client1/web1/web/ID/config/bootstrap.php on line 38
我安装了apt-get install -y php7.0-intl
在互联网上阅读,我将/etc/php/7.0/cli/php.ini更新为
[intl]
;intl.default_locale =
; This directive allows you to produce PHP errors when some error
; happens within intl functions. The value is the level of the error produced.
; Default is 0, which does not produce any errors.
intl.error_level = 0
intl.use_exceptions = 0
我确定它已加载到ini
/etc/php/7.0/cli/conf.d/20-intl.ini,
但它仍无效。
答案 0 :(得分:0)
在php.ini文件中取消注释以下行;
;extension=php_intl.dll;
并转到:
extension=php_intl.dll;
答案 1 :(得分:0)
在终端试试这个:
sudo apt-get install php7.0-intl