Page 1 of 1

bcmath + mhash, not available?

Posted: Tue Jun 15, 2010 8:05 pm
by carliebentley
Greetings All.

Amid all the UDP flood craziness, I've been handed a PHP+Mysql system that requires bcmath and mhash to be enabled in php.

In the php -i | grep mhash output I see: '--with-mhash=shared,/usr'
and I also see : '--enable-bcmath=shared'

so that tells me that both should be available, yet this php+mysql script came with an "advisor" script that runs a test from the website where's it's installed and reports the MHash Function and the BCMath Extension as failures.

So I'm a little confused. Anyone have any ideas?

Re: bcmath + mhash, not available?

Posted: Mon Jun 21, 2010 10:39 am
by breun
Are you using the PHP packages from the ART repository?

If so, just check if you have php-mhash and php-bcmath installed:

Code: Select all

rpm -q php-mhash php-bcmath
If not, you can install them using yum, because both are available from the ART repository:

Code: Select all

# yum install php-mhash php-bcmath

Re: bcmath + mhash, not available?

Posted: Thu Jun 24, 2010 9:30 am
by carliebentley
Thanks breun, I eventually fixed this issue by installing the php-mhash and php-bcmath art rpms.

It's odd that they were preconfigured in php, but not installed.

But it works now.

Thanks again.