SwHosting.ie Knowledgebase



Main > Control Panels > DirectAdmin
Minimize Text   Default    Enlarge Text

Enable ImageTTFText(TTF) in Directadmin servers

Print
Save to list
Subscribe
ERROR: Fatal error: Call to undefined function imagettftext()

This article shows how to install True Type Font (TTF) with GD on a CentOS/RH/Fedora Server with Directadmin.


Compile Freetype2 from source.

Code:
cd /usr/local/directadmin/customapache/
wget http://savannah.nongnu.org/download/freetype/freetype-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 they are.

Edit the build file and search for "
doGD"

nano -w build

In the configure line, change --without-freetype to:

Code:
--with-freetype=/usr/local/lib
nano -w configure.php
Edit configure.php file 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.
service httpd restart

Open up a phpinfo file and you'll see Freetype support listed now.




Related Articles
Plesk Error with Subdomains - WebServerManager::getSubDomainPerformance() failed
Product versions this article applies to: Plesk 7.5 for Windows SYMPTOMS When you try to enter into management page for a sub domain or delete a...
I get "Forbidden error" when try to access a site?
In general this error means that 'httpd' process cannot access some file/directory because of the user 'httpd' is running under has no read permissions on it. Also it can...
Is it possible to upgrade Apache RPM to the latest version from OS update?
Plesk uses its own Apache for the Control Panel and the Apache which serves user websites is a part of the operating system distributive and can be updated freely. After...
Powered by KnowledgeBuilder