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)

  1. In WHM, open Software › EasyApache 4.
  2. Click Customize next to the current profile and open PHP Extensions.
  3. Search for gmp and enable it for each PHP version you use (for example ea-php83-php-gmp).
  4. 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.

Related services

Managed cPanel VPS

cPanel included; we handle updates, security and monitoring.

cPanel server management

hardening, migrations and 24/7 monitoring, with no long-term contract.

cPanel, Plesk and LiteSpeed licences

for VPS and dedicated servers, with installation help on demand.

Was this answer helpful?

Still stuck? Open a ticket