I’m using a plugin that requires BC Math but I’m not sure how to enable it. I found information on how to install extensions but they involve downloading a package and installing. This, I believe is already included in PHP, it just needs to be enabled. The only instructions I’ve found are about installing php with it enabled, not enabling it after php is installed.
bcmath.scale = 0
in the php.ini file and set it to 2, restarted the site, but it still doesn’t show up in the php.ini file.
Today, when I was in my WordPress admin, I this warning reappeared: Your website’s server does not have BC Math enabled which is required for the FlexMLS® IDX plugin. Please contact your webmaster and have this extension enabled on your website hosting plan. as if I had never installed it. I tried re-installing, but despite following the instructions exactly as I did before, when I view the PHP info file, it is not there. Any thoughts as to why this might be happening?
if you want enable any extension then you have to install an extension first, extension maybe enabled but not installed so, taking example of bcmath
1.yum search php-bcmath
2.then ensure php version in which u want to install this extension
3.u will get output like after yum search command>>
yum search php-bcmath
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
============================================================== N/S matched: php-bcmath ===============================================================
ea-php54-php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
ea-php55-php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
ea-php56-php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
ea-php70-php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
ea-php71-php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
ea-php72-php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
then use >yum install ea-php72-php-bcmath.x86_64
5.this bcmath extension for php7.2