Compiling PHP with GD

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Tihigh
Forum Newbie
Posts: 6
Joined: Sat Dec 30, 2006 4:31 pm

Compiling PHP with GD

Post 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.
brendandonhue
Forum Commoner
Posts: 71
Joined: Mon Sep 25, 2006 3:21 pm

Post by brendandonhue »

You have '--without-gd' in your configure command. That tells PHP to compile without GD support.
Tihigh
Forum Newbie
Posts: 6
Joined: Sat Dec 30, 2006 4:31 pm

Post by Tihigh »

I know and how do I make it say with gd ?
brendandonhue
Forum Commoner
Posts: 71
Joined: Mon Sep 25, 2006 3:21 pm

Post 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.
Tihigh
Forum Newbie
Posts: 6
Joined: Sat Dec 30, 2006 4:31 pm

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Tihigh
Forum Newbie
Posts: 6
Joined: Sat Dec 30, 2006 4:31 pm

Post 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?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post 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.
Tihigh
Forum Newbie
Posts: 6
Joined: Sat Dec 30, 2006 4:31 pm

Post 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.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post 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
k2xl
Forum Newbie
Posts: 7
Joined: Tue Jan 02, 2007 7:41 pm

Post 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
Tihigh
Forum Newbie
Posts: 6
Joined: Sat Dec 30, 2006 4:31 pm

Post by Tihigh »

Nope ive almost lost help
k2xl
Forum Newbie
Posts: 7
Joined: Tue Jan 02, 2007 7:41 pm

Post 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
jwashburn
Forum Newbie
Posts: 5
Joined: Thu Apr 20, 2006 10:21 pm

Same boat this is what I did

Post 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
k2xl
Forum Newbie
Posts: 7
Joined: Tue Jan 02, 2007 7:41 pm

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