Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

intl extension php_intl.dll with wamp

Tags:

php

wamp

moodle

I want to use Moodle, but I get an error during the installation process:

php_extension->intl->should be installed and enabled for best results.

Intl extension is used to improve internationalization support, such as locale aware sorting.

When I click on the link, I get the error message above: http://docs.moodle.org/24/en/admin/environment/php_extension/intl

I followed that link, but I still get the same error. If anyone has any ideas, please help me out.

like image 289
Ankur Saxena Avatar asked May 04 '13 09:05

Ankur Saxena


People also ask

What is Php_intl dll?

It is also known as a Internationalization file (file extension DLL), which is classified as a type of Win64 DLL (Dynamic link library) file. Php_intl. dll was initially released with WampServer 3.1. 9 on 05/13/2019 for the Windows 10 Operating System.

How do I enable Intl extension?

The intl extension is enabled by default on PHP versions above 7.2. If you're noticing any errors on your site related to this extension, please Contact Support for further assistance. If your site is still running PHP 5.6, you must enable this extension manually by making a small addition to your phprc file.


2 Answers

I had the same problem a few days ago.

You have to copy all the files (all files starts with icu*):

icudt.dll
icudt46.dll
icuin.dll
icuin46.dll
icuio.dll
icuio46.dll
icule.dll
icule46.dll
iculx.dll
iculx46.dll
icutest.dll
icutest46.dll
icutu.dll
icutu46.dll
icuuc.dll
icuuc46.dll

From:

<wamp_installation_path>/bin/php/php5.4.3/

To:

<wamp_installation_path>/bin/apache/apache2.2.22/bin/

And you also need to enable intl in php.ini file (uncomment this line):

;extension=php_intl.dll

And restart the server. It should works fine.

Of course, you need to replace the folder names with your own.

like image 106
Athlan Avatar answered Sep 20 '22 17:09

Athlan


Recently, newer versions of PHP 5.5 releases have php_intl.dll also linking (loading) MSVCP110.dll, in addition to the more common MSVCR110.dll (both are C/C++ runtime DLLs that provide common functions).

Before, you could just include file MSVCR110.dll somewhere in a directory of the PATH instead of installing the full set of VC++ 2012 Redistributable DLLs, and Apache + PHP + PHP extensions like php_intl.dll would all load.

If PHP is giving you this error:

PHP Startup: Unable to load dynamic library C:/wamp/php/ext/php_intl.dll – The specified module could not be found.

There are two things you have to do:

  1. Instead of copying the various icu*.dll files from PHP's folder into Apache's bin folder, just include the PHP directory into the system's PATH variable.

  2. Install the full Microsoft VC++ 2012 Runtime Redistributable package. Make sure to get the 32 bit version for 32 bit PHP builds.

See more about this issue here - Unable to load or find PHP extension php_intl.dll

like image 38
rightstuff Avatar answered Sep 21 '22 17:09

rightstuff