Author Topic: SOLVED - Freetype support in gd?  (Read 18241 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
SOLVED - Freetype support in gd?
« on: August 22, 2014, 07:54:54 PM »
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?
« Last Edit: August 23, 2014, 10:07:50 PM by gtaranti »

Online
*
Re: Freetype support in gd?
« Reply #1 on: August 23, 2014, 04:30:55 PM »
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

Offline
*
Re: Freetype support in gd?
« Reply #2 on: August 23, 2014, 10:07:18 PM »
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.  :-\

Offline
*
Re: SOLVED - Freetype support in gd?
« Reply #3 on: April 05, 2015, 08:09:02 PM »
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.

Re: SOLVED - Freetype support in gd?
« Reply #4 on: April 06, 2015, 01:53:08 PM »
Isnt GD pre compiled?

Offline
*
Re: SOLVED - Freetype support in gd?
« Reply #5 on: July 20, 2015, 08:58:53 PM »
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