DirectAdmin
Compile Freetype2 from source.
Code:
cd /usr/local/directadmin/customapache/
wget http://savannah.nongnu.org/download/...-2.1.10.tar.gz
tar zxf freetype-2.1.10.tar.gz
cd freetype-2.1.10
./configure
make
make install
My Freetype libs are located in /usr/local/lib, check your system and see where it is (ex: /usr/lib).
Open the 'build' file in the DA scripts directory and search for doGD
In the configure line, change --without-freetype to:
Code:
--with-freetype=/usr/local/lib
Open up 'configure.php' in the DA scripts directory and add:
Code:
--with-freetype \
--with-freetype-dir=/usr/local/lib \
Make sure to include the trailing \. Note my directory where my Freetype libs are, change yours accordingly if needed.
then do:
Code:
./build clean
./build php
Answer 'y' when asked if you want to compile GD again.
Then restart HTTPD. Open up a phpinfo file and you'll see Freetype support listed now.
CPanel/WHM
This is really easy using Cpanel/WHM
- You can enable Free Type support from WHM >> Software >> 'Apache Update' option.
- Click on "Load Previous Config" button which will show you the current modules installed
- scroll down the page and select "TTF (Freetype)".
- Start Build.