Control Web Panel

WebPanel => PHP => Topic started by: venty on September 25, 2018, 09:33:42 AM

Title: update ICU system package and the intl PHP extension
Post by: venty on September 25, 2018, 09:33:42 AM
Hi,

Please, how to update them ICU system package and the intl PHP extension...???

BR
Venty
Title: Re: update ICU system package and the intl PHP extension
Post by: venty on September 27, 2018, 01:16:43 PM
pls, help...
Title: Re: update ICU system package and the intl PHP extension
Post by: sun on September 29, 2018, 07:02:51 PM
did you find how to make it?
I would like to learn the way too.
Title: Re: update ICU system package and the intl PHP extension
Post by: bullten on September 30, 2018, 11:35:43 AM
They are part of php pkgs. It should update with the version version of php itself.
Title: Re: update ICU system package and the intl PHP extension
Post by: venty on October 01, 2018, 07:58:46 AM
Hi,

i am using PHP version 7.2.10, which I think is the last for the PHP packet, but when i try to install prestashop, I get a message, "Update  ICU system package and the intl PHP extension to the latest version"....

From PHP info I see the following:
intl
Internationalization support   enabled

version                    1.1.0
ICU version            50.1.2
ICU Data version    50.1
ICU TZData version    2012j
ICU Unicode version    6.2

Directive                   Local Value                    Master Value
intl.default_locale   no value                            no value
intl.error_level               0                                          0
intl.use_exceptions       0                                          0


Thanks in advance!

BR
Venty
Title: Re: update ICU system package and the intl PHP extension
Post by: bullten on October 01, 2018, 09:31:00 AM
Quote
[root@cwp7 source]# yum list available | grep libicu
libicu.i686                               50.1.2-15.el7                  base
libicu-devel.i686                         50.1.2-15.el7                  base
libicu-doc.noarch                         50.1.2-15.el7                  base

Quote
[root@cwp7 ~]# icuinfo | grep version
    <param name="version">50.1.2</param>
    <param name="version.unicode">6.2</param>
    <param name="cldr.version">22.1.1</param>
    <param name="tz.version">2012j</param>


Well 50.1.2 the latest version of icu available for centos 7 base repository.

If you need any other version then you need to compile it from source (http://download.icu-project.org/files/icu4c/).

So lets take 62.1 version and compile it.


Quote
cd /usr/local/src
wget http://download.icu-project.org/files/icu4c/62.1/icu4c-62_1-src.tgz
tar -xvf icu4c-*.tgz
cd icu/source/
sed -i '/#define __UCONFIG_H__/a #define UCONFIG_ENABLE_PLUGINS 1' common/unicode/uconfig.h
./configure --prefix=/usr --bindir=/usr/bin --libdir=/usr/lib64 --datadir=/usr/share --enable-plugins
make -j4 && make install

Quote
[root@cwp7 source]# icuinfo | grep version
    <param name="version">62.1</param>
    <param name="version.unicode">11.0</param>
    <param name="cldr.version">33.1</param>
    <param name="tz.version">2018e</param>

More compiling options can be found inside "configure" and you can use as per your need.
Title: Re: update ICU system package and the intl PHP extension
Post by: venty on October 08, 2018, 07:32:47 AM
Hi,

Ok, we've completed the instructions and now we have the following result:

[root@hosting source]#  icuinfo | grep version
    <param name="version">62.1</param>
    <param name="version.unicode">11.0</param>
    <param name="cldr.version">33.1</param>
    <param name="tz.version">2018e</param>

, but in the PHP info is still visible ....:

intl
Internationalization support   enabled

version                       1.1.0
ICU version                 50.1.2
ICU Data version         50.1
ICU TZData version     2012j
ICU Unicode version     6.2

Directive                   Local Value                    Master Value
intl.default_locale      no value                            no value
intl.error_level               0                                          0
intl.use_exceptions        0                                          0


What to do?

Thanks in advance!

BR
Venty


Title: Re: update ICU system package and the intl PHP extension
Post by: bullten on October 08, 2018, 11:36:33 AM
try recompiling php
Title: Re: update ICU system package and the intl PHP extension
Post by: venty on October 08, 2018, 02:13:09 PM
Hi,

re-compile PHP through the panel  with PHP switcher  or via SSH access ..., which one is better?
If it is through SSH what exactly is the command?
And to ask now with the PHP switcher  I have set a version of PCP 7.2.10,  and I have already installed several sites and I have made the appropriate settings - is it ok to recompile the same or newer version with PHP switcher, will not you lose settings?!?

Thanks in advance!

BR
Venty
Title: Re: update ICU system package and the intl PHP extension
Post by: bullten on October 09, 2018, 07:25:01 AM
Use panel. Yes compile any version you want.
Title: Re: update ICU system package and the intl PHP extension
Post by: venty on December 05, 2018, 06:10:54 PM
I still have a problem with icu version?!?

pls, help...
Title: Re: update ICU system package and the intl PHP extension
Post by: venty on December 17, 2018, 07:17:32 AM
Hi,

Ok, we've completed the instructions and now we have the following result:

[root@hosting source]#  icuinfo | grep version
    <param name="version">62.1</param>
    <param name="version.unicode">11.0</param>
    <param name="cldr.version">33.1</param>
    <param name="tz.version">2018e</param>

, but in the PHP info is still visible ....:

intl
Internationalization support   enabled

version                       1.1.0
ICU version                 50.1.2
ICU Data version         50.1
ICU TZData version     2018e
ICU Unicode version     6.2

Directive                   Local Value                    Master Value
intl.default_locale      no value                            no value
intl.error_level               0                                          0
intl.use_exceptions        0                                          0


What to do?

Thanks in advance!

BR
Venty

pls, help...

Thanks in advance!

BR
Venty
Title: Re: update ICU system package and the intl PHP extension
Post by: venty on December 31, 2018, 02:52:36 PM
Hi,

Ok, we've completed the instructions and now we have the following result:

[root@hosting source]#  icuinfo | grep version
    <param name="version">62.1</param>
    <param name="version.unicode">11.0</param>
    <param name="cldr.version">33.1</param>
    <param name="tz.version">2018e</param>

, but in the PHP info is still visible ....:

intl
Internationalization support   enabled

version                       1.1.0
ICU version                 50.1.2
ICU Data version         50.1
ICU TZData version     2018e
ICU Unicode version     6.2

Directive                   Local Value                    Master Value
intl.default_locale      no value                            no value
intl.error_level               0                                          0
intl.use_exceptions        0                                          0


What to do?

Thanks in advance!

BR
Venty

pls, help...

Thanks in advance!

BR
Venty


Hi,

I still can not handle the problem shown above ...

But when I went to PECL Manager:

https://prnt.sc/m1n0ri

I noticed that, for example memcache is installed, and "intl" is not installed:

https://prnt.sc/m1mzj8

..."intl" is in the availables packages:

https://prnt.sc/m1n0e1

Is it possible because the "intl" is not installed to not see the latest version of the ICU system package, despite the fact that the compilation of the corresponding version of the PHP is normal ...?!?

Thanks in advance!

BR
Venty

Title: Re: update ICU system package and the intl PHP extension
Post by: ekgrad on January 08, 2019, 05:20:29 AM
Please read this https://realpandablog.wordpress.com/2018/02/09/how-to-upgrade-icu-in-intl-in-php-7-0-x-for-linux-ubuntu-16-04/
and use modify the instructions to that of centos in place of ubuntu to install the latest version of the ICU files

Then you should add the intl package in php build options in cwp and build the system
Title: Re: update ICU system package and the intl PHP extension
Post by: glorency on March 10, 2019, 10:33:42 AM
Quote
[root@cwp7 source]# yum list available | grep libicu
libicu.i686                               50.1.2-15.el7                  base
libicu-devel.i686                         50.1.2-15.el7                  base
libicu-doc.noarch                         50.1.2-15.el7                  base

Quote
[root@cwp7 ~]# icuinfo | grep version
    <param name="version">50.1.2</param>
    <param name="version.unicode">6.2</param>
    <param name="cldr.version">22.1.1</param>
    <param name="tz.version">2012j</param>


Well 50.1.2 the latest version of icu available for centos 7 base repository.

If you need any other version then you need to compile it from source (http://download.icu-project.org/files/icu4c/).

So lets take 62.1 version and compile it.


Quote
cd /usr/local/src
wget http://download.icu-project.org/files/icu4c/62.1/icu4c-62_1-src.tgz
tar -xvf icu4c-*.tgz
cd icu/source/
sed -i '/#define __UCONFIG_H__/a #define UCONFIG_ENABLE_PLUGINS 1' common/unicode/uconfig.h
./configure --prefix=/usr --bindir=/usr/bin --libdir=/usr/lib64 --datadir=/usr/share --enable-plugins
make -j4 && make install

Quote
[root@cwp7 source]# icuinfo | grep version
    <param name="version">62.1</param>
    <param name="version.unicode">11.0</param>
    <param name="cldr.version">33.1</param>
    <param name="tz.version">2018e</param>

More compiling options can be found inside "configure" and you can use as per your need.


Think you have a sub-domain sub1.abc.com and you want to install latest prestashop 1.7.5.0 on that sub-domain.
The best way , you have to use FPM/FastCGI for best performance and you have to identify lib-icu( intl PHP extension )

How do i identify ?
Go to your sub-domain home directory for sub1.abc.com , Copy the latest prestashop 1.7.5.0.zip and unzip here .

Now run the below command:
#php bin/symfony_requirements

Then install required intl PHP extension  and compile
Title: Re: update ICU system package and the intl PHP extension
Post by: venty on March 18, 2019, 06:49:44 PM
Hi,

The problem was found in the ICU version - because of the use of prestashop, I had to compile the latest version of ICU,  version 63.1...

I did so by following and applying the help my colleagues gave to the following address:

http://forum.centos-webpanel.com/php/update-icu-system-package-and-the-intl-php-extension/msg20852/#msg20852

and more precisely, in the following terms:

Quote
[root@cwp7 source]# yum list available | grep libicu
libicu.i686                               50.1.2-15.el7                  base
libicu-devel.i686                         50.1.2-15.el7                  base
libicu-doc.noarch                         50.1.2-15.el7                  base

Quote
[root@cwp7 ~]# icuinfo | grep version
    <param name="version">50.1.2</param>
    <param name="version.unicode">6.2</param>
    <param name="cldr.version">22.1.1</param>
    <param name="tz.version">2012j</param>


Well 50.1.2 the latest version of icu available for centos 7 base repository.

If you need any other version then you need to compile it from source (http://download.icu-project.org/files/icu4c/).

So lets take 62.1 version and compile it.


Quote
cd /usr/local/src
wget http://download.icu-project.org/files/icu4c/62.1/icu4c-62_1-src.tgz
tar -xvf icu4c-*.tgz
cd icu/source/
sed -i '/#define __UCONFIG_H__/a #define UCONFIG_ENABLE_PLUGINS 1' common/unicode/uconfig.h
./configure --prefix=/usr --bindir=/usr/bin --libdir=/usr/lib64 --datadir=/usr/share --enable-plugins
make -j4 && make install

Quote
[root@cwp7 source]# icuinfo | grep version
    <param name="version">62.1</param>
    <param name="version.unicode">11.0</param>
    <param name="cldr.version">33.1</param>
    <param name="tz.version">2018e</param>

More compiling options can be found inside "configure" and you can use as per your need.

This version of ICU works with PHP 7 and later, but it did not work with PHP 5.6.38 - 40 ... and when compiling with the PHP selector does not get ...
When removed the "INTL" from option list, the version 5.6.40 is installed without problems ...

With PHP Switcher I have installed a version of PHP 7.2.14 and there things are ok ...

Before I changed the ICU version to 63.1 with the other PHP-FPM selector I have compiled a version of PHP 5.6.38 and it is still active and uses the old version of ICU 50.1

This means I have both ICU versions, but when compiling an older version of a PHP, for example, 5.6.38 or 5.6.40 should be said to use the older ICU or maybe in the compilation of the PHP and choosing the "INTL" module should be told to which version of the ICU should be compiled ...

Thanks in advance!

BR

Venty

To ask again is there a variant of not one server to use two versions of intl (both ICU versions)???

BR
Venty
Title: Re: update ICU system package and the intl PHP extension
Post by: venty on November 05, 2019, 10:58:55 AM
Hi,

I upgraded the ICU version to 63.1 and updated the PHP version several times ... I noticed that when updating the PHP version, my ICU version remains the one I upgraded to ( 63.1 ) ... That was so until the PHP version 7.3.9 was updated. ... When updating the PHP version to 7.3.10, the ICU version returned to 50.1.2...

I looked at the changes to the PHP versions ( https://www.php.net/ChangeLog-7.php ) and found that the PHP version 7.3.10 had a modification of the INTL module, and in the previous versions there was no similar change ...

The question is this - If there is a change in the INTL module at the changes to the PHP version, will there be a return of ICU version to the standard 50.1.2 or If NOT there is a change in the INTL module .......

Thanks in advance!

BR
Venty
Title: Re: update ICU system package and the intl PHP extension
Post by: venty on November 12, 2019, 11:59:56 AM
Pls....