Centos安装xdebug

安装

[root@vb002 opt]# wget http://www.xdebug.org/files/xdebug-2.3.3.tgz
[root@vb002 opt]# tar -zxvf xdebug-2.3.3.tgz
[root@vb002 xdebug-2.3.3]# cd xdebug-2.3.3
[root@vb002 xdebug-2.3.3]# /usr/local/php/bin/phpize
[root@vb002 xdebug-2.3.3]# ./configure --with-php-config=/usr/local/php/bin/php-config
[root@vb002 xdebug-2.3.3]# make && make install



如果出现这个就证明安装成功啦

Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/

  +----------------------------------------------------------------------+
  |                                                                      |
  |   INSTALLATION INSTRUCTIONS                                          |
  |   =========================                                          |
  |                                                                      |
  |   See http://xdebug.org/install.php#configure-php for instructions   |
  |   on how to enable Xdebug for PHP.                                   |
  |                                                                      |
  |   Documentation is available online as well:                         |
  |   - A list of all settings:  http://xdebug.org/docs-settings.php     |
  |   - A list of all functions: http://xdebug.org/docs-functions.php    |
  |   - Profiling instructions:  http://xdebug.org/docs-profiling2.php   |
  |   - Remote debugging:        http://xdebug.org/docs-debugger.php     |
  |                                                                      |
  |                                                                      |
  |   NOTE: Please disregard the message                                 |
  |       You should add "extension=xdebug.so" to php.ini                |
  |   that is emitted by the PECL installer. This does not work for      |
  |   Xdebug.                                                            |
  |                                                                      |
  +----------------------------------------------------------------------+



打开php.ini

添加extension=xdebug.so

重启一下lnmp

你可能感兴趣的:(PHP,xdebug)