Home  >  Article  >  Backend Development  >  RHEL6 X86_64 安装PHP xdebug

RHEL6 X86_64 安装PHP xdebug

WBOY
WBOYOriginal
2016-06-23 14:32:38743browse

系统环境: RHEL6 X86_64; PHP5.3.2;安装 X D EBUG-2.1.0 ; 安装路径皆为默认

 

RHEL6的光碟是不带php-devel,需要下载安装[注1]。

rpm -ivh php-devel-5.3.2-6.el6.x86_64.rpm

tar -xvzf xdebug-2.1.0

 

cd xdebug-2.1.0

phpize

./configure --enable-xdebug --with-php-config=/usr/lib64/php-config

make

mkdir /usr/lib64/php/xdebug

cp /modules/xdebug.so /usr/lib64/php/xdebug

vim /etc/php.ini

 

#---Begin Edit---添加下面代码在最后

[Xdebug]

zend_extension = "/usr/lib64/php/xdebug/xdebug.so"

xdebug.profiler_enable = on 

xdebug.trace_output_dir = "/usr/lib64/php/xdebug"

xdebug.profiler_output_dir = "/usr/lib64/php/xdebug"

xdebug.remote_enable = on           

xdebug.remote_handler = dbgp          

xdebug.remote_host = localhost

xdebug.remote_port = 9005

#---End Edit---

注1:如果不安装phpize将不能使用。

 

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php 类型约束Next article:PHP+MySQL Web开发