Recompiling php help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
k2xl
Forum Newbie
Posts: 7
Joined: Tue Jan 02, 2007 7:41 pm

Recompiling php help

Post by k2xl »

I have a virtual dedicated server with godaddy, my phpinfo is here: http://www.k2xl.com/phpinfox.php

As you can see, it says --without-gd on the configure line. I need to obviously make it say with-gd to be able to use gd in my php coding.

I am running a linux server, and I have putty all ready with root access and I know I need to type to recompile php:
./configure --with-gd

However, I have absolutely NO idea where I'm supposed to type this in. I don't have a folder called php? Couldn't I just put some line into my php.ini?

If you could help me figure this problem, I'd be so grateful you won't even know.

Thanks so much in advance,
-Danny
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Please don't attempt to hijack another user's thread then create your own on the same problem.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

From
Server: Apache/2.0.54 (Fedora)
X-Powered-By: PHP/5.0.4
I assume you're running Fedora Core 4.
A google search for fc4 php-5.2.0 found http://rpm.pbone.net/index.php3/stat/4/ ... 6.rpm.html
Also there's a how-to on installing apache and php on unix-like systems at http://www.php.net/manual/en/install.unix.php

Does your provider offer some kind of update/upgrade? You might want to ask them about installing the rpms or compiling php and/or apache from sources before trying. What about security updates? see http://fedoraproject.org/wiki/FAQ#head- ... 851b50b7ca
Post Reply