php compiled with gd and true type font???

hitboy

Verified User
Joined
Jan 26, 2007
Messages
7
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
 
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
Code:
yum list | grep freetype
if it is not installed then do
Code:
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
Code:
cd /usr/local/directadmin/customapache
and type
Code:
./build update
then edit either configure.php or configure.php_ap2 depending on if you use apache 1.xx or 2.xx by typing
Code:
vi configure.php_ap2
for apache 2.xx or
Code:
vi configure.php
for apache 1.xx. Go down and add in
Code:
--with-ttf \
--enable-gd-native-ttf
to it so that it looks like
Code:
--enable-memory-limit \
--with-ttf \
--with-freetype=/usr/lib/freetype
at the end of the file. After that type
Code:
./build php_ap2 y
to rebuild php with gd and truetype for apache 2.xx or
Code:
./build php y
to rebuild it for apache 1.xx. After this you may want to type
Code:
./build zend
to rebuild zend for the new php install but other than that you just need to restart apache with
Code:
service httpd restart
and you should be good to go.
 
Last edited:
Make a php file and put
Code:
<?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.
 
Back
Top