Closed (fixed)
Project:
CAPTCHA
Version:
6.x-2.x-dev
Component:
Image Captcha (image_captcha)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2010 at 13:59 UTC
Updated:
5 Apr 2010 at 13:10 UTC
I've noticed several reports of problems which look like what I am experiencing, namely Image Captcha no longer works, except with the "built-in font", following a change of server from shared hosting to VPS. I gather that PHP5 does not support TTF fonts by default, and therefore that I have to add something to the PHP environment - but what? This is not specified! How do I get PHP to support TTF?
Thanks for the help
Comments
Comment #1
soxofaan commentedThis largely depends on your setup (localhost, shared hosting, VPS, linux server, windows server, ...) and more specifically how packages/software/libraries are managed: do you compile everything yourself, do you use out-of-the-box-installers, do you use a linux package manager, ...?
This discussion is a bit out of scope of the image CAPTCHA documentation.
Some more information:
For self compilation: http://www.php.net/manual/en/image.installation.php
If you're using a recent ubuntu linux, you just have to install the php5-gd package (comes with TTF support by default afaik)
...
Comment #2
joel_guesclin commentedIn the end my hosting service switched on the TTF parameter in the PHP settings for GD, and now it works...
Comment #3
soxofaan commented