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

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

4 Answers 4

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

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

From commandline:

php -m
share|improve this answer

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

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.