V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
acpanda
V2EX  ›  PHP

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

  •  
  •   acpanda · 2017-09-18 11:15:44 +08:00 · 2072 次点击
    这是一个创建于 2621 天前的主题,其中的信息可能已经有所发展或是发生改变。
    1 条回复    2017-09-18 11:24:45 +08:00
    f2f2f
        1
    f2f2f  
       2017-09-18 11:24:45 +08:00
    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.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1447 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 23:56 · PVG 07:56 · LAX 15:56 · JFK 18:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.