我在我的 ubuntu 上使用 cpriego/valet-linux 在本地为我的 drupal 站点提供服务。在我按照https://xdebug.org/wizard中显示的步骤安装 Xdebug 之前,它工作正常。现在突然代客停止工作,当我在本地打开我的 drupal 站点时,它给了我
502 bad gateway错误。我试图通过作曲家卸载并重新安装代客泊车,不幸的是它显示
Segmentation fault (core dumped)
在我的终端中。
PHP 版本是7.3.29。
Xdebug 版本是3.0.4
下面是nginx错误日志
2021/08/05 19:18:17 [error] 5808#58080P *1 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/path/to/valet.sock", host: "mydrupalsite.localhost"
更新
为了让作曲家再次工作,我
alias composer='XDEBUG_MODE=off\composer'
在我的 .zshrc 文件中写道。它只是在使用作曲家时关闭 xdebug。
并且如果我评论zend_extension=xdebug
代客/etc/php/7.x/fpm/conf.d/99-xdebug.ini
工作恢复正常但禁用xdebug。如何同时使用 valet 和 xdebug?