Author Topic: need advice to install intl (extension php)  (Read 8894 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
need advice to install intl (extension php)
« on: June 15, 2015, 06:50:33 PM »
Hello,
Can you please tell me how to install the intl extension php (php-intl)?
This extension is needed to be able to run cakephp.
« Last Edit: June 21, 2015, 03:17:10 PM by copernic »

Offline
*
Re: need advice to install intl (extension php)
« Reply #1 on: September 20, 2015, 11:15:52 AM »
If you solved this problem, you can share?
I need reply too.

Offline
***
Re: need advice to install intl (extension php)
« Reply #2 on: September 21, 2015, 06:51:04 AM »
Try using .. yum install php-intl , it should resolve dependencies and install libicu also , then do a service httpd restart and youre good to go

Offline
*
Re: need advice to install intl (extension php)
« Reply #3 on: September 22, 2015, 11:31:06 AM »
Try using .. yum install php-intl , it should resolve dependencies and install libicu also , then do a service httpd restart and youre good to go

Bad Idea so Bad Since php is compiled with extensions ,
All you need to do install Dependencies from php selector then go to your machine console and install libicu-devel

Code: [Select]
yum install libicu-devel
after that add this line :
Code: [Select]
--enable-intl
to compile flags and compile

Example :

Code: [Select]
./configure
--with-zlib
--enable-soap
--enable-intl
--enable-exif
....

After it's done you are good to go ;)

Edit : Since there is several php version available in cwp be careful php-intl is available since php 5.3

If you want to add it to your default php compile go to PHP Version Switcher , click next , in Additional configuration field add --enable-intl , and compile ( before this make sure you installed libicu-devel as i mentioned

If you want to add it to other php versions ( 5.3+ ) go to PHP Version Selector , edit flags add --enable-intl , save and compile
« Last Edit: September 22, 2015, 11:39:01 AM by synxmax »

Offline
*
Re: need advice to install intl (extension php)
« Reply #4 on: April 25, 2016, 12:04:18 AM »
I've done exactly this and still intl does  not show up. any possible reasons?

Offline
*****
Re: need advice to install intl (extension php)
« Reply #5 on: April 25, 2016, 10:17:26 AM »
Hi, check phpinfo(); . Do you have '--enable-intl' in "Configure Command"?

Offline
**
Re: need advice to install intl (extension php)
« Reply #6 on: September 07, 2017, 02:02:06 PM »
- Login your CWP on browser
- Re compile PHP (use PHP switcher)
- Tick to the check box "intl" to enable this extension

Wait for php to be recompiled then you are good to go