View Full Version : 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?
Could you write what is shown as current value for GD in Administration->inastallation on step where requirements are checked?
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?
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
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;
}
Hi,
I installed php from this site: http://www.dotdeb.org/ and now I everything ok.
This should be fixed in rev. 9257