网上查找的:
“
网站升级到dedecms 5.7发现一个重要的问题,就是dedecms 5.7的后台验证码不显示。查了一下有人说时没有安装GD库的原因,securimage必须php支持gd2以及freetype。但是我发现我的空间gd2和freetype都安装了,但是验证码还是不显示。
”
默认不装freetype,所以要审核下系统装是否装了freetype
./configure --prefix=/usr/local/php-fcgi --with-mysql=/usr/local/mysql --with-gd --with-freetype-dir=/usr/local/freetype/ --with-iconv=/usr/local/libiconv --enable-fastcgi --enable-fpm --with-fpm-user=daemon --with-fpm-group=daemon with-libevent-dir=libevent
加上--with-gd --with-freetype-dir=/usr/local/freetype/ 就可以在图片上绘制文字了
另:
下载的cms的编码一定要和mysql数据库的编码一致(默认5.+以上的版本,好像默认没有gbk的)
dedecms centos验证码不显示问题解决
猜你喜欢
转载自welcomejiong.iteye.com/blog/1883861
今日推荐
周排行