This command installs the best. But my server PHP version is 5.3 can not upgrade no way. It's just not necessary.
/php5/bin/pecl Install Xdebug
Download the source code.
Http://xdebug.org/files/xdebug-2.3.2.tgz
Also downloaded the wrong. is too new to support the corresponding PHP version.
Re-download
wget http://xdebug.org/files/xdebug-2.2.7.tgz
cd/root/
Tar zxvf xdebug-xdebug_2_2_7.tar.gz
CD xdebug-xdebug_2_2_7
Take a look. Check out the version
/php5/bin/phpize
=============================
[Email protected] xdebug-2.2.7]#/php5/bin/phpize
Configuring for:
PHP Api version:20090626
Zend Module Api no:20090626
Zend Extension Api no:220090626
=============================
To compile:
./configure--enable-xdebug--with-php-config=/php5/bin/php-config
The above command takes note of the last parameter, to write to the location of the file Php-config.
Make
CP modules/xdebug.so/php5/modules/xdebug.so
Copy here, the configuration file is written there.
If there is a compilation of the above, install it, the following command:
Yum Install Php-devel
Yum Install Php-pear
To edit a configuration file:
Vim/php5/php.ini
[Xdebug]
Zend_extension_ts = "/php/modules/xdebug.so"
Zend_extension = "/php/modules/xdebug.so"
Xdebug.auto_trace = On
Xdebug.auto_profile = On
Xdebug.collect_params = On
Xdebug.collect_return = On
Xdebug.profiler_enable = On
Xdebug.trace_output_dir = "/tmp"
Xdebug.profiler_output_dir = "/tmp"
Xdebug.dump.GET = *
Xdebug.dump.POST = *
Xdebug.dump.COOKIE = *
Xdebug.dump.SESSION = *
Xdebug.var_display_max_data = 4056
Xdebug.var_display_max_depth = 5
The end of the file in Canada
Restart the WEB server.
/nginx.sh restart
Installing Xdebug CentOS 5.8