- https://gmplib.org/
- https://gmplib.org/gmp6.1.html
- https://secure.php.net/manual/en/gmp.installation.php
gmp for CentOS 7 has only gmp 6.0.0 as latest yum package available
php --ri gmp
gmp
gmp support => enabled
GMP version => 6.0.0
So lets install gmp 6.1.2 straight from gmp source on Centmin Mod 123.09beta01 on CentOS 7.5 64bit system
cd /svr-setup
wget https://ftp.gnu.org/gnu/gmp/gmp-6.1.2.tar.xz
tar xJf gmp-6.1.2.tar.xz
cd gmp-6.1.2
./configure
make -j$(nproc)
make install
ldconfig
run centmin.sh menu option 5 to recompile PHP version
cmupdate
cmdir
./centmin.sh
centmin.sh menu option 5 to recompile PHP version = 7.2.10
--------------------------------------------------------
Centmin Mod Menu 123.09beta01 centminmod.com
--------------------------------------------------------
1). Centmin Install
2). Add Nginx vhost domain
3). NSD setup domain name DNS
4). Nginx Upgrade / Downgrade
5). PHP Upgrade / Downgrade
6). XCache Re-install
7). APC Cache Re-install
8). XCache Install
9). APC Cache Install
10). Memcached Server Re-install
11). MariaDB MySQL Upgrade & Management
12). Zend OpCache Install/Re-install
13). Install/Reinstall Redis PHP Extension
14). SELinux disable
15). Install/Reinstall ImagicK PHP Extension
16). Change SSHD Port Number
17). Multi-thread compression: pigz,pbzip2,lbzip2...
18). Suhosin PHP Extension install
19). Install FFMPEG and FFMPEG PHP Extension
20). NSD Install/Re-Install
21). Update - Nginx + PHP-FPM + Siege
22). Add Wordpress Nginx vhost + Cache Plugin
23). Update Centmin Mod Code Base
24). Exit
--------------------------------------------------------
Enter option [ 1 - 24 ] 5
--------------------------------------------------------
Do you want to run YUM install checks ? [y/n]
This will increase your upgrade duration time wise.
Check the change log centminmod.com/changelog.html
to see if any Nginx or PHP related new additions
which require checking YUM prequisites are met.
If no new additions made, you can skip the
YUM install check to speed up upgrade time.
[y/n]: n
____ _ _ ____ _ _ _
| _ \ | | | || _ \ _ | | | | _ __ __ _ _ __ __ _ __| | ___
| |_) || |_| || |_) |(_) | | | || '_ \ / _` || '__|/ _` | / _` | / _ \
| __/ | _ || __/ _ | |_| || |_) || (_| || | | (_| || (_| || __/
|_| |_| |_||_| (_) \___/ | .__/ \__, ||_| \__,_| \__,_| \___|
|_| |___/
PHP Upgrade/Downgrade - Would you like to continue? [y/n] y
----------------------------------------------------------------
Install which version of PHP? (version i.e. 5.6.38, 7.0.30, NGDEBUG)
PHP 7.x/7.1.x/7.2.x is GA Stable but still may have broken PHP extensions.
NGDEBUG is PHP 7.3.0 dev builds minus incompatible PHP extensions
----------------------------------------------------------------
Enter PHP Version number you want to upgrade/downgrade to: 7.2.10
----------------------------------------------------------------
existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_091018-145250
----------------------------------------------------------------
-----------------------------------------------------------------------------------------
Detected PHP 7.2 branch.
You can compile Zend OPcache (Zend Optimizer Plus+) support
as an alternative to using APC Cache or Xcache cache.
But Zend OPcache only provides PHP opcode cache and
DOESN'T do data caching, so if your web apps such as Wordpress,
Drupal or vBulletin require data caching to APC or Xcache,
it won't work with Zend OPcache.
-----------------------------------------------------------------------------------------
Do you want to use Zend OPcache [y/n] ? y
*************************************************
* Zend Optimizer Plus OPcache configured
*************************************************
PHP 7+ detected which uses newer mysqlnd
or PDO MySQL extensions and removed the
legacy mysql extension. You can optionally
re-add the removed legacy mysql extension
to PHP 7+ by answering yes to next question
Only answer yes if you know for sure you
have very old web scripts which need mysql
legacy extension re-added. Otherwise answer
no which is recommended for best stability
Re-add legacy mysql extension to PHP 7+ [y/n] ? n
End result PHP 7.2.10 with gmp 6.1.2 instead of gmp 6.0.0 yum system package default
php --ri gmp
gmp
gmp support => enabled
GMP version => 6.1.2
php -v
PHP 7.2.10 (cli) (built: Oct 9 2018 14:54:30) ( ZTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.10, Copyright (c) 1999-2018, by Zend Technologies