Easy way to add freetype support on PHP, on a DirectAdmin hosting environment with Fedora as the OS, is to use the rpm versions of freetype and freetype-devel.
-
If not installed already:
# yum install freetype freetype-devel
Edit "/usr/local/directadmin/customapache/configure.php" to include the below lines.
--with-freetype \
--with-freetype-dir=/usr/lib \
--enable-gd-native-ttf \
Note: /usr/lib is the path to the libttf.so .
# rpm -ql freetype-devel | grep libttf.so
Then run the build:
# ./build clean
# ./build php n
If you need to build and update existing packages:
# ./build clean
# ./build update
# ./build all
Check with phpinfo to confirm.
Enabling exif for php
Install exif:
# yum install libexif libexif-devel
Edit configure.php with:
--enable-exif \
Re-compile php with exif enabled.
# ./build clean
# ./buid php n
Check with phpinfo.