【待反馈】nginx 连接不上 php
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:windows新版7.8.0,刚更新的 之前是7.7.0
系统版本:
win7-64位
问题描述:
昨天 安装 php 8.1,和一些免费的宝塔软件,我安装了好几个,想看看是什么功能,没用的我就又删了,后面就发现 网站都打不开,返回502.后面排查,应该是nginx 连接 php 被拒绝了,但是检测防火墙没有什么特别
现在 是 php 8.1php 8.0 可以访问, php 7.1 php7.2 php5.5 php5.4 都无法访问 ,nginx 返回 502 bad gateway相关截图(日志、错误):
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABLMAAAA+CAYAAADQ41l3AAAQv0lEQVR4nO3dWZLbOBKAYXliLuOnKt//EqrT2H7yPHRwjMEAyAQyEwv5fxEdXRZF7BshUvr28eP7n1fi18/fr1N9vd+vj8/P6rFU/j7pePqeVhy1YzV5vKX4S+/piedKVxqONv+a9LXO1x5P09k6r3V+Syv+vHx6wwYAAAAAAPP8e3UCZsg3Kb7e7+LGSWsTI33/yKZVjSZM7QZPS55+bX4075HKQyr/ND/5ez3LfEX9AgAAAAAAX/9anYBZ0s2J0uaQtHlx+uZGK/+r4//4/PyfzSvv9D2hfgEAAAAAeIpH3JnlYeRuqFNIjyBGnw8AAAAAAKDFZpZCfmfPHTe2St8hNfN8AAAAAAAAjcc8Zlj6XqbacW04I2mI3AjThr9is0kqf684amHfcQMSAAAAAIAnusWdWbWNkvR7mPKNjvw7nDTHR+PXiH5Ub+SXDLXpk86XylfDUj4e8QMAAAAAgD18+/jx/U/6wq+fv1elBUo8xgcAAAAAAJ7qMY8Z3gWPywEAAAAAgCe7xWOGd6d5DBAAAAAAAOAJ2Mw6AJtXAAAAAAAA/+AxQwAAAAAAAByDzSwAAAAAAAAcg80sAAAAAAAAHOPYzazoX/XjVwP38/V+//e/05ycdvxF/dnlZehZpqP9rHVORN+1hEUbRK87zz0j/TPqvbvYZax6Aspnb5r6ufP4+HrF5u+ka5td0uq5PvWOKyL8Getr9RfAS7+oZzne+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AAAAA2swAAAAAAAHAMNrMAAAAAAABwjCO+AD79Jv/St/qnX9634ovSZsY/8qsGJ/2c5+q6LJHaHwAAAAAAmOcWd2Z9fH4u3VzwiH/3n0yfkb5r061UnruXDwAAAAAAmOOIO7PwF3cEAQAAAACAJztiMyvdwBndzMnv7JHu/CnFE/GIWRpv7RG70l1JI2loPcJXy78mfa3ztcc1abY8gtiK/7ojrFa/Hu0PAAAAAAD4OGIzyyrfpPh6v4vfI9XaqEjf7/kdVJowPR65y9OvzY/mPVJ5SOVf2rC6jnmW+Yr6BQAAAAAAvm7xnVkarbtrNJsXp29urL67qBV/+h1ZEd9/9oT6BQAAAADgKR5xZ5aHO38BefqI3fXvmecDAAAAAABosZmlkN/Zc8eNrdJ3SM08HwAAAAAAQOMxjxnWvki89ZoUzkgaIjfCtOGv2GySyt8rjlrYd9yABAAAAADgiW5xZ5b0i3fXY3C1R+G0x0fj14h+VM/yS4RS+qTzpfLVsJSPR/wAAAAAAGAP3z5+fP+TvvDr5+9VaYESj/EBAAAAAICnesxjhnfB43IAAAAAAODJbvGY4d1pHgMEAAAAAAB4AjazDsDmFQAAAAAAwD/+A0g36+GX/KMGAAAAAElFTkSuQmCC
日志(10061: No connection could be made because the target machine actively refused it) while connecting to upstreamrequest: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:20072" 本帖最后由 宝塔用户_vezvlj 于 2023-6-1 16:36 编辑
现在 是 php 8.1php 8.0 可以访问, php 7.1 php7.2 php5.5 php5.4 都无法访问 ,nginx 返回 502 bad gateway 您好,是否有做过反向代理之类的设置呢?如果有做代理的话,将反向代理配置文件截图出来看下。 谢花郎 发表于 2023-6-1 17:27
您好,是否有做过反向代理之类的设置呢?如果有做代理的话,将反向代理配置文件截图出来看下。 ...
没有,就是新建了一个站,放一个index.php里面输出 phpinfo() 而已。因为一直找不到问题,我就这样测试,排查其他原因。
刚才我又重启电脑,现在有时候可以有时候不行,我怀疑是 多个php 有可能冲突了,不同的php切换。不知道你们有没有遇到过这个情况。 本帖最后由 宝塔用户_vezvlj 于 2023-6-1 19:58 编辑
我现在弄了8 个站,index.php 输出 phpinfo() 而已,php分别是 8.1、8.0、7.3、7.2 、7.1、 5.6、 5.5、5.4,有的能访问,有的不行
每次重启后,有的能访问,有的不行有的等待很久时间又可以了
页:
[1]