Ad Widget

Collapse

1.3.4 GUI installation problems with php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • savl
    Junior Member
    • Mar 2007
    • 9

    #1

    1.3.4 GUI installation problems with php

    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
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Anyone else with the same problem?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • savl
      Junior Member
      • Mar 2007
      • 9

      #3
      Originally posted by Alexei
      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.

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Thanks for the details. Fixed in pre 1.3.5.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • rodelapena
          Junior Member
          • Mar 2007
          • 22

          #5
          Originally posted by savl
          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
          Last edited by rodelapena; 28-03-2007, 17:51.

          Comment

          • sbadger
            Member
            • Dec 2005
            • 81

            #6
            I am having this problem in FC6. I tried commenting out the bcpowmod, but no luck. Here is my output from php:
            Code:
            [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 ] {
                }
              }
            }

            Comment

            • sbadger
              Member
              • Dec 2005
              • 81

              #7
              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!!

              Comment

              Working...