Technology Insights

Compile Litespeed PHP To Include GD FreeType Support, GD FreeType Linkage, and GD JPG Support

I was recently installing KBPublisher on a web server running Litespeed web server with both PHP and Ruby running on it. The initial check for KB Publisher complained about GD FreeType Support, GD FreeType Linkage, and GD JPG Support not being compiled into PHP. Its fairly easy to resolve this but may not be obvious to all so use the tips and directions below.

Installed Packages:

Technology Insights

WordPress NextGen Gallery Watermarking With Images Not Working

When I first installed NextGen Gallery plugin for WordPress I could not get the watermarking working. I read of all sorts of problems with it including FreeType not being installed, permission problems, etc. but everything that I was trying was not resolving my issue. During upload I was not getting any errors so at the time I felt I had little to go on. To make a long story short I finally read a post on that said the watermark image has to be a PNG for it to work. I saved my watermark file as a .png file and sure enough it worked without issue.

Technology Insights

Linux Commands to Install ImageMagick and RMagick

This is what I had to do to get it to work on CentOS 5. For some reason, FreeType would not work with yum so I built it from scratch. I’m not sure if the all the “yum install”s were needed, but I did it anyway.

#yum install freetype — did not work

cd /usr/local/src


tar xvzf freetype-2.3.5.tar.gz



make install