SOLVED - Freetype support in gd?

Started by gtaranti, August 22, 2014, 07:54:54 PM

Previous topic - Next topic

gtaranti

I installed CWP on Centos 6.5 and is great.

I have a joomla installation with a form extension that uses a captcha.
This captcha requires freetype support in gd.

Can I recompile php-gd module with freetype support?

Is there any other way?

Administrator

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



AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp





Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor











Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

gtaranti

Thank you for your answer.

This is what I did exactly (searching through the interface of cwp) and it worked by adding support to gd for freetype and jpeg (which failed to build in the automated initial php build)


I was so desperate, I was thinking to reinstall CentOS.  :-\

pro003

Hi, I would like to add here that it is very disappointing not having someone to explain how should PHP be initially installed with Freetype and GD Jpeg support.
I know that there is a option to reinstall version of PHP but at least can someone post what lines / options should be added i.e like --enable-header --with-gd  or what else???

I know it's a bit old post but someone probably knows what is the solution here.

brijendrasial


AK

1. Check / install Freetype lib, go to console with a root user and do

>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

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.   :D