View Full Version : php compiled with gd and true type font???
hitboy
01-26-2007, 09:03 PM
Hello I just got myself a DirectAdmin VPS but I am confused for one of my scripts i apparently have to do this : php compiled with gd and true type font
I have no idea what that means or where I do it lol can someone help me out please :D
Marshall
01-27-2007, 01:57 AM
First you need to make sure you have the true type fonts installed, most systems should automatically but just in case go to shell and type
yum list | grep freetype
if it is not installed then do
yum install freetype
to install it. I am not sure if you need the devel package as well but if the make fails later on try installing it to see if that will correct it. Next go to your directadmin customapache folder
cd /usr/local/directadmin/customapache
and type ./build update then edit either configure.php or configure.php_ap2 depending on if you use apache 1.xx or 2.xx by typing
vi configure.php_ap2
for apache 2.xx or vi configure.php for apache 1.xx. Go down and add in --with-ttf \
--enable-gd-native-ttf to it so that it looks like
--enable-memory-limit \
--with-ttf \
--with-freetype=/usr/lib/freetype
at the end of the file. After that type ./build php_ap2 y to rebuild php with gd and truetype for apache 2.xx or ./build php y to rebuild it for apache 1.xx. After this you may want to type ./build zend to rebuild zend for the new php install but other than that you just need to restart apache with service httpd restart and you should be good to go.
keefe007
01-31-2007, 05:43 PM
How can one check to make sure freetype is installed and working properly?
Marshall
01-31-2007, 06:07 PM
Make a php file and put<?php phpinfo(); ?> in it then upload it to a browser accessible spot on the server and browse to it. Scroll through it and look for the Freetype module settings and make sure it's listed. A way to test would be to use a script that requires freetype and see if it runs correctly as I've never used freetype and wouldn't know the exact commands for it.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.