Help - Search - Members - Calendar
Full Version: GD support on php 4.1
The Planet Forums > Control Panels > Plesk
beggers
Phpinfo shows that I am running version 4.1 on my Plesk box. My understanding is that phpinfo is also supposed to report if GD is installed, which it apparently isn't since I see no mention of it.

I need to install a photo gallery that requires GD but haven't a clue how to install/enable it.

Can someone provide this info for me? Many thanks!!

Bryan
Rich2k
Right.

First if you can upgrade to php 4.3.1 then this would be much easier as gd support is built in.

I'll go for png and jpeg libraries as well

However
1) Install the zlib library, required for png library
http://www.gzip.org/zlib/

2) Then get the png libraries and install
http://www.libpng.org/pub/png/libpng.html

(installation of all these libraries is pretty easy and can normally be done simply with
./configure
make
make test
make install
however check the install and readme files first)

3) Install the jpeg libraries
ftp://ftp.uu.net/graphics/jpeg/
You need th jpegsrc.v6b.tar.gz
(If I rememeber correctly you need to copy a makefile from a subdirectory to it's main directory for this to work, it's detailed in the readme though)

4) Install GD
http://www.boutell.com/gd/

Then you need to reconfigure php. There is a great how-to on how to do this under plesk in the how-to forum but add in --with-gd --with-jpeg-dir=[DIR] --with-png-dir=[DIR]

Sorry for not going through the exact lines and config details but I already have them installed and so can't backtrack.
NightHawk
of course...if you do upgrade to php 4.3.1 ...watch out...becuase your webmail isnt' going to work anymore....(along with possibly other items)....there are fixes....but I think they are well enough documented in the plesk forum that I don't need to go into them here...
beggers
Thanks for the info. This is a bit over my head right now, but I may take a crack it, assuming the potential incompatibilities aren't too bad. I'll have to look into that, too.
NightHawk
QUOTE
Originally posted by beggers
Thanks for the info.  This is a bit over my head right now, but I may take a crack it, assuming the potential incompatibilities aren't too bad. I'll have to look into that, too.



from my experience the incompatiblites only come into play with webmail (#1 problem source..but fixable)..and things like older phpnuke (and variants)...and php based forums like phpBB...(again older versions)....

Give it a shot..just backup the files you are going to be playing with...before you play with them..
Rich2k
The easiest way to fix the webmail problem is actually to change the IMP config from using sendmail (well actually qmail) to smtp on localhost.

I've detailed it somewhere in this forum...

[edit]Found it: http://forum.rackshack.net/showthread.php?...&threadid=18312[/edit]
NightHawk
QUOTE
Originally posted by Rich2k
The easiest way to fix the webmail problem is actually to change the IMP config from using sendmail (well actually qmail) to smtp on localhost.

I've detailed it somewhere in this forum...

[edit]Found it: http://forum.rackshack.net/showthread.php?...&threadid=18312[/edit]


that fix you need no matter what.....there is another fix you need if you upgrade your php to 4.3 or above....I don't have a link handy...but the info is on the same page where the php rpm's for plesk are....
Rich2k
Ah is this the one that screws up the character set?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.