nyfwan123
V2EX  ›  PHP

求助 V 友, debian php 多版本共存

  •  
  •   nyfwan123 · Feb 4, 2016 · 3250 views
    This topic created in 3940 days ago, the information mentioned may be changed or developed.

    7 和 5.6
    急等。。。

    14 replies  •  2016-02-05 13:13:09 +08:00
    ranwu
    ranwu
    Feb 4, 2016 via Android
    1
    docker
    extreme
    extreme
    Feb 4, 2016
    2
    编译到不同 prefix ,监听不同的端口或 Unix Socket 不就行了吗……
    extreme
    extreme
    Feb 4, 2016
    3
    @ranwu 哪需要这么复杂,不是还有 chroot 吗?
    nyfwan123
    nyfwan123
    OP
    Feb 4, 2016
    4
    32 位的系统 而且 docker 没接触过
    @extreme chroot 怎么实现??
    alexsunxl
    alexsunxl
    Feb 4, 2016
    5
    最简单的还是 docker
    phithon
    phithon
    Feb 4, 2016
    6
    github 搜 phpbrew
    装好以后开俩,监听不同端口或 unix socket 。
    extreme
    extreme
    Feb 4, 2016
    7
    @nyfwan123 我还是建议你编译到不同的目录。
    extreme
    extreme
    Feb 4, 2016
    8
    @phithon 我突然意识到楼主没说他用什么方式运行 PHP ,太泛了,这个问题真不好回答。
    mahone3297
    mahone3297
    Feb 4, 2016
    9
    @extreme 编译到不同目录+1
    nyfwan123
    nyfwan123
    OP
    Feb 4, 2016
    10
    @extreme nginx
    picasso250
    picasso250
    Feb 4, 2016
    11
    简简单单的编译到不同目录就行啦
    lightening
    lightening
    Feb 4, 2016 via iPhone
    12
    @extreme 其实是 docker 比较简单……
    techmoe
    techmoe
    Feb 4, 2016
    13
    一楼正解
    realpg
    realpg
    Feb 5, 2016
    14
    ./configure --prefix=/usr/local/php5 .....................
    ./configure --prefix=/usr/local/php7 .....................

    /etc/init.d/php5-fpm
    /etc/init.d/php7-fpm
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4331 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 118ms · UTC 08:21 · PVG 16:21 · LAX 00:21 · JFK 03:21
    ♥ Do have faith in what you're doing.