Closed SuSuSoo closed 1 year ago
开启yasd后, 宝塔环境下 PHP-7.3 访问php页面报错 502 Bad Gateway
yasd 配置
[yasd] zend_extension = yasd yasd.debug_mode = remote yasd.remote_host = 192.168.1.111 yasd.remote_port = 9099
PHP错误日志
[31-Jul-2021 01:28:35] WARNING: [pool www] child 12666, script '/www/wwwroot/test.com/abc.php' (request: "GET /abc.php") executing too slow (34.155108 sec), logging [31-Jul-2021 01:28:35] NOTICE: child 12666 stopped for tracing [31-Jul-2021 01:28:35] NOTICE: about to trace 12666 [31-Jul-2021 01:28:35] NOTICE: finished trace of 12666 [31-Jul-2021 01:29:45] WARNING: [pool www] child 12666, script '/www/wwwroot/test.com/abc.php' (request: "GET /abc.php") execution timed out (104.163807 sec), terminating [31-Jul-2021 01:29:45] WARNING: [pool www] child 12666 exited on signal 15 (SIGTERM) after 640.086750 seconds from start [31-Jul-2021 01:29:45] NOTICE: [pool www] child 14418 started
Nginx错误日志
2021/07/31 01:29:45 [error] 13786#0: *40 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.11, server: test.com, request: "GET /abc.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-73.sock:", host: "test.com"
目录结构
禁用yasd后问题得到解决
[yasd] #zend_extension = yasd #yasd.debug_mode = remote #yasd.remote_host = 192.168.1.111 #yasd.remote_port = 9099
经过测试, 基于swoole的常驻进程框架无问题, 基于thinkphp的项目无问题, 只有单文件访问有此问题
我还以为是我的docker环境问题,也是经常502 Bad Gateway,刷新一下又好了!看来是扩展的问题
我也遇到这个问题了
the same question +1
可以考虑使用 swoole-src的 xdebug分支,https://github.com/swoole/swoole-src/tree/support-xdebug 可以直接使用xdebug进行调试,前提是PHP版本要大于等于8.1
开启yasd后, 宝塔环境下 PHP-7.3 访问php页面报错 502 Bad Gateway
yasd 配置
PHP错误日志
Nginx错误日志
目录结构
禁用yasd后问题得到解决
经过测试, 基于swoole的常驻进程框架无问题, 基于thinkphp的项目无问题, 只有单文件访问有此问题