2012-05-01 3 views
2

우분투 서버 컴퓨터에 xdebug를 설치하려고했지만 작동하지 않습니다. 내가 작동하지 않는 이유는 var_dump의 출력이 색상으로 표시되지 않으며 netbeans를 사용하여 연결할 수 없기 때문입니다.우분투 서버에 xdebug 2.1.4를 설치하십시오. 5.3.6-13ubuntu3.6

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는 추천 마법사 파일 이름 :

나는 여기

http://xdebug.org/wizard.php 

에 Xdebug는 설치하는 방법에 대한 맞춤형 지침을 내은 phpinfo 분석의 출력이 무엇인지되어 다음

-2.1.4.tgz

의 phpize는 출력

이었다 83,210

내 phpinfo를 지금 여기, 설치 Xdebug는 보여 않는 것이 보이는 방법입니다

enter image description here 다음

내가 내 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_release의 출력에있는 것입니다 - 내 컴퓨터에이은 phpinfo에 표시

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

PHP 버전이 5.3.6-13ubuntu3입니다 .6

답변

4

색상은 php.ini에서 html_errors=1으로 설정하는 것이 좋습니다.

netbeans 문제에 관해서는 (실제로 한 가지 질문으로 문제를 결합해서는 안됩니다!), 어떤 IP 주소가 컴퓨터에서 PHP를 실행합니까? 그리고 어떤 IP 주소로 netbeans를 실행합니까? xdebug.remote_host 설정은 netbeans을 실행하는 IP 주소를 포함해야합니다. 생성중인 원격 로그 파일에도 연결 시도가 있어야합니다.

+0

대단히 고맙습니다. – Yasser1984

관련 문제