Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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: http://wordpress.org/support/topic/323395

-M

share|improve this question
add comment

4 Answers

up vote 6 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
add comment

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
add comment

From commandline:

php -m
share|improve this answer
add comment

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
share|improve this answer
    
Thanks! The apt-get statement worked perfectly. –  Mike B Nov 19 '09 at 21:14
add comment

Your Answer

 
discard

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.