Home  >  Article  >  Backend Development  >  What to do if php cli stops working

What to do if php cli stops working

藏色散人
藏色散人Original
2021-12-13 09:51:522351browse

Solution to the problem that php cli stops working: 1. Open the php.ini configuration file; 2. Find the Xdebug extension and add a ";" semicolon comment before the extension.

What to do if php cli stops working

#The operating environment of this article: Windows 7 system, PHP version 7.4, Dell G3 computer.

What should I do if the php cli stops working?

CLI has stopped working. Windows is checking the solution to the problem.

When running the php cmd command, the CLI has stopped working error appears as shown below

What to do if php cli stops working

It is said online that there is a problem with the php.ini configuration file.

It may be a problem with extension loading. Find the third-party extension and comment it out and try it.

I got an error The reason is that the Xdebug extension

[Xdebug]
;zend_extension="C:/php5-x86/ext/php_xdebug-2.2.5-5.5-vc11.dll"
;xdebug.auto_trace=1
;xdebug.collect_params=1
;xdebug.collect_return=1
;xdebug.trace_output_dir="C:/php5-x86/log"
;xdebug.profiler_enable=1
;xdebug.profiler_output_dir="C:/php5-x86/log"

is used and can be used by adding; before commenting it out.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What to do if php cli stops working. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn