Sunday, 16 May 2004
Another oftenly asked option to add to PHP is freetype support, it's not too hard to do like the IMAP support, just got to know HOW to do it..First, see if you have Freetype installed: 'rpm -qa | grep freetype' You should get back at least 2 entries somewhere along the lines of freetype-2.1.4-5 and freetype-devel-2.1.4-5
If you get nothing back, you'll need to install freetype first: rpm -Uvh ftp://ftp.quicknet.nl/pub/Linux/download.fedora.redhat.com/1/i386/os/Fedora/RPMS/freetype* (Fill in your distro and favorite mirror there)
You should have freetype installed now, time to compile it into PHP.. Open up /usr/local/directadmin/customapache/configure.php in your favorite editor, and add the following lines: --with-freetype --with-freetype-dir=/usr
Make sure the line above these 2 entries also ends with a , or you'll get errors during the PHP configure..
Go to /usr/local/directadmin/customapache/ and do a ./build clean, this will clean up any previous compiles.., now do a ./build php and sit it out.., after it finishes, enter: service httpd restart
When you did it all right, it should compile without any problems, now to check if the compile worked: create a file in /var/www/html/ called phpinfo.php with the following lines: <?php phpinfo(); ?>
Then go to: http://your.ip.address/phpinfo.php
It should have '--with-freetype' '--with-freetype-dir=/usr' in the 'Configure command', and at the GD header it should say: FreeType Support enabled FreeType Linkage with freetype
That's it.., you now have freetype support in your PHP.. |