I have a hard time to find exact method to install PHP intl extension in Ubuntu 14.04.
I tried with sudo apt-get install php5-intl
but displays error Unable to locate package
.
I really need this extension for Zend Framework 2 , because of above missing extension I am getting error like this
ERROR: Zend\I18n\Validator component requires the intl PHP extension
I am using PHP 5.5.9.
How can I install PHP-intl
extension in a correct way ?
install it from terminal
May be universe repository is disabled, here is your package in it
Enable it
Update
And install
For php 5.6 on ubuntu 16.04
you could search with
aptitude search intl
after you can choose the right one, for examplesudo aptitude install php-intl
and finallysudo service apache2 restart
good Luck!
For php5 on Ubuntu:
For php7 on Ubuntu
Anyway restart your apache after
If the extension is already installed you should try to enable it. Either in the php.ini file or from command line.
Syntax:
php:
apache: