Home > Article > Backend Development > How to turn off xdebug in php
php method to turn off xdebug: 1. Enter the PHP installation directory; 2. Find and open the "/usr/local/php/php.d/xdebug.ini" file; 3. Comment out "xdebug. ini" and save and exit.
The operating environment of this tutorial: CentOS 7 system, PHP7.1 version, DELL G3 computer
Xdebug is an open source PHP program A debugger (i.e. a Debug tool) can be used to track, debug and analyze the running status of PHP programs. Because there is a conflict between Xdebug and Composer tools, you need to turn off Xdebug when using Composer. Let me introduce to you how to close it.
php method to turn off xdebug
1, determine the PHP version and whether Xdebug is installed
Indeed it is installed Xdebug is installed and has been started. What will happen if it is not disabled?
2, install Composer. Enter in the shell:
curl -sS https://getcomposer.org/installer | php
Display Download Composer successfully.
#3. Before Xdebug was disabled, an error was reported when installing Composer. Enter the installation command in the shell:
php composer.phar install
4, enter PHP installation Directory, find "xdebug.ini" and comment out the statements in it.
The full path where my file is located: /usr/local/php/php.d/xdebug.ini
The following is the initial content of this configuration file:
5, comment out the contents of xdebug.ini, save and exit.
#6. After disabling Xdebug, Composer can work normally. The following is a screenshot of normal operation.
Recommended study: "PHP Video Tutorial"
The above is the detailed content of How to turn off xdebug in php. For more information, please follow other related articles on the PHP Chinese website!