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/custom
--with-freetype \
&nbs p; --with-freetype-dir=/usr/lib \
&nbs p; --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.
- sandip's blog
- Login or register to post comments
Comments
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.