Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I enable PHP Extension intl?

I am going to install Magento2 at my local server and it gives me following error notice.

error at PHP extension intl

I am using XAMPP. When I tried to enable it from php.ini file it throws another error for missing dll:

The program can't start because MSVCP110.dll is missing from your computer. Try reinstalling the program to fix this problem.

Missing MSVCP110.dll

Any help?

like image 428
Yasin Mushtaq Avatar asked Nov 23 '15 11:11

Yasin Mushtaq


People also ask

What is Intl PHP extension?

The Internationalization extension (Intl) is a wrapper for the ICU library, a set of C/C++ and Java libraries that provide Unicode and Globalization support for software applications. It enables PHP programmers to perform UCA-conformant collation and date/time/number/currency formatting in their scripts.

How do I enable PHP extensions in Windows?

On Windows, you have two ways to load a PHP extension: either compile it into PHP, or load the DLL. Loading a pre-compiled extension is the easiest and preferred way. To load an extension, you need to have it available as a ". dll" file on your system.


2 Answers

First of all stop the xampp/wamp and then kindly remove the starting semicolon ( ; ) from your xampp/php/php.ini the following code.

;extension=php_intl.dll 

And then restart your xampp/wamp.

like image 178
Raham Avatar answered Oct 20 '22 23:10

Raham


I wrote this post if anyone come across this question for PrestaShop, I don't know if it will work for Magento2. I solved enabling PHP extension intl for the PrestaShop installation by:

  1. Open XAMPP Control Pane.
  2. Stop the Apache server if it was started.
  3. Then from Config button click on PHP (php.ini) item.

enter image description here

  1. Php.ini will open in Notepad (or a default text editor), click Ctrl + F and search for ;extension=intl and remove the semicolon.

enter image description here

  1. Then save and close Notepad and re-start the Apache server.

These steps for me solved the issue.

Note (2): I'm using XAMPP v3.2.3 and PrestaShop v1.7.5.1

enter image description here

like image 31
Wael Alshabani Avatar answered Oct 20 '22 22:10

Wael Alshabani