Intl and fileinfo extension not detecting

Intl and fileinfo extension not detecting

by Padmahasa B N -
Number of replies: 7

Hello,

We are installing Moodle 3.5.x on Windows server 2012 R2.

As suggested in the docs, we have added "extension=php_intl.dll", "intl.default_locale" and "intl.error_level" in php.ini and even restarted whole server (OS) after failing to detect the extensions. Even though, the extensions are not detected by Moodle.

Below is the php.ini configuration specific to "Intl" extension.

[intl]
intl.default_locale = en_utf8
; 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 = E_WARNING
;intl.use_exceptions = 0


[ExtensionList]
extension=php_mysqli.dll
extension=php_mbstring.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_curl.dll
extension=php_exif.dll
extension=php_xmlrpc.dll
extension=php_openssl.dll
extension=php_soap.dll
extension=php_pdo_mysql.dll
extension=php_pdo_sqlite.dll
extension=php_imap.dll
extension=php_tidy.dll
extension=php_intl.dll
zend_extension=php_opcache.dll


Image of the error.

Intl extension error image

Average of ratings: -
In reply to Padmahasa B N

Re: Intl and fileinfo extension not detecting

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hello,
Apache or IIS?

TIA,
Matteo

In reply to Matteo Scaramuccia

Re: Intl and fileinfo extension not detecting

by Padmahasa B N -

Hi,

It's IIS. We tried restarting IIS separately. Failing which, we restarted OS. Still no luck.

Thank you.

In reply to Padmahasa B N

Re: Intl and fileinfo extension not detecting

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Padmahasa,
no need to restart the OS, just IIS.

What version of PHP?
Did you follow a guide like https://docs.moodle.org/35/en/Internet_Information_Services to install PHP ?

Something is missing for sure but we need more details about how you've installed PHP on your system to help you.

It could be a matter of missing proper vcredist "version" (e.g. in a x64 env you should install both x86 and x64 since, depending on PHP version, PHP still runs under 32bit arch) or missing to update the PATH global env var to let icu*.dll be found.

HTH,
Matteo

In reply to Matteo Scaramuccia

Re: Intl and fileinfo extension not detecting

by Padmahasa B N -

Hi Matteo,

We have installed php7 on IIS express using Web platform installer. Also, we have installed vcredist 2015 of both 32bit and 64bit architecture.

Thank you.

In reply to Padmahasa B N

Re: Intl and fileinfo extension not detecting

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Padmahasa,
have you already tried to add the PHP binaries path (where icu*.dll are) to the global PATH?

HTH,
Matteo

In reply to Matteo Scaramuccia

Re: Intl and fileinfo extension not detecting

by Padmahasa B N -

Hello Matteo,

My colleague tried restarting IIS couple of times today and it's working now. But we were modifying the same file yesterday and as I told earlier, we restarted both IIS and OS but got no result. No idea what fixed.

As for dll's path, no we haven't added dll's path to global "PATH" environment variable.

Thank you.