Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:


share|improve this question
up vote 8 down vote accepted

In command line:

GD Support:

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

FreeType Support:

$ php -i | grep "FreeType"

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

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


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

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

From commandline:

php -m
share|improve this answer

When I run these commands $ php -i | grep "GD " php -i | grep "FreeType" I get command not found error.

Does it mean that Freetype not installed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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