To enable extensions verify that they are enabled in your ini files windows
When installing Magento 2.0.2 via composer getting this error:
I have installed php5-cli, php5-curl.
19 Answers 19
This solved my issues
or newer version (* = your php version )
Have tried for many times, the above answers don’t solve my quesiton, but this command helped me:
ubuntu users try this
this is work for php 7.2 but you can change this 7.2 to 5.2 and run this command it is work.
When I went to create a laravel project, I got this problem.
After googling, I got this solution.
I followed these steps:
Step 2: sudo apt-get install php7.2-intl
Step 3: sudo apt-get install php7.2-xsl
Step 4: sudo apt-get install php7.2-mbstring
this command would do the trick
After that, it is installing as it should.
Install according to your php-version.
since i have php7, I will do the following to list the php packages:
sudo apt-cache search php7-*
now to install packages run the following command with your desired package
UPDATE: Don’t forget to restart apache/
This was the fix for me when trying to install Laravel on a fresh WSL installation:
sudo apt-get install php7.2-gd
sudo apt-get install php7.2-intl
sudo apt-get install php7.2-xsl
sudo apt-get install php7.2-zip
On Ubuntu 16.04 php7 is now the default, so if you follow the top answers and are still having this issue, check your php version.
If your default php version is php7, but you followed an answer using php5 packages, you can use the following command to set the default version of php to php5.6:
The exact name of the extension depends on the repository from which you got PHP but look here. For example on CentOS:
I used below to fix issue
Updated. For ubuntu users
Gonna post this answer here after seeing some of the answers (including the accepted one) which claim to «do the trick». First, we need to identify the issue before fixing it.
the requested PHP extension gd is missing from your system.
As the above line clearly states, we need to install the extension php-gd.
PHP Warning: Module already loaded in Unknown on line 0
On Mac OSX Mavericks using homebrew php55 whenever I run a a php command I get the following error message (everything runs fine it’s just annoying)
and the output was
Checked in the php.ini file and the only place intl is loaded is at the top and it’s commented out. The other files contents look something like:
where the contents after the last slash is the extension.
I’m not sure where else to look.
Any help is appreciated
18 Answers 18
Hope this helps someone.
To fix this problem, you must edit your php.ini (or extensions.ini) file and comment-out the extensions that are already compiled-in. For example, after editing, your ini file may look like the lines below:
In my case I had uncoment the ;extension=php_curl.so in php.ini, but Ubuntu was already calling this extension somewhere else.
To find this «somewhere else», on php.ini will informe. On my case: /etc/php/7.1/apache2/conf.d/20-curl.ini was the path.
So now we edit this file (terminal):
Comment the ;extension=php_curl.so
Save file and restart apache:
For shared hosting, in cPanel I unchecked the Module in question under «Select PHP Version» > «Extensions» and the error disappeared for PHP 7.4.
That was the actual case of the issue. After removing stray 50-geoip.ini from /etc/php.d/ and restarting httpd it just worked flawlessly.
I deleted the 20-mongo.ini file in /etc/php5/cli/conf.d and this solved the problem.
I figured this out by printing the PHP configuration and searching by xml.ini. Notice in the following output how xml is loaded twice (first as 20-xml.ini and then as xml.ini):
There are two «php_intl.dll» files inside php.ini file on 872 and 968 number lines. if php warning module ‘intl’ already loaded in unknown on line 0 this message is focused on your CLI. Then you should have to remove the semiclone prefixes on line 872. I expect this will done.
Just for the record as it might help others who are on shared hosting (cPanel).
I had error on shared hosting php7.2: Module ‘imagick’ already loaded in Unknown on line 0
how can I enable PHP Extension intl?
I am going to install Magento2 at my local server and it gives me following error notice.
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.
23 Answers 23
First of all stop the xampp/wamp and then kindly remove the starting semicolon ( ; ) from your xampp/php/php.ini the following code.
And then restart your xampp/wamp.
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:
These steps for me solved the issue.
Note (2): I’m using XAMPP v3.2.3 and PrestaShop v1.7.5.1
I was also having the same issue, and just now i got it solved. Please try the bellow steps to get it solved:
If you are using ubuntu you can take update
And install extension in case of php 5.6
And in case of php 7.0
And restart your apache after
If you are using xampp then remove semicolon ( ; ) in xampp/php/php.ini from below line
And then restart your xampp.
and upload to C:/Windows folder
than after edit php.ini from XAMPP
Save the file and restart Apache from XAMPP
For Megento Installation you Need to
All you need to do is go to php.ini in your xampp folder (xampp\php\php.ini) and remove ; from ;extension=php_intl.dll
ADDITIONAL NOTE (As this is very old question and has no accepted answer yet)
here is the notes I see in my php.ini file.
Note : The syntax used in previous PHP versions (‘extension=.so’ and ; ‘extension=’php_.dll’) is supported for legacy reasons and may be ; deprecated in a future PHP major version. So, when it is possible, please ; move to the new (‘extension=) syntax.
So you will only find the extension name as intl instead of php_intl.dll and then uncommenting that line should work (It worked for me atleast).
Simply copy all icu****.dll files from
intl extension will start working.
I have found two errors during the installing of Magento to localhost.
There are PHP Extension xsl and intl and I have solved the issue by following steps.
Then all the things were passed as well as following picture.
I was having same kind of problem with ldap, intl, curl php extensions. I’ve solved those issues by the following ways:
At first you’ve to check whether these extensions have been enabled in the php.ini file by removing semicolon (;) in front of the following lines:
Secondly, libeay32.dll, ibssh2.dll and ssleay32.dll files have to be loaded by php properly to function those extensions properly. These dll files are required by several php extensions (ie curl, ldap, intl etc). These files generally reside in the php installation directory [for my case it is C:\php directory]. Additionally, for intl extension to be enabled you’re gonna need some other dll files to be loaded by php properly. The name of these files begin with icu (ie icudt57.dll icuin57.dll etc for php version 5.6). You’ll also find these files in the php main installation directory.