linux环境下验证码不显示的几种情况

gd库扩展没有安装.
查看phpinfo(),看看有没有安装gd库
yum安装gd库或者phpize安装
安装完成后记得重启php-fpm
bom头的原因
在生成验证码的脚本前加上ob_clean
nginx不支持pathinfo的原因
如果你查看你的console出现404错误.那是因为nginx不支持pathinfo造成的

location ~ .php {

root H:/PHPServer/WWW; #项目目录

fastcgi_pass 127.0.0.1:9000;

fastcgi_index index.php;

fastcgi_split_path_info ^(.+.php)(.*)$;

fastcgi_param PATH_INFO $fastcgi_path_info;

fastcgi_param SCRIPT_FILENAME
documen
t
r
oot
documentroot
fastcgi_script_name;

include fastcgi_params;

}

猜你喜欢

转载自blog.csdn.net/Cp847665268/article/details/82320215