View Full Version : [ubuntu] CAPTCHA on Apache2?
crawford.rich
July 9th, 2009, 08:45 AM
Has anyone had any success getting CAPTCHA to display the image on their server.
I have Apache2 running and php5. The CaptchaSecurityImages.php doesn't generate an image. There must be a module that I need to install? Any tips would be greatly appreciated. THNX
Thirtysixway
July 9th, 2009, 02:28 PM
Double-check that you have GD installed, that's what php uses to generate images.
windependence
July 9th, 2009, 02:32 PM
You need to have the GD and FreeType libraries loaded to run the code.
Let me make sure because you weren't clear in your post. You are running a php script which you copied or wrote yourself right?
-Tim
crawford.rich
July 9th, 2009, 05:30 PM
Yes, it is PHP script. I'm fairly new to php and Apache2.
The script was written and uploaded by my web developer. When you say GD, what exactly do you mean. I have libgd-gd2-perl installed.
THNX
crawford.rich
July 9th, 2009, 06:21 PM
I installed php5-gd. Not sure how to install/config freetype. Getting closer.
wojox
July 9th, 2009, 06:53 PM
Here is the freetype website if you need it
http://freshmeat.net/projects/freetype/
Thirtysixway
July 9th, 2009, 11:00 PM
I installed php5-gd. Not sure how to install/config freetype. Getting closer.
This is all you should need, I believe.
sudo apt-get install php5-gd
windependence
July 10th, 2009, 07:47 AM
Here is the freetype website if you need it
http://freshmeat.net/projects/freetype/
It would be better to use the package that contains the freetype library from the Ubuntu repositories.
sudo apt-get install freetype2
-Tim
crawford.rich
July 10th, 2009, 08:30 AM
Tried to install freetye2 - got the following:
rcrawford@rcrawford-laptop:~$ sudo apt-get install freetype2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package freetype2
rcrawford@rcrawford-laptop:~$
windependence
July 11th, 2009, 04:30 AM
Sorry, I think they are included in the msttcorefonts package.
sudo apt-get install msttcorefonts
-Tim
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.