Dynadot โ€” .com Transfer

Anyone know how to install GD Lib?

Spaceship Spaceship
Watch

Ronald Regging

Ex-PresidentVIP Member
Impact
162
Alright, my site was starting to take off so I switched to a GoDaddy VPS to handle the load. My site uses GD in order to make thumbnails of use profiles. Apparently every other host in the world I've used, except GoDaddy uses GD-Lib. Everything I found online says it should already be pre-packaged with PHP. I downloaded version 2.0.34, but I have no idea how to install it, or how to get it to work with PHP. When I look at the phpinfo.php file (lists all your PHP version and option data), it is showing a huge Configure Command, which includes "--without-gd"... so i'm assuming this means it is part of PHP, but they just configured it without it? Or I could be wrong. Does anyone know if this is the case for PHP Version 5.0.4? And if it is pre-packaged with it, how do I configure it?

Phew.. I try to switch hosting to make my site better and it goes completely down the tubes :(
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
1
•••
CrazyTech said:
http://www.boutell.com/gd/manual2.0.33.html#getgd

Here's the documentation, that should help you out.

Ive already read that. Doesn't help at all :( I've done the ./configure bit and it just gives me a bunch of errors like permission denied, cannot create directory, directory doesn't exist, some stuff like that... My host is refusing to help at all, so I'm about ready to give up and just park the domain... This is really frustrating.
 
0
•••
Are you on a cPanel server? If so, you can run /scripts/easyapache from SSH and recompile PHP with GD.
 
1
•••
ok, i figured out that i need to recompile PHP using --with-gd .. right now its configured --without-gd for some god knows why reason... The problem I'm having is that I can not for the life of me figure out where to do the ./configure and recompile. I cant find the php source files. Is there an easy way to find this? I thought phpinfo.php would tell me, but apparently it doesn't, or I'm missing it completely.

THanks for the help!
 
0
•••
hey,

do you have cpanel installed?
if so as joey said, run /scripts/easyapache

if not, do this:
cd /path/to/your/php-install (should be like /usr/src/php-version#)
then type ./configure --x --x
(replace the --x's with the options you want to compile it with)
the type 'make'
then type 'make install'

also forgot to add, after you recompile php, you then also have to recompile apache for it to work correctly.
 
0
•••
OulZac said:
hey,

do you have cpanel installed?
if so as joey said, run /scripts/easyapache

if not, do this:
cd /path/to/your/php-install (should be like /usr/src/php-version#)
then type ./configure --x --x
(replace the --x's with the options you want to compile it with)
the type 'make'
then type 'make install'

also forgot to add, after you recompile php, you then also have to recompile apache for it to work correctly.

No I dont have cpanel.

Also the problem I'm having is that I cant find the source files for PHP. I checked the /usr/src directory and its completely empty...

At this point would I be able to just download PHP and reinstall it, or would that conflict with the previous install?

Then if I have to recompile apache, im probably looking at the exact same problems of not being able to find the source files, though I did read that you shouldnt have to recompile apache, but I have no clue.
 
0
•••
Knowing what distro you are on would help ;)

Try
Code:
whereis php

If you can post your distro, that may help a bit.
 
0
•••
Redhat Fedora Core 4.0S
 
0
•••
Try this...
Code:
yum install gd
 
0
•••
bash: yum: command not found.
 
0
•••
On Fedora? Interesting...maybe RPM will work.

Find out what your package manager is, and try to install GD using it.
 
0
•••
According to what I've read, GD is prepackaged with PHP... I just need to find the PHP source files so I can reconfigure/recompile it.
 
0
•••
Maybe they are in the same directory as your Apache source files.
 
0
•••
Fedora, and Red Hat use up2date, not yum, and you can not install it either of those ways.

to find your install path do this

locate configure

(if you get a message saying about it being out of date or not configured, then type 'updatebd', minus the '')

you will get a list of all the configure files on the server, and you should be able to tell which folder is the php one, by the path.
 
1
•••
I tried up2date, doesnt work either. and yes, Fedora uses yum, it just wasnt present on my server for some reason. Powerspike helped me install yum and then it was easy, so its taken care of. Thanks everyone for the help, rep being added to everyone.
 
0
•••
I had same problem with Godaddy's virtual server, if you have CP or YUM installed in your server than it's much easy to install GD library.

I spent hours to install GD but had no luck, I had few options:

1- Get a C panel
2- use YUM
3- or recompile PHP with GD components.

I even try to install YUM but unsuccessful due to incompatibility with Python version in same server, so I took a short cut and switch my hosting to Startlogic.com, they had VPS package with pre-installed GD library.

Thanks

Apna
 
0
•••
apna said:
I had same problem with Godaddy's virtual server, if you have CP or YUM installed in your server than it's much easy to install GD library.

I spent hours to install GD but had no luck, I had few options:

1- Get a C panel
2- use YUM
3- or recompile PHP with GD components.

I even try to install YUM but unsuccessful due to incompatibility with Python version in same server, so I took a short cut and switch my hosting to Startlogic.com, they had VPS package with pre-installed GD library.

Thanks

Apna


It's not hard to install YUM once you have a basic understanding of what needs to be done. You just download the rpm for it. Try to install it, and it lists like 5 file/programs whatever that it needs in order to be installed. Then you download the rpms for those and install them. Then you can install Yum.. After that, it really is just a matter of typing yum install php-gd. I however had no idea about any of this, so without PowerSpike's help, I would have been completely lost.

I've run into some other issues with my site as well, which I think are either caused by PHP version issues (ie. using 5 instead of 4), or are related to the PHP being compiled without the mysql option.

reconfiguring and recompiling PHP on GoDaddy without CP is impossible. Even using rpm and yum. I've installed like 20 packages it needed and I'm stilling having tons of issues. For example, it is telling me I need to install PCRE 6.6 or higher. PCRE 6.6 or higher requires Glibc 2.4 or higher. 2.3 is installed. And from what I've read, upgrading Glibc is not something you should attempt, because if one thing goes wrong, it can screw up your entire server, since there are like 250 packages that are dependant on it.

I've only ever used Cpanel on shared hosting, so I figured I could live without it, but I found out that for a VPS it makes everything 100x easier. I have a support ticket in to see if I can upgrade to it, because I just can't see solving my issue without it, since I cant recompile PHP. I am considering switching to another host, but I am a bit hesitant to transfer everything again and end up with the same problems. My site is basically 90% functional now, but the forums wont work due to the PHP issue. I cant leave it like that forever, but I'll wait to hear back from GoDaddy
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back