What is the relationship between PHP fpm and fast-cgi? And there is also a question, that is, PHP running in CGI mode, what is the meaning of running CGI?

Source: Internet
Author: User
I can't figure out a couple of relationships here!
Also, in the middle of the PHP manual, there is a passage:
默认为将 PHP 编译为 CLI 和 CGI 程序。这将建立一个命令行解释器,可用于 CGI 处理或非 web 相关的 PHP 脚本。如果用户运行着一个 PHP 模块支持的 web 服务器,那通常为性能考虑应该使用模块方式。不过 CGI 版可以使 Apache 用户用不同的用户 ID 运行不同的 PHP 页面。
What is the division between this CLI and CGI? Does the CLI mean to run with the command line? CGI is the normal run (browser input and then run the php file?). )

Reply content:

I can't figure out a couple of relationships here!
Also, in the middle of the PHP manual, there is a passage:
默认为将 PHP 编译为 CLI 和 CGI 程序。这将建立一个命令行解释器,可用于 CGI 处理或非 web 相关的 PHP 脚本。如果用户运行着一个 PHP 模块支持的 web 服务器,那通常为性能考虑应该使用模块方式。不过 CGI 版可以使 Apache 用户用不同的用户 ID 运行不同的 PHP 页面。
What is the division between this CLI and CGI? Does the CLI mean to run with the command line? CGI is the normal run (browser input and then run the php file?). )

Cli:command lines Interface (command line interface)
Cgi:common Gateway Interface
CLI and CGI are essentially different two things, but abbreviations look a little bit like that.

PHP-FPM is the fastcgi manager, what is PHP-FPM? Look here

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.