PHPer233
V2EX  ›  PHP

为什么 Apache+ PHP 在 FastCGI 模式下不支持 popen()函数?

  •  
  •   PHPer233 · May 26, 2021 · 3139 views
    This topic created in 1988 days ago, the information mentioned may be changed or developed.
    网站是 Apache+php,运维配置的是 FastCGI 模式,我发现在该模式下不支持 popen()函数,虽然函数返回一个资源流,但实际上 command 并没有执行。就很奇怪。。。
    5 replies  •  2021-05-27 14:22:00 +08:00
    daimonhunter
    daimonhunter
    May 26, 2021
    1
    是不是在 php.ini 中禁用了
    hefish
    hefish
    May 26, 2021
    2
    这运维应该是个人才。
    akira
    akira
    May 26, 2021
    3
    popen 没开也是正常的,高风险函数有时候直接一刀切了
    yakumo520
    yakumo520
    May 27, 2021
    4
    看下 php.ini 里面的 disable_functions 是不是有 popen,一般这种高风险函数都是禁用的
    julyclyde
    julyclyde
    May 27, 2021
    5
    你这个描述“该模式下不支持”……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4402 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 01:09 · PVG 09:09 · LAX 17:09 · JFK 20:09
    ♥ Do have faith in what you're doing.