Install xdebug centos 5.8 and xdebugcentos

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.