Php 在ubuntu服务器5.3.6-13ubuntu3.6上安装xdebug 2.1.4

Php 在ubuntu服务器5.3.6-13ubuntu3.6上安装xdebug 2.1.4,php,ubuntu,xdebug,Php,Ubuntu,Xdebug,我试图在我的ubuntu服务器上安装xdebug,但它不起作用。我知道它不工作的原因是var_dump的输出没有着色,我也不能使用netbeans连接到它 我按照定制的说明在上安装xdebug http://xdebug.org/wizard.php 以下是我的phpinfo分析结果: Xdebug installed: no Server API: Apache 2.0 Handler Windows: no Zend Server: no PHP Version: 5.3.6-13 Zen

我试图在我的ubuntu服务器上安装xdebug,但它不起作用。我知道它不工作的原因是var_dump的输出没有着色,我也不能使用netbeans连接到它

我按照定制的说明在上安装xdebug

http://xdebug.org/wizard.php
以下是我的phpinfo分析结果:

Xdebug installed: no
Server API: Apache 2.0 Handler
Windows: no
Zend Server: no
PHP Version: 5.3.6-13
Zend API nr: 220090626
PHP API nr: 20090626
Debug Build: no
Thread Safe Build: no
Configuration File Path: /etc/php5/apache2
Configuration File: /etc/php5/apache2/php.ini
Extensions directory: /usr/lib/php5/20090626
向导建议的文件名为xdebug-2.1.4.tgz

phpize的产量为

Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
我的phpinfo现在确实显示安装了xdebug,下面是它的样子:

下面是我的php.ini中的内容

zend_extension = /usr/lib/php5/20090626/xdebug.so
xdebug.profiler_output_dir = "/var/log/apache2/xdebug"
xdebug.profiler_output_name = "cachegrind.out.%p"
xdebug.profiler_enable =1
xdebug.profiler_append=1
xdebug.extended_info=1
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_mode=req
xdebug.remote_host=192.168.2.13
xdebug.remote_port=9000
;xdebug.idekey=xdebug
xdebug.idekey=netbeans-xdebug
xdebug.remote_connect_back=1
xdebug.remote_log="/var/log/apache2/xdebug_remote.log"
xdebug.show_exception_trace=0
xdebug.show_local_vars=9
xdebug.show_mem_delta=0
我的电脑上的lsb_版本-a的输出是

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 11.10
Release:        11.10
Codename:       oneiric

phpinfo上显示的PHP版本为5.3.6-13ubuntu3.6

对于颜色,您可能还需要在PHP.ini中设置
html\u errors=1


至于netbeans问题(你真的不应该把问题合并到一个问题中!),运行PHP的机器有哪些IP地址,运行netbeans的机器有哪些IP地址?xdebug.remote_主机设置应包含运行netbeans的主机的IP地址。您正在生成的远程日志文件中也应该有连接尝试。

对于颜色,您可能还需要在php.ini中设置
html\u errors=1

至于netbeans问题(你真的不应该把问题合并到一个问题中!),运行PHP的机器有哪些IP地址,运行netbeans的机器有哪些IP地址?xdebug.remote_主机设置应包含运行netbeans的主机的IP地址。您正在生成的远程日志文件中也应该有连接尝试