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

王林
Release: 2023-03-10 20:36:02
Original
4188 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!