Page 1 of 2

Compiling PHP with GD

Posted: Sat Dec 30, 2006 4:41 pm
by Tihigh
Hello everyone,

I just recently got a new vp server and I need help getting GD compiled with my PHP
I got PHP Version 5.0.4 and I believe I got basically everything I need expect GD Support.

I’ve spent endless nights and weeks trying to get this to work but its way over my head.

http://208.109.197.80/phpinfo.php is the stats of my server and if there is someone out there kind enough to help me, it would be greatly appreciated.

Posted: Sat Dec 30, 2006 8:48 pm
by brendandonhue
You have '--without-gd' in your configure command. That tells PHP to compile without GD support.

Posted: Sat Dec 30, 2006 11:28 pm
by Tihigh
I know and how do I make it say with gd ?

Posted: Sun Dec 31, 2006 1:03 am
by brendandonhue
You don't...just take the --without-gd out. It's not going to add gd if you have --without-gd in there.

Posted: Sun Dec 31, 2006 11:28 am
by Tihigh
Ok so I have to take the without gd thing out ... And how do I do that?

what file do I have to edit?

Posted: Sun Dec 31, 2006 11:58 am
by feyd
There's no file to edit, well there may be, but it's often easier to use the compilation tool. Those are set during the configuration when calling ./configure with all your options.

Posted: Sun Dec 31, 2006 12:03 pm
by Tihigh
Yes thats all great but what Am I configuring and setting? I need instructions :( when you say ./configure does that mean I knock on my frige?

Posted: Sun Dec 31, 2006 4:16 pm
by onion2k
Did you compile PHP yourself? If so then you should really know what feyd is on about. If not then you should go back to the person who did compile PHP and ask them to redo it with GD enabled.

Posted: Mon Jan 01, 2007 1:06 am
by Tihigh
Yes its all good advice but I am a Godaddy client and they have this policy for there dedicated servers for absolutely no support. So im kinda left in the rain.

Posted: Mon Jan 01, 2007 3:20 am
by onion2k
In that case you'll need to learn how to compile PHP with GD enabled.

Read this: http://www.onlamp.com/pub/a/php/2003/03/27/php_gd.html

Posted: Tue Jan 02, 2007 7:52 pm
by k2xl
I have exactly the same issue. I have a godaddy virtual dedicated server.

http://www.k2xl.com/phpinfox.php

Tihigh, looks like we're both on the same boat. If you find a solution PLZ share. I've been calling godaddy like 50 times and googled 5000 to fix this.

-Danny

Posted: Tue Jan 02, 2007 9:29 pm
by Tihigh
Nope ive almost lost help

Posted: Tue Jan 02, 2007 9:38 pm
by k2xl
It seems we have to run this command somewhere on our servers:
./configure --with-gd

However, I don't know where on our godaddy servers to do this command via putty.

-Danny

Same boat this is what I did

Posted: Mon Jan 08, 2007 10:23 pm
by jwashburn
You dont need to do a recompile.

do this

yum install php-gd

start at stop apache

if you are not really good with Linux ( i am not) I would reccomend downloading and installing webmin. Make sure you access it using https

Use that to get yum installed.

Then you run run yum from the command line and you will be good to go

Posted: Tue Jan 09, 2007 10:37 am
by k2xl
With putty:

# yum install php-gd
bash: yum: command not found
# install php-gd
install: too few arguments
Try `install --help' for more information.
# yum -help
bash: yum: command not found
# start at stop apache
bash: start: command not found


:-(!

-Danny