Install xdebug centos 5.8 and xdebugcentos
This command is the best installation. However, PHP version 5.3 on my server cannot be upgraded yet. No.
/Php5/bin/pecl install xdebug
Download the source code.
Http://xdebug.org/files/xdebug-2.3.2.tgz
The download is also incorrect. It is too new to support the corresponding PHP version.
Download again
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
Run it. Check the version
/Php5/bin/phpize
==================================
[Root @ PHPMEM xdebug-2.2.7] #/php5/bin/phpize
Processing ing:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
==================================
Compile:
./Configure -- enable-xdebug -- with-php-config =/php5/bin/php-config
Note the last parameter of the command above, and write it to the position of the php-config file.
Make
Cp modules/xdebug. so/php5/modules/xdebug. so
Copy the configuration file to the configuration file.
If the compilation is not successful, install the following command:
Yum install php-devel
Yum install php-pear
Edit the 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
Add the last part of the file
Restart the WEB server.
/Nginx. sh restart