bcmath + mhash, not available?

Support/Development for PHP
carliebentley
Forum User
Forum User
Posts: 46
Joined: Mon Oct 09, 2006 5:32 pm

bcmath + mhash, not available?

Unread post 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?
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: bcmath + mhash, not available?

Unread post 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
Lemonbit Internet Dedicated Server Management
carliebentley
Forum User
Forum User
Posts: 46
Joined: Mon Oct 09, 2006 5:32 pm

Re: bcmath + mhash, not available?

Unread post 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.
Post Reply