Cybernet Web Design - Web Design & Linux Server Administration
SOLVED - CWP Freetype support in gd? - Printable Version

+- Cybernet Web Design - Web Design & Linux Server Administration (https://www.cybernetwebdesign.com)
+-- Forum: Web Server (https://www.cybernetwebdesign.com/Forum-Web-Server)
+--- Forum: Server Problems (https://www.cybernetwebdesign.com/Forum-Server-Problems)
+--- Thread: SOLVED - CWP Freetype support in gd? (/Thread-SOLVED-CWP-Freetype-support-in-gd)



SOLVED - CWP Freetype support in gd? - cybernetwebdesign - 01-24-2017

in php switcher you can recompile your php version according to your needs

or

1. Check / install Freetype lib, go to console with a root user and do
 
Code:
yum -y install freetype

2. Recompile PHP with freetype lib, to do so , go to 

http://yourserver.com:2030/index.php?module=php_switch

Select php version desired ej: PHP 5.5

Add this line to the configure list 
 
Code:
with-freetype-dir=/usr/local/lib

Run compiler, wait 15 mins aprox.  and check phpinfo 

http://yourserver.com:2030/index.php?module=php_info

You must see : Build Date   (recent date, to check if compiler has done)

And GD module installed like : 

gd

GD Support   enabled
GD Version   bundled (2.1.0 compatible)
FreeType Support   enabled
FreeType Linkage   with freetype
FreeType Version   2.3.11
GIF Read Support   enabled
GIF Create Support   enabled
PNG Support   enabled
libPNG Version   1.2.49
WBMP Support   enabled
XBM Support   enabled

Hope it helps someone.