Page 1 of 1

Enabling php_intl on XAMPP 1.8.1 for Windows Vista

PostPosted: 17. December 2012 22:12
by RytoEX
Hi! I'm trying to install Moodle 2.3.3+ on XAMPP 1.8.1 for Windows Vista 32-bit. At some point it notifies me that:
php_extension "intl" should be installed and enabled for best results


and it points me to some documentation (http://docs.moodle.org/23/en/admin/environment/php_extension/intl). That page notes that some additional configuration adjustments might be needed in the WAMP stack, pointing to a thread about WAMPServer. However, it seems that XAMPP 1.8.1 has the same problem, as suggested by the following error messages:
httpd.exe - Unable To Locate Component

This application has failed to start because icuuc46.dll was not found.
Re-installing the application may fix this problem.

[OK]

Warning

PHP Startup: Unable to load dynamic library 'C:\xampp-1.8.1\php\ext\php_intl.dll'
- The specified module could not be found.

[OK]

And by the following threads:
http://community.apachefriends.org/f/viewtopic.php?t=44405
http://community.apachefriends.org/f/viewtopic.php?t=51827

I've added "C:\xampp-1.8.1\php" to my SYSTEM PATH, and I can confirm that that makes Moodle pass its check and prevents the error messages from appearing.

I note that there were other options for getting this to work. Is there a method that is particularly recommended over the others? Is there a way and are there any plans to fix this so that this works in XAMPP out of the box? Thanks!

Re: Enabling php_intl on XAMPP 1.8.1 for Windows Vista

PostPosted: 18. December 2012 02:25
by JJ_Tagy
I didn't have to add anything to the path to get it to work. I uncommented extension=php_intl.dll and added these lines to the file.
Code: Select all
[intl]
intl.default_locale = en_utf8
intl.error_level = E_WARNING