AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[xdebug](server)

Martin Hope
unloco
Asked: 2020-11-14 05:02:05 +0800 CST

2个相同版本的php-fpm进程

  • 0

我想生成两个 php-fpm 进程(一个带有 xdebug,一个没有)以使页面加载更快

我打算基于 XDEBUG_SESSION cookie 在 php-fpm 套接字之间切换

示例代码/etc/apache2/conf-available/php7.2-fpm.conf

<FilesMatch ".+\.ph(ar|p|tml)$">
  <If "%{HTTP_COOKIE} =~ /XDEBUG_SESSION=PHPSTORM/">
          SetHandler "proxy:fcgi://127.0.0.1:9000"
  </If>
  <Else>
          SetHandler "proxy:fcgi://127.0.0.1:9001"
  </Else>
</FilesMatch>

我知道如何配置 php-fpm/etc/php/7.2/fpm/pool.d/www.conf

listen = 127.0.0.1:9000

但我不知道如何产生多个(或两个)php-fpm 进程。
如果有更简单的方法,请告诉我。

php-fpm apache2 xdebug
  • 2 个回答
  • 399 Views
Martin Hope
synthesis
Asked: 2016-04-19 11:48:45 +0800 CST

Windows 防火墙阻止入站端口 9000 (xdebug),即使已创建入站规则

  • 1

我一直在尝试允许计算机 A(配置了 xdebug 的 LAMP)通过端口 9000 连接到计算机 B(带有 xdebug 的 Eclipse IDE)。两者都在我的本地网络上运行。我创建了一个入站规则以允许连接到端口 9000,但连接仍然被阻止。与端口 9000 的被阻止连接似乎已在我的 Windows 防火墙日志中删除。但是,如果我关闭 Windows 防火墙,则允许连接到端口 9000。不确定是什么问题。

lamp windows-firewall eclipse xdebug
  • 2 个回答
  • 2064 Views
Martin Hope
Guerrilla
Asked: 2016-04-15 16:51:03 +0800 CST

“sudo apt-get install php7.0-dev”不工作

  • 2

我正在尝试将 Xdebug 安装到服务器,我正在关注的教程中的先决条件是 php5-dev 但我使用的是 php7.0.5,所以我尝试了sudo apt-get install php7.0-dev.

它给了我

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php7.0-dev : Depends: libpcre3-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我绑定安装 libpcre3 并收到关于另一个包的类似消息。我不知道我在这里做什么,所以不知道该怎么做。

服务器是 Ubuntu 14.04,Nginx 1.9.13,PHP7.0-FPM。

关于如何安装 php dev 的任何建议?

ubuntu php php-fpm ubuntu-14.04 xdebug
  • 5 个回答
  • 8537 Views
Martin Hope
GeoffreyF67
Asked: 2010-04-16 15:06:28 +0800 CST

OS X 地址不可用 - 如何打开此端口?

  • 3

我正试图让 xdebug 在我的雪豹盒上工作。

它使用端口 9000。

当我要求 slickedit 监视此端口时,会给出地址不可用的错误。

我去了 canyouseeme.org 查看端口是否打开。

它说端口未打开。

我已经确认我已经将该端口从路由器转发到我的盒子,并且我没有运行 mac 防火墙。

我难住了。有任何想法吗?

mac-osx xdebug
  • 3 个回答
  • 6282 Views
Martin Hope
clorz
Asked: 2010-02-22 10:25:27 +0800 CST

Apache:为每个请求添加 POST 参数

  • 2

有没有办法为apache传递给php的每个请求添加固定的POST参数?

我几乎可以更改服务器上的任何内容:.htaccess、httpd.conf、php.ini。参数的名称和值都是固定字符串。具体来说,我正在尝试以这种方式启用远程 Xdebug。

php apache-2.2 xdebug
  • 1 个回答
  • 551 Views
Martin Hope
vps
Asked: 2010-02-20 21:13:43 +0800 CST

XDebug 是做什么用的?

  • 0

test:coverage 依赖 XDebug 来收集它的信息,你需要先安装并启用它。

它是如何工作的?

php debugging xdebug
  • 3 个回答
  • 123 Views
Martin Hope
sanders
Asked: 2010-02-17 12:59:38 +0800 CST

Ubuntu:安装 Xdebug 时出现问题

  • 3

我正在尝试在 Ubuntu 最新版本上安装 XDebug,但出现以下错误:

 pecl install Xdebug
WARNING: configuration download directory "/build/buildd/php5-5.2.10.dfsg.1/pear-build-download" is not writeable.  Change download_dir config variable to a writeable dir to avoid this warning
Cannot install, php_dir for channel "pecl.php.net" is not writeable by the current user
jigal@LT-Jigal:/$ sudo pecl install Xdebug
downloading xdebug-2.0.5.tgz ...
Starting to download xdebug-2.0.5.tgz (289,234 bytes)
.................done: 289,234 bytes
67 source files, building
running: phpize
sh: phpize: not found
ERROR: `phpize' failed

我该如何解决这个问题?

ubuntu installation xdebug
  • 1 个回答
  • 1753 Views
Martin Hope
Kzqai
Asked: 2010-01-22 11:47:12 +0800 CST

xdebug 是否与 php 5.3 的自定义安装兼容?

  • 0
sudo apt-get install php5-xdebug
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  php5-xdebug: Depends: phpapi-20060613
E: Broken packages
tchalvak:~/sites/loltrading$ apt-cache show phpapi-20060613

有没有办法解决这个问题并在 ubuntu 上使用 php 5.3 运行 xdebug?

ubuntu xdebug php53
  • 1 个回答
  • 550 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve