Configuring GD on RHEL4

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
strike2000
Forum Newbie
Posts: 3
Joined: Tue Jun 03, 2008 8:08 am

Configuring GD on RHEL4

Post 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
User avatar
andre_c
Forum Contributor
Posts: 412
Joined: Sun Feb 29, 2004 6:49 pm
Location: Salt Lake City, Utah

Re: Configuring GD on RHEL4

Post 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.
strike2000
Forum Newbie
Posts: 3
Joined: Tue Jun 03, 2008 8:08 am

Re: Configuring GD on RHEL4

Post 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
User avatar
andre_c
Forum Contributor
Posts: 412
Joined: Sun Feb 29, 2004 6:49 pm
Location: Salt Lake City, Utah

Re: Configuring GD on RHEL4

Post 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
strike2000
Forum Newbie
Posts: 3
Joined: Tue Jun 03, 2008 8:08 am

Re: Configuring GD on RHEL4

Post 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?
Post Reply