X509 module problem with php-gmp

Hello,
I try to setup the icingaweb2-module-x509 and get the following PHP Fatal error when importing the CA certificates or running a scan job.
The defined requirements mentioned in the 02-Installation.md are installed.

Fatal error: Uncaught Error: Call to undefined function Icinga\Module\X509\gmp_import() in /usr/share/icingaweb2/modules/x509/library/X509/Job.php:65
Stack trace:
#0 /usr/share/icingaweb2/modules/x509/library/X509/Job.php(97): Icinga\Module\X509\Job::addrToNumber('78.47.14.3')
#1 [internal function]: Icinga\Module\X509\Job::generateTargets(Object(Icinga\Data\ConfigObject), Object(Icinga\Application\Config))
#2 /usr/share/icingaweb2/modules/x509/library/X509/Job.php(286): iterator_count(Object(Generator))
#3 /usr/share/icingaweb2/modules/x509/application/clicommands/ScanCommand.php(51): Icinga\Module\X509\Job->run()
#4 /usr/share/php/Icinga/Cli/Loader.php(265): Icinga\Module\X509\Clicommands\ScanCommand->indexAction()
#5 /usr/share/php/Icinga/Application/Cli.php(149): Icinga\Cli\Loader->dispatch()
#6 /usr/share/php/Icinga/Application/Cli.php(139): Icinga\Application\Cli->dispatchOnce()
#7 /usr/bin/icingacli(7): Icinga\Application\Cli->dispatch()
#8 {main}
   thrown in /usr/share/icingaweb2/modules/x509/library/X509/Job.php on line 65

php-gmp is installed via yum:

php-gmp.x86_64                   7.1.24-1.el7.remi        @remi-php71

Thanks!

Remi is not a supported repository, try with SCL.

1 Like

Thanks for the hint, problem solved!

Hello,

iā€™m having actually the same probleme and can not find php-gmp on SCL Repo, any help please ?
im using centos 7.

Thx in advance

rh-php71 is the package prefix name on SCL, and you should find the package there.

Hello,
thank you problem resolved