Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: beast on November 18, 2018, 05:57:04 PM

Title: GMP php module no more enabled in PHP Software Collections
Post by: beast 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
Title: Re: GMP php module no more enabled in PHP Software Collections
Post by: ReetP 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
Title: Re: GMP php module no more enabled in PHP Software Collections
Post by: beast 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.
Title: Re: GMP php module no more enabled in PHP Software Collections
Post by: ReetP 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.
Title: Re: GMP php module no more enabled in PHP Software Collections
Post by: beast 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
Title: Re: GMP php module no more enabled in PHP Software Collections
Post by: ReetP on November 18, 2018, 10:24:07 PM
Look about right :-)
Title: Re: GMP php module no more enabled in PHP Software Collections
Post by: TerryF 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..
Title: Re: GMP php module no more enabled in PHP Software Collections
Post by: ReetP on November 18, 2018, 10:55:54 PM
No guarantees, no warranties..

YMMV :-)
Title: Re: GMP php module no more enabled in PHP Software Collections
Post by: beast 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 :-)
Title: Re: GMP php module no more enabled in PHP Software Collections
Post by: TerryF on November 19, 2018, 07:03:00 AM
Send money :-)
 :D :D :D :D :D
Title: Re: GMP php module no more enabled in PHP Software Collections
Post by: beast on November 19, 2018, 07:09:12 AM
Send money :-)
 :D :D :D :D :D

Have done that a couple of times ;-)
Title: Re: GMP php module no more enabled in PHP Software Collections
Post by: TerryF on November 19, 2018, 07:34:29 AM
Have done that a couple of times ;-)

I Know, I was just being facetious, all good.