GMP cannot be enabled

Ubuntu 20.04
Virtualmin version 6.16
Webmin version 1.973

Cannot enable the GMP math extension. Virtualmin came with libgmp10 6.2.0+dfsg-4.
In both the global and the domain’s php.ini file added
extension=gmp.so
also tried
extension=gmp (that was originally commented out in the php.ini)
Rebooted the server but GMP extension is not listed in phpinfo() and GMP functions are not working. How can I fix it? Thank you.

The libgmp10 6.2.0+dfsg-4 package that came with Virtualmin seems to be corrupted. The status is ‘unknown’ and cannot be uninstalled.
Finally fixed it by running
sudo apt install php-gmp

First of all, nothing comes “with” Virtualmin, everything is provided from the distros repos.

Secondly, the existence of libgmp doesn’t indicate that the PHP extension is installed. It’s not installed by default, as you noticed.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.