20 Apr
Posted by: admin in: Directadmin Tricks, PHP Configuration
Today we’ll add Freetype support for your PHP installation. You might need it if you work with GD library and if you want to add text on pictures. Let’s do it together. Starting PuTTY…
Let’s install Freetype devel first. You can do that by issuing the following command: yum install freetype-devel.

Now we need to configure PHP. Let’s go: cd /usr/local/directadmin/customapache/php-4.4.8;
Let’s take a look at what we have in PHP configuration:
Now I will save current configuration and will append freetype to my configure string. For me it’s the following string:
./configure --with-apxs --with-curl --with-curl-dir=/usr/local/lib --with-gd --with-gd-dir=/usr/local --with-gettext --with-jpeg-dir=/usr/local/lib --with-kerberos --with-mcrypt --with-mhash --with-mysql=/usr --with-pear --with-png-dir=/usr/local/lib --with-xml --with-zlib --with-zlib-dir=/usr/local/lib --with-zip --with-openssl --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --enable-sockets --enable-track-vars --enable-mbstring --enable-memory-limit --with-iconv --enable-dba --with-db4 --with-freetype-dir=/usr/include/freetype2/ --with-freetype
Press Return (or Enter). Then, let’s run make clean, make, make install and service httpd restart . Let’s take a look at what we’ve got:
And especially GD section:
Now you’re welcome to use freetype functions in PHP. Another easy installation, isn’t it?
Tags: add freetype support to your website, compile php with freetype support, easy apache freetype, enable freetype, enable freetype gd, enable freetype on linux, free type support, freetype directadmin, freetype enable, freetype functions, freetype installation, freetype linkage, freetype support, freetype support install, freetype support php, gd and freetype support. how to install, gd freetype support linkage enable, gd2 freetype enable linux, gd2 jpeg support and freetype support in linux, how to add freetype support to php, how to enable freetype support in gd, how to enable freetype support in php, how to install freetype, how to install freetype (ttf) support, how to install freetype php with gd, how to install freetype2 php linux, how to make install freetype, install freetype directadmin, install freetype lib php, install freetype on linux, install freetype on php, install freetype2 in php, php freetype, php freetype apache, php freetype enable, php freetype installation, php freetype2, php gd install with ttf support, your version of php needs to be compiled with freetype support, yum install freetype php
3 Responses
Keith
16|Dec|2008 1Perfect – Worked like a charm, thx!
Sayang… » Blog Archive » Free Help Desk Software: Trellis Desk 1.0
21|Dec|2008 2[...] These instructions from lampdocs.com are fairly complete. The only step that is some what vague is recompiling PHP with your configure string. [...]
Ryan
07|May|2009 3Indeed. Assuming you’re stuck working with a given install of PHP, how do you locate the install directory to perform ./configure? I’m using the build below and can’t find the make files.
http://developer.amazonwebservices.com/connect/entry!default.jspa?categoryID=223&externalID=1992
Leave a reply