Control Web Panel
WebPanel => PHP => Topic started by: gtaranti 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?
-
in php switcher you can recompile your php version according to your needs
-
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. :-\
-
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.
-
Isnt GD pre compiled?
-
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