Installing Xdebug CentOS 5.8

Source: Internet
Author: User


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

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.