How to install PHP GD2 library on Ubuntu

in php, wordpress

I needed to install the PHP GD2 library to support the WordPress captcha plugin SI CAPTCHA Anti-Spam.  I found the right library and installed it with this apt-get command:

sudo apt-get install php5-gd

But SI CAPTCHA Anti-Spam test page still said GD Support: No.  The fix?  I had to restart apache:

sudo /etc/init.d/apache2 restart

I tried the SI CAPTCHA Anti-Spam test again, and I got a big smiley face.  It worked!

hidensoft May 21, 2010 at 11:31 am

i read your article , but its not GD2 library, can you tell me how i can install GD2 Lib ?

abb November 28, 2010 at 7:12 pm

There is GD2 already in Ubuntu that was supported by php team.
But the other one is at www libgd org

Xenland June 5, 2011 at 8:13 pm

Sudo apt-get always has the latest version meaning that it will detect that GD2 is out and will prefer to install that over GD

Comments on this entry are closed.

{ 1 trackback }

Previous post:

Next post: