I'm running a server with ubuntu 9.10.

I'm trying to enable captcha support for our wordpress blog contact form and the instructions say that I'll need to "verify that PHP has GD support and Freetype support compiled in"

How can I verify this?

Additional information here: http://wordpress.org/support/topic/323395

-M

link|improve this question

74% accept rate
feedback

3 Answers

up vote 4 down vote accepted

In command line:

GD Support:

$ php -i | grep "GD "
(keep the space, it's required)

FreeType Support:

$ php -i | grep "FreeType"

Best regards,
T.

link|improve this answer
Thank you! That's just what I needed! – Mike B Nov 19 '09 at 22:05
feedback

Make a php file (like index.php) with the phpinfo() function and view it in the browser:

<?php
phpinfo();
?>

Also, I think you might just need to do the following to install it:

sudo apt-get install php5-gd
link|improve this answer
Thanks! The apt-get statement worked perfectly. – Mike B Nov 19 '09 at 21:14
feedback

From commandline:

php -m
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.