Updated: 28 September 2026 · Applies to: cPanel & WHM 138 (EasyApache 4, AlmaLinux 9)
GMP is a PHP extension for calculations with very large numbers, used for example by cryptography and payment libraries. On cPanel & WHM 138 it is available as an EasyApache 4 package.
cPanel & WHM server (root)
- In WHM, open Software › EasyApache 4.
- Click Customize next to the current profile and open PHP Extensions.
- Search for
gmpand enable it for each PHP version you use (for exampleea-php83-php-gmp). - Click Review, then Provision.
Or from SSH: dnf install ea-php83-php-gmp. Check with /opt/cpanel/ea-php83/root/usr/bin/php -m | grep -i gmp.
cPanel account (CloudLinux PHP Selector)
If your hosting shows Software › Select PHP Version in cPanel, open it, go to Extensions, and tick gmp. The change applies at once.
Other servers
dnf install php-gmp # AlmaLinux / Rocky apt install php8.3-gmp # Ubuntu 24.04
Note: On Ucartz shared and reseller hosting you cannot install server software yourself. If an extension is not available in Software › Select PHP Version or Software › MultiPHP INI Editor, open a ticket and our support team will check it for you.