PHP Internationalization extension a.k.a. Intl is a wrapper for ICU library which enables PHP programmers to perform UCA-conformant collation and date/time/number/currency formatting etc. in their PHP scripts. The Intl extension may not be installed, present or enabled on the server. There are different steps to install Intl PHP extension on different Linux flavors and troubleshoot the installation.
Intl PHP extension installation on cPanel servers
- To install PHP Intl (Internationalization) extension on a cPanel server, following PECL can be used
pecl install intl
service httpd restart
Intl PHP extension installation on RHEL / CentOS / Fedora servers
- To install PHP Intl (Internationalization) extension on a plain RHEL / CentOS / Fedora servers yum can be used as below
yum install php-intl
Intl PHP extension installation on Ubuntu servers
- On Ubuntu, PHP Intl can be install using apt-get as below
apt-get install php5-intl
sudo service apache2 restart
You must restart the Apache HTTP service for the changes to take effect.
PHP Intl extension is present on server but still not working?
If the extension is successfully installed on the server but still not enabled or working then search for the below extension in the php.ini.
If the extension is commented then remove the comment. If the extension is not present then add the extension
Don't forget to restart Apache service.
Check the PHP extensions status using below command