我已经安装了 xdebug 并在我的 mac 上工作,但我似乎无法在我的服务器(bluehost.com 服务器)上安装它。我已经尝试了很长时间,并会感谢任何可能的帮助。
基本上我已经下载了“xdebug.so”并将其安装在我的 /public_html/ 目录中
然后我进入我的 php.ini 文件(位于同一目录中),删除任何其他 [zend] 引用并插入以下内容:
zend_extension=/home1/[myUserName]/public_html/xdebug.so
zend_extension_ts = /home1/[myUserName]/public_html/xdebug.so
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_mode=req
这基本上与我在我的 Mac 上的完全一样,并且运行良好。
我使用“home1”而不是“home”的原因是因为 bluehost 就是这样设置我的网站的。我也尝试过使用两者来检查但没有运气。
当我运行 phpInfo() 时,我没有得到任何对 Xdebug 的引用。
我在这里不知所措,我花了几个小时在我的 mac 上设置它(几个月前),现在我花了几个小时试图在我的服务器上设置它。
注意:我已经联系 bluehost.com 寻求帮助,但仍在等待。他们还说他们不为此类问题提供支持,所以我没有屏住呼吸。
提前致谢!