Ad Widget

Collapse

Zabbix svn version and PHP GD

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ufocek
    Senior Member
    • Aug 2006
    • 161

    #1

    Zabbix svn version and PHP GD

    Hi,

    I download zabbix from svn version (9193) and in gui I have notice:
    PHP GD 2.0 The GD extension isn't loaded.

    php5 info.php |grep GD
    GD Support => enabled
    GD Version => 2.0 or higher

    php55.2.6.dfsg.1-1+lenny3
    php5-cli5.2.6.dfsg.1-1+lenny3
    php5-common5.2.6.dfsg.1-1+lenny3
    php5-gd5.2.6.dfsg.1-1+lenny3
    php5-mcrypt5.2.6.dfsg.1-1+lenny3
    php5-mysql5.2.6.dfsg.1-1+lenny3
    php5-pgsql5.2.6.dfsg.1-1+lenny3

    OS -> Debian Lenny 5.0

    Any sugestion?
  • Vedmak
    Member
    • Feb 2009
    • 34

    #2
    Could you write what is shown as current value for GD in Administration->inastallation on step where requirements are checked?

    Comment

    • brian
      Member
      • Dec 2009
      • 45

      #3
      I have the same problem. Current values for GD in Administration->installation

      PHP GD
      Current value 2.0
      Required 2.0
      Recommended 2.0.34

      Fail

      Comment

      • gospodin.horoshiy
        Senior Member
        • Sep 2008
        • 272

        #4
        Any solution?
        Zbx 2.0.4 on Debian and MYSQL5 on Ubuntu Server 64bit 8.04,
        200+ Win Agents, 50+ Linux Agents, 150+ Network Devices

        Comment

        • ufocek
          Senior Member
          • Aug 2006
          • 161

          #5
          Originally posted by Vedmak
          Could you write what is shown as current value for GD in Administration->inastallation on step where requirements are checked?
          PHP GD Current -> 2.0 Required -> 2.0 -> Recommended 2.0.34 Fail

          Comment

          • 753713
            Senior Member
            • Apr 2006
            • 137

            #6
            any ideas to solution for this problem?
            ______________________________
            Version : 2.0.x
            Server OS: Ubuntu 12.04
            Zabbix Servers: 12
            Monitored Windows Server: ~ 1000
            ______________________________

            Comment

            • gospodin.horoshiy
              Senior Member
              • Sep 2008
              • 272

              #7
              I hacked the function check_php_gd() in include/requirements.inc.php, cause needed zabbix up and running really bad:

              function check_php_gd(){

              $required = '2.0';
              $recommended = '2.0.34';

              if(is_callable('gd_info')){
              $gd_info = gd_info();
              preg_match('/(\d.?)+/', $gd_info['GD Version'], $current);
              $current = $current[0];
              }

              if(version_compare($current, $recommended, '>=')){
              $req = 2;
              }
              else if(version_compare($current, $required, '>=')){
              $req = 1;
              }
              else{
              $req = 1;
              }

              $result = array(
              'name' => 'PHP GD',
              'current' => $current,
              'required' => $required,
              'recommended' => $recommended,
              'result' => $req,
              'error' => 'The GD extension isn\'t loaded.'
              );

              return $result;
              }
              Zbx 2.0.4 on Debian and MYSQL5 on Ubuntu Server 64bit 8.04,
              200+ Win Agents, 50+ Linux Agents, 150+ Network Devices

              Comment

              • ufocek
                Senior Member
                • Aug 2006
                • 161

                #8
                Hi,

                I installed php from this site: http://www.dotdeb.org/ and now I everything ok.

                Comment

                • Vedmak
                  Member
                  • Feb 2009
                  • 34

                  #9
                  This should be fixed in rev. 9257

                  Comment

                  Working...