Nerdier

Adjective: Comparative form of nerdy: more nerdy.

Installing PHP intl on cPanel/CentOS

I’ve had to install this a bunch of times this week for people, so I figured I would document it here. If you want to install the latest version of libicu, you need to ensure that PHP is not compiled with intl support in cPanel’s easyapache, else it won’t pick up the later version.

Install the latest version of libicu – http://site.icu-project.org/download/

cd /usr/src

wget http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.tgz

tar -zxvf icu4c-54_1-src.tgz

cd icu/source

./runConfigureICU Linux

make

make install

Install the extension

pecl install intl

Restart httpd

/etc/init.d/httpd restart

Then with a phpinfo();  You will see something like:

INTL
version 	 PECL-3.0.0
ICU version 	 54.1
ICU Data version 54.1

Leave a Reply

Your email address will not be published. Required fields are marked *