Page 1 of 1

Configuring GD on RHEL4

Posted: Tue Jun 03, 2008 8:21 am
by strike2000
Hello,

I have been trying to install GD on to a RHEL4 box. I have installed from rpm and the gd.ini is in the /etc/php.d/ directory and this file gets parsed as it is listed under the Other parsed configuration files on the phpinfo() however I am using php-weathermap for cacti and the check script cannot use methods from my gd library.

I have checked my gd.so is in the correct directory with my other php add-ons.

Any help on getting this work would be much appreciated.

Thanks in advance.

PHP ver; 5.1.2
HTTPD ver: Apache 2.0.52

Re: Configuring GD on RHEL4

Posted: Tue Jun 03, 2008 10:10 pm
by andre_c
do you see it under the "gd" section lower in the phpinfo() output? There should be a heading that says "gd" and some settings such as "GD Support -> Enabled", "GD Version -> bundled (2.0.34 compatible)", etc.

Also, check the apache error_log for php start up errors.

Re: Configuring GD on RHEL4

Posted: Thu Jun 05, 2008 4:01 am
by strike2000
hello,

No it is not further down and i found the following line in the httpd error log:
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'gd.so' in Unknown on line 0

Re: Configuring GD on RHEL4

Posted: Thu Jun 05, 2008 4:05 am
by andre_c
did you install using yum? If you just got an rpm from somewhere, it might not be the correct version or it might be compiled for a different distro.

On a red hat box I usually install it using:
yum install php-gd

or depending on the version, you might have to do:
pecl install gd

Alvaro

Re: Configuring GD on RHEL4

Posted: Fri Jun 06, 2008 7:49 am
by strike2000
I got the RPM from the RHDN and it is the correct version is there any configuration that I need to do other than ensure the ini file is in the php.d directory?