Download the xdebug source code package for your PHP version
Here is php5.3.3. Download xdebug2.2.5.
If you don't know what version to download, go to the http://www.xdebug.org/wizard.php
Paste your phpinfo information in the text section. It will automatically find the xdebug suitable for your PHP version.
Wget http://www.xdebug.org/files/xdebug-2.2.5.tgz
Compile and install xdebug
Install the compiling environment: Yum-y install GCC gcc-C ++
Phpize
Tar zxvf xdebug-2.2.5.tgz
CD xdebug-2.2.5
./Configure -- enable-xdebug -- With-PHP-Config =/usr/bin/PHP-config
Make
Make install
Display after installation
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4D/4E/wKioL1RPQAay6L3bAAKHSyvMm-4249.jpg "Title =" qq20151128150131.jpg "alt =" wKioL1RPQAay6L3bAAKHSyvMm-4249.jpg "/>
3. CP modules/xdebug. So/usr/lib64/PHP/modules/
4. Add the following content in/etc/PHP. ini:
Display_errors = on
[Xdebug]
Zend_extension = "/usr/lib64/PHP/modules/xdebug. So"
Zend_extension_ts = "/usr/lib64/PHP/modules/xdebug. So"
Xdebug. auto_trace = on
Xdebug. collect_assignments = 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
Xdebug. remote_enable = on
Xdebug. remote_connect_back = on
Xdebug. remote_port = 9000
5. open port 9000 in the Firewall
-A input-M state -- state new-m tcp-p tcp -- dport 9000-J accept
6. Check whether the installation is successful.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4D/4E/wKiom1RPQA7xCuaMAAC-EYBZdLs649.jpg "Title =" qq20151128150428.jpg "alt =" wKiom1RPQA7xCuaMAAC-EYBZdLs649.jpg "/>
This article is from the "linux_life" blog, please be sure to keep this source http://snbolinux.blog.51cto.com/3069187/1568864
Centos compilation and installation xdebug