Reputation: 892
Right now if I go to http://localhost:8000/config.php it tells me : Install and enable the intl extension (used for validators).
So what I did was:
Checked /etc/php/7.0/cli/php.ini
file which had ;extension=php_intl.dll
Installed symfony/intl
in composer.json
And still get the recommendation to install and enable intl extension.
Upvotes: 3
Views: 15190
Reputation: 8288
make sure that you've activated the extension=php_intl.dll
in :
/etc/php/7.0/apache2/php.ini
// ^^^^^^^
and the other thing, enable your extension by uncomment your extension by removing the semi-colon
Loading an extension
The most common way to load a PHP extension is to include it in your php.ini configuration file. Please note that many extensions are already present in your php.ini and that you only need to remove the semicolon to activate them.
;extension=php_extname.dll
extension=php_extname.dll
after that, you will need to restart your apache2
sudo service apache2 restart
you are seems to be using linux based system specially debian/ubuntu
dist, and trying to activate php extension using the Windows OS
style
to install php intl in debian/ubuntu:
for php 5 :
sudo apt-get install php5-intl
and for php 7 :
sudo apt-get install php7.0-intl
then simply enable your extension by :
sudo php5enmod intl
or for php7 :
sudo phpenmod intl
then restart your apache
sudo service apache2 restart
Upvotes: 9
Reputation: 2294
You should remove the semicolon from ;extension=php_intl.dll
. As it is now; it is commented out and will be ignored. That means it won't enable php_intl.dll
as extension.
You can check this example (php.ini documentation) for more information.
Upvotes: 0