I'm setting up squirrelmail with captcha. I installed php as a module but I don't its an issue. I've re-compile php with gd support. I installed libpng,libjpeg,zlib using rpm but since my php is from source so I decided to install source version of libpng,libjpeg,zlib following this instruction on this
site.
Here is my configure parameters
Code:
./configure --with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/apache/php --with-config-file-path=/usr/local/apache/php --enable-force-cgi-redirect --disable-cgi --with-gettext --with-gdbm --with-jpeg-dir=/usr/local/lib --with-zlib-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-gd
When I do ./php -m, I see gd
Code:
[PHP Modules]
ctype
date
dba
dom
filter
gd
gettext
hash
iconv
json
libxml
pcre
PDO
pdo_sqlite
posix
Reflection
session
SimpleXML
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
[Zend Modules]
I also tried to use this script found
here to test and it was fine also.
Code:
GD is supported by your server!
GD VersionYes
FreeType SupportNo
T1Lib SupportNo
GIF Read SupportYes
GIF Create SupportYes
JPG SupportYes
PNG SupportYes
WBMP SupportYes
XPM SupportNo
XBM SupportYes
JIS-mapped Japanese Font SupportNo
However, my image is still broken.
Can anyone help me or give me a link with working installation of gd-php.