How to, install complete bundled GD libs on Debian / Ubuntu LAMP stack

How to, install complete bundled GD libs on Debian / Ubuntu LAMP stack

Following only applies to debian / ubuntu installations, and will install the complete bundled ( forked ) GD libraries.

Installing the stock php5-gd ( apt-get install php5-gd ) package only installs the Boutell's version of GD library -the non forked php version- ( so no imagerotate etc... goodness )

So there's 2 alternatives
1. Compiling bundled forked version > which is not for the occasional CLI user.
2. The easy way > install a pre-compiled version in 3 easy steps.
Open a command line interface & add following 2 lines to /etc/apt/sources.lst

deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all

then run > apt-get update
run > apt-get install php5-gd
( it will complain about non-authenticated sources .. just ignore, it will also update some additional php libs , keep local modified php.ini )

run > /etc/init.d/apache2 restart

done ... you'll enjoy this one

modified packages come from > http://www.dotdeb.org/ > they provide upgraded packages for LAMP stacks

Djamu