The difference between php-cli and php-fpm is that php-cli is the command line version, while php-fpm is an extension for server software such as apache or nginx to process PHP files.
The operating environment of this article: windows10 system, php 7.3, thinkpad t480 computer.
The differences between them are analyzed as follows:
CLI is the command line version. FPM is an extension for server software such as Apache or Nginx to process PHP files.
The default version of PHP does not support thread safety. You can learn about PHP extension development for this thread safety issue. This is because of C language issues.
cli and fpm are two ways of running PHP, and thread safety and non-thread safety should be said to be versions. Whether to enable thread safety can be selected when compiling PHP.
Free learning video sharing: php video tutorial
The above is the detailed content of What is the difference between php-cli and php-fpm. For more information, please follow other related articles on the PHP Chinese website!