I'm using XAMPP for Windows
and decided to try out Symfony 2
.
As soon as I get to Symfony Configuration
page it recommends me to install and enable intl.
I tried reading PEAR's
and PECL's
guides, since I'm total 0 on this topic(started learning PHP
recently), but nothing worked.
I found php_intl.dll
inside my C:\xamp\php\ext
. The php.ini
's extension_dir=
is set to "C:\xampp\php\ext"
. I was only missing the extension=php_intl.dll
inside php.ini
, so I added it.
Unfortunately it didn't work, and Symfony
keeps asking me for intl.
Follow these steps:
You can try. Nothing will harm. If you feel the things are not working, you can delete them. I am sure it will work for you 100%.
Uncomment the following line on C:\wamp\bin\apache\apache2.4.9\bin\php.ini
It will work.
For OS X users:
1.Normally, the PHP is automatically installed on OSX. So, if you would like to use the XAMPP, or whatever apache server, you must change the path point to XAMPP. You can check the path by using:
(do not copy $ sign, it means than you should type this in Terminal, not php)
You should get:
/Applications/XAMPP/xamppfiles/bin/php
,if not, you will get
/usr/bin/php
.This is OSX' php. So, you have to change it to XAMPP' php by using:
2.Run this command to download, unpack, compile and install ICU (you can choose different version is your Symfony required):
than run:
and specify where ICU libraries and headers can be found [DEFAULT] :
Pay attention to information in install report:
Don't forget to reboot Apache and check version:
Partially taken from here but modified to get success Install PHP Internationalization extension (Intl) on XAMPP on Mac
To activate this extension in Xampp, just edit your php.ini (i.e. in C:\xampp\php directory) and remove the semicolon to uncomment this line :
Eventually don’t forget to restart Apache !
To solve this go to "c:\xampp\php\php.ini" open it in your editor and search for Dynamic Extensions then go down search for ;extension=php_intl.dll and enable it(remove ; to became like ) extension=php_intl.dll after that save your file php.ini and restart your localhost
For Linux users: Installing php5-intl made it work for me
found here: http://www.php.net/manual/en/intl.setup.php
Whenever you make changes to
php.ini
, remember to restartApache
. Otherwise the changes won't take effect. You can do this in theXAMPP Control Panel
by clicking thestop/start
button in theApache
module row.