First download a xdebug
http://www.xdebug.org/docs/
Official website has windos version and Linux source code version, we download a source package xdebug-2.2.5.tgz
Then go to the installation process
tar -xvzf xdebug-2.2. 5 . TGZCD xdebug-2.2. 5/usr/bin/phpize/ * This is done here according to your actual command location */. /Configuremake doinstall
This interface will appear when the installation is ready.
/xdebug-2.2.5/modules/xdebug.so
Directory below to find the path to this xdebug.so file (you can choose to move this file to php.ini extend_dir the specified directory), where I did not move
Edit PHP.ini Add the following information
Zend_extension =/webser/lamp/xdebug-2.2. 5/modules/= = = = = Onxdebug.trace_output_dir = " /webser/xdebug"xdebug.profiler_output_dir="/webser/xdebug"
Restart Apache to view phpinfo information, which shows the configuration information for Xdebug
We punch in a page that contains the error
PHP.ini if Html_errors is set to on then the error message will be entered as a style
Install PHP xdebug under centos6.3