Home > Backend Development > PHP Tutorial > linux+thinkphp+gd验证码无法显示,该怎么解决

linux+thinkphp+gd验证码无法显示,该怎么解决

WBOY
Release: 2016-06-13 12:03:30
Original
821 people have browsed it

linux+thinkphp+gd验证码无法显示
thinkphp+gd验证码在window xampp上面可以正常显示,在ubuntu12.04上面用apt-get安装Apache2+php2+gd无法显示验证码的图片
------解决方案--------------------
这显然不是代码问题,而是配置问题
请逐个检查是否都能正常工作
------解决方案--------------------
输出 phpinfo 看看是否都正常 还有权限是否都已经正确的给予了?
------解决方案--------------------
打開錯誤輸出,看看有什麼錯誤。
在最頂加入
 

<br />ini_set('display_errors','on');<br />error_reporting(E_ALL);<br />
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template