yakczh
V2EX  ›  问与答

同一台 apache, 一个虚拟主机用 php5.3 另一个用 php5.4 可以实现吗?

  •  
  •   yakczh · Apr 14, 2015 · 4124 views
    This topic created in 4236 days ago, the information mentioned may be changed or developed.
    11 replies  •  2015-04-15 14:28:24 +08:00
    Themyth
    Themyth
    Apr 14, 2015
    1
    httpd.conf 里只能调用一个 php 模块吧……
    你试试单独定义各个不同的虚拟主机Ini信息。
    我没尝试过~
    shinko
    shinko
    Apr 14, 2015
    2
    nginx可以。不知道apache的fcgi模式是否可以。
    kungfuchicken
    kungfuchicken
    Apr 14, 2015
    3
    模块方式不行,但是可以跑两个php-fpm,或者fastcgi
    neilwong
    neilwong
    Apr 14, 2015
    4
    跑两个php-fpm,一个9000,一个9001,apache 几个世纪不用了,不过我感觉这个基础功能还是有的
    wulongqiu
    wulongqiu
    Apr 14, 2015
    5
    可以试试 AMH
    fredcc
    fredcc
    Apr 14, 2015
    6
    好奇为啥不用nginx,不同目录用不同版本php都可以
    Showfom
    Showfom
    PRO
    Apr 14, 2015 via iPhone
    7
    完全可以
    yakczh
    yakczh
    OP
    Apr 14, 2015
    8
    一个mod_php 另一个用mod_fcgid 这样应该可以
    yakczh
    yakczh
    OP
    Apr 14, 2015
    9
    Only first PHPINIDir directive honored per configuration tree - subsequent ones ignored
    试了一下,只能加载一个phpinidir指令
    yakczh
    yakczh
    OP
    Apr 15, 2015
    10
    @Themyth 我在虚拟主机的的VirtualHost 里面配置fcgid 提示

    FcgidMaxProcesses cannot occur within <VirtualHost> section
    yakczh
    yakczh
    OP
    Apr 15, 2015
    11
    5.6.x的php 配置fcgid 老是提示500
    日志显示
    [Wed Apr 15 14:26:39.431379 2015] [fcgid:warn] [pid 2916:tid 812] (OS 109)ܵRѽ⋸ : [client 127.0.0.1:56764] mod_fcgid: get overlap result error
    [Wed Apr 15 14:26:39.431379 2015] [core:error] [pid 2916:tid 812] [client 127.0.0.1:56764] End of script output before headers: test.php
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4346 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 08:53 · PVG 16:53 · LAX 00:53 · JFK 03:53
    ♥ Do have faith in what you're doing.