Ad Widget

Collapse

php issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • m0be
    Junior Member
    • May 2012
    • 10

    #1

    php issues

    I have the following issue with php; php-gd and GD PNG Support both show unknown with following error

    PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/gd.so' - libfreetype.so.6: cannot open shared object file: No such file or directory in Unknown on line 0

    My PHP GD version

    php-gd-5.3.3-3.el6_2.8.x86_64 already installed and latest version

    in addition I set my php.ini file date.timezone to (/etc/php.ini)

    ;date.timezone = America/New_York

    The web interface still shows time unset??
    Both zabbix zabbix-agentd zabbix-web were installed via yum. CentOS v6 64bit. This is my second installation both same issue. I had tried linking gd.so files to another directory - this did not work. any ideas as this must be common.
  • frlan
    Junior Member
    • May 2012
    • 18

    #2
    Originally posted by m0be
    in addition I set my php.ini file date.timezone to (/etc/php.ini)

    ;date.timezone = America/New_York

    The web interface still shows time unset??
    Both zabbix zabbix-agentd zabbix-web were installed via yum. CentOS v6 64bit. This is my second installation both same issue. I had tried linking gd.so files to another directory - this did not work. any ideas as this must be common.
    You have to uncomment date.timezone (remove the ; ) and restart php after

    Comment

    • m0be
      Junior Member
      • May 2012
      • 10

      #3
      Worked like a charm! I can't believe I over looked that. Thanks. Now for my PHP-GD issues. Thanks again.

      Comment

      • frlan
        Junior Member
        • May 2012
        • 18

        #4
        have the same gd-issue but no idea how to solve at the moment

        Comment

        • m0be
          Junior Member
          • May 2012
          • 10

          #5
          I had previously tried to link the module to the below shared objects - this did not work - this was more of a "last ditch effort"

          /usr/lib/vmware-tools/lib/libfreetype.so.6
          /usr/lib/vmware-tools/lib/libfreetype.so.6/libfreetype.so.6

          okay so I spent enough time on this issue so I modified the following:

          vi /usr/share/zabbix/include/requirements.inc.php
          gd.so check and gd.png

          $gd_info = gd_info();
          $current = isset($gd_info['PNG Support']);
          }
          else{
          $current = true; *****************it was false so I made it true**********************


          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];
          }
          else{
          $current = 'unknown';
          }

          if(version_compare($current, $recommended, '>=')){
          $req = 2;
          }
          else if(version_compare($current, $required, '>=')){
          $req = 1;
          }
          else{
          $req = 1; **************************************made this 1 its original value was "0"




          #######
          I will let you know if this works as now I am allowed to move from the prerequisite to the next screens
          ######
          Last edited by m0be; 01-06-2012, 17:22.

          Comment

          • m0be
            Junior Member
            • May 2012
            • 10

            #6
            The previous hack worked - unfortunately I am not sure how the upload of jpeg will affect the server but it is up and running. Sounds like a bug in the 64bit PHP package or Zabbix not recognizing the newest package..either way the hack will work and you can get your server up and running

            Comment

            Working...