PDA

View Full Version : Zabbix svn version and PHP GD


ufocek
08-01-2010, 17:09
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
11-01-2010, 10:06
Could you write what is shown as current value for GD in Administration->inastallation on step where requirements are checked?

brian
11-01-2010, 11:20
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

gospodin.horoshiy
11-01-2010, 13:19
Any solution?

ufocek
11-01-2010, 13:31
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

753713
12-01-2010, 08:32
any ideas to solution for this problem?

gospodin.horoshiy
12-01-2010, 11:34
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;
}

ufocek
12-01-2010, 12:38
Hi,

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

Vedmak
12-01-2010, 15:22
This should be fixed in rev. 9257