PDA

View Full Version : 1.3.4 GUI installation problems with php


savl
28-03-2007, 10:57
Hello.
When I'm trying to install gui, on step 3 (checking prerequisites), it shows that PHP BC math support check fails. But according to my phpinfo(),
BCMath support is enabled. I've compiled php-4.4.6 from source code with --enable-bcmath.

Alexei
28-03-2007, 11:41
Anyone else with the same problem?

savl
28-03-2007, 13:27
Anyone else with the same problem?

Problem with bcmath check seems to occur only with php prior to 5, as zabbix-gui is checking for function bcpowmod presence, which is available on php5 only. Since this function doesn't appear anywhere in the code except setup.inc.php (grep -r bcmodpow /var/www/htdocs/zabbix shows only this file), I've just commented this string to be able to install gui.

Alexei
28-03-2007, 15:13
Thanks for the details. Fixed in pre 1.3.5.

rodelapena
28-03-2007, 17:16
Problem with bcmath check seems to occur only with php prior to 5, as zabbix-gui is checking for function bcpowmod presence, which is available on php5 only. Since this function doesn't appear anywhere in the code except setup.inc.php (grep -r bcmodpow /var/www/htdocs/zabbix shows only this file), I've just commented this string to be able to install gui.
i had the same problem. but it works commented.

it's bcpowmod

sbadger
05-04-2007, 16:08
I am having this problem in FC6. I tried commenting out the bcpowmod, but no luck. Here is my output from php:
[root@lin6410 php]# php -v
PHP 5.1.6 (cli) (built: Feb 23 2007 10:11:28)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

[root@lin6410 php]# php --re bcmath
Extension [ <persistent> extension #33 bcmath version <no_version> ] {

- INI {
Entry [ bcmath.scale <ALL> ]
Current = '0'
}
}

- Functions {
Function [ <internal> public function bcadd ] {
}
Function [ <internal> public function bcsub ] {
}
Function [ <internal> public function bcmul ] {
}
Function [ <internal> public function bcdiv ] {
}
Function [ <internal> public function bcmod ] {
}
Function [ <internal> public function bcpow ] {
}
Function [ <internal> public function bcsqrt ] {
}
Function [ <internal> public function bcscale ] {
}
Function [ <internal> public function bccomp ] {
}
Function [ <internal> public function bcpowmod ] {
}
}
}

sbadger
05-04-2007, 18:58
Never mind, I found the problem.

Since I installed the php-bcmath packacge after starting apache I just needed to restart apache and it now works!!