GD Lib error... Need to install and/or configure via SSH

I have a server at a Houston data center (a 7 hr drive from here).

In my newly installed instance of phpWebsite from the good kids at Appalachian State U, I get an error when trying to upload images to the photo gallery. It reads:

The photoalbum module requires the GD library functions. If you are getting this error then your GD libs are missing. Please contact your systems administrator to resolve this issue. With versions of php prior to 4.3.0 you must compile the GD libs into your build of php (--with-gd[=DIR], where DIR is the GD base install directory) Php 4.3.0 and greater have the GD libs already built in."

Fine, but I have root access via SSH to this box. How can I fix it?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

smetterdAuthor Commented:
By the way, it's RedHat 9.0, and PHP is  already installed. You can see the site at
gd might be install (or look if there is a packe for it)
check if a exitsts in the php-extension dir. You can get it via
ls -la `php-config --extension-dir`

If there is no such you might be able to build it (so you don't have to recomplie the whole php). IUf its present skip the following steps.
download the source of php und unpack them and change into the directory (you might need additional packages like libpng-devel or zlib-devel
the do a
cd ext/gd
./configure --with-gd=shared --with-zlib-dir=/usr
make install // or cp {extensiondir}

TO activate that module
add the follwoing in your /ete.php.ini

If some things fail you might post a lik to a info.php
May be there is a php-gd rpm for redhat 9 which you can install (then only you need to enable gd by adding that


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
smetterdAuthor Commented:
worked perfectly... thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.