How To Install Freetype Support for Your PHP Installation

The easy step is to compile apache with Free Type Support

/scripts/easyapache

Else do as given below:

You might need it if you work with GD library and if you want to add text on pictures

First Install delevel as given below by issuing the following command: yum install freetype-devel.

cd /usr/local/directadmin/customapache/php-4.4.8;

Let’s take a look at what we have in PHP configuration:

Now 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

Then do make clean, make, make install and service httpd restart.

Now you’re welcome to use freetype functions in PHP

Send a mail to linuxmaster007@gmail.com for any issues in it.


1 thought on “How To Install Freetype Support for Your PHP Installation

  1. Colette

    Hey just wanted to give you a quick heads up. The words in your post seem to be running off the
    screen in Opera. I’m not sure if this is a format issue or
    something to do with web browser compatibility but I thought I’d post to let
    you know. The style and design look great though!
    Hope you get the problem solved soon. Many thanks

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.