Koozali.org: home of the SME Server

GMP php module no more enabled in PHP Software Collections

Offline beast

  • *
  • 238
  • +0/-0
GMP php module no more enabled in PHP Software Collections
« on: November 18, 2018, 05:57:04 PM »
After the latest system update of PHP Software Collections my PHP 7.1.23 installation do not have GMP enabled any more? Just did an update a couple of days ago.

It seam to be enabled in the CGI mode of version 5.3.3 as 'php -m' list gmp on the command line.

But a PHPINFO and also my own test (extension_loaded("gmp")) show that it is not enabled in a PHP 7.1 ibay?

Every math operation is also slow after the update.

Is this on purpose and how do I enable it again?

Thank you
Benny
« Last Edit: November 18, 2018, 06:02:19 PM by beast »

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: GMP php module no more enabled in PHP Software Collections
« Reply #1 on: November 18, 2018, 07:52:10 PM »
You need the remi repo and probably something like:

php71-gmp

Check the wiki for how to set up the rwmi repos. Something like tilhis may help

https://wiki.contribs.org/Extrarepositories
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline beast

  • *
  • 238
  • +0/-0
Re: GMP php module no more enabled in PHP Software Collections
« Reply #2 on: November 18, 2018, 08:32:19 PM »
You need the remi repo and probably something like:

php71-gmp

Check the wiki for how to set up the rwmi repos. Something like tilhis may help

https://wiki.contribs.org/Extrarepositories

Think there is a bigger problem. Just tried to install latest version of owncloud and needed to upgrade to a later PHP version in that ibay and it also complain about other missing modules:

It say that PHP-module intl is not installed and the following "translated" text:

PHP modules have been installed, but they still appear to be missing?
Please ask your server administrator to restart the web server.

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: GMP php module no more enabled in PHP Software Collections
« Reply #3 on: November 18, 2018, 08:44:31 PM »
My previous post should have givem you a clue.

How about

php71-intl ?? Note the 71 bit. If you needed 70 or 72 then change accordingly..
.
On the cli use php71 -i or -m to check what is loaded.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline beast

  • *
  • 238
  • +0/-0
Re: GMP php module no more enabled in PHP Software Collections
« Reply #4 on: November 18, 2018, 09:37:01 PM »
My previous post should have givem you a clue.

How about

php71-intl ?? Note the 71 bit. If you needed 70 or 72 then change accordingly..
.
On the cli use php71 -i or -m to check what is loaded.

So if I execute the following commands it will work if I understand you correctly

yum  install smeserver-extrarepositories-remi-safe
signal-event yum-modify
config set UnsavedChanges no
yum -y install php71-gmp
yum -y install php71-intl

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: GMP php module no more enabled in PHP Software Collections
« Reply #5 on: November 18, 2018, 10:24:07 PM »
Look about right :-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: GMP php module no more enabled in PHP Software Collections
« Reply #6 on: November 18, 2018, 10:43:38 PM »
So if I execute the following commands it will work if I understand you correctly
yum  install smeserver-extrarepositories-remi-safe
signal-event yum-modify
config set UnsavedChanges no

So far so good, added me I would..

A few minutes of reading the wiki finds what you want to do..
https://wiki.contribs.org/PHP_Software_Collections#Find_other_RPMS

yum list available php7\* --disablerepo=* --enablerepo=remi-safe
or
yum list available php71\* --disablerepo=* --enablerepo=remi-safe

Browse the list produced .. yep there they are:

At least you get to say yes or no
# yum install php71-php-gmp --enablerepo=remi-safe
# yum install php71-php-intl.x86_64 --enablerepo=remi-safe

No guarantees, no warranties..
--
qui scribit bis legit

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: GMP php module no more enabled in PHP Software Collections
« Reply #7 on: November 18, 2018, 10:55:54 PM »
No guarantees, no warranties..

YMMV :-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline beast

  • *
  • 238
  • +0/-0
Re: GMP php module no more enabled in PHP Software Collections
« Reply #8 on: November 19, 2018, 06:23:44 AM »
Got it working with the following commands:

# yum  install smeserver-extrarepositories-remi-safe
# signal-event yum-modify
# config set UnsavedChanges no
# yum install php71-php-gmp --enablerepo=remi-safe
# yum install php71-php-intl.x86_64 --enablerepo=remi-safe

Thank you all :-)

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: GMP php module no more enabled in PHP Software Collections
« Reply #9 on: November 19, 2018, 07:03:00 AM »
Send money :-)
 :D :D :D :D :D
--
qui scribit bis legit

Offline beast

  • *
  • 238
  • +0/-0
Re: GMP php module no more enabled in PHP Software Collections
« Reply #10 on: November 19, 2018, 07:09:12 AM »
Send money :-)
 :D :D :D :D :D

Have done that a couple of times ;-)

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: GMP php module no more enabled in PHP Software Collections
« Reply #11 on: November 19, 2018, 07:34:29 AM »
Have done that a couple of times ;-)

I Know, I was just being facetious, all good.
--
qui scribit bis legit