Home  >  Article  >  Backend Development  >  What is the difference between php-cli and php-fpm

What is the difference between php-cli and php-fpm

王林
王林Original
2021-06-24 10:45:224241browse

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.

What is the difference between php-cli and php-fpm

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!

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