Multiple php versions with bcmath solved

SYSTEM INFORMATION
OS type and version AlmaLinux 9.3
Webmin version 2.105
Usermin version 2.005
Virtualmin version 7.8.2
Theme version 21.09.5
Package updates All installed packages are up to date

This was originally a “help!” post but i solved it and thought I’d post it anyway for someone else who comes across the issue.

I followed the docs to get php 8 and php 7.4 working as options. All good.
However I a missing the bcmath extension for php8.1
I am stuck with an inactive app due to requirement for php8.1 and bcmath.
Anyway i downloaded the 8.1 rpm from here:
https://almalinux.pkgs.org/9/almalinux-appstream-x86_64/php-bcmath-8.1.14-1.module_el9.2.0+24+ca6bd7c2.x86_64.rpm.html
and installed it manually via upload via webmin software packages.
Then noted the path to the extension /module bcmath.so and added it to the php8 config ini via tools, adding the line
extension=/usr/lib64/php/modules/bcmath.so

problem solved

1 Like

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