acpanda
V2EX  ›  PHP

请教一下, apache 服务器通过 mod_php 或 apache2handler.dll 配置 PHP 的运行,两者有什么区别了?

  •  
  •   acpanda · Sep 18, 2017 · 2567 views
    This topic created in 3179 days ago, the information mentioned may be changed or developed.
    1 replies    2017-09-18 11:24:45 +08:00
    f2f2f
        1
    f2f2f  
       Sep 18, 2017
    via: https://stackoverflow.com/questions/2712825/what-is-mod-php

    There are (at least) two ways of running PHP, when working with Apache :

    Using CGI : a PHP process is launched by Apache, and it is that PHP process that interprets PHP code -- not Apache itself

    Using PHP as an Apache module (called mod_php) : the PHP interpreter is then kind of "embedded" inside the Apache process : there is no external PHP process -- which means that Apache and PHP can communicate better.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1155 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:01 · PVG 02:01 · LAX 11:01 · JFK 14:01
    ♥ Do have faith in what you're doing.