综合百科

phpMyAdmin网页打不开的解决方法

环境: 使用phpStudy集成环境;

版本1:php5.4.45 + Apache;版本2:php5.4.45-nts + Nginx;

问题描述:

安装完成后,服务器和数据库可以成功启动,版本1和版本2都可以成功启动服务,可以打开首页;

切换到版本1时,能打开 “http://localhost/phpMyAdmin/index.php” ;

切换到版本2时,打开 “http://localhost/phpMyAdmin/index.php” 时会报错;

解决:

查看 nginx 错误日志;

错误信息:

2018/12/0516:50:55[error]18692#8644:*1upstreamsentunsupportedFastCGIprotocolversion:72whilereadingresponseheaderfromupstream,client:127.0.0.1,server:localhost,request:"GET/phpMyAdmin/HTTP/1.1",upstream:"fastcgi://127.0.0.1:8080",host:"localhost:8080",referrer:"http://localhost:8080/"

看不懂,随便百度了下,感觉是端口问题,(我本地开了vpn)。

然后重启电脑,最先开启phpstudy,版本1和版本2下都可以成功的打开

http://localhost/phpMyAdmin/index.php