久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      如何在Ubuntu 18.04和Debian 9上安裝PHP 5.6

      正如您已經(jīng)知道的那樣,Ubuntu 18.04和Debian 9可能安裝了PHP 7,并且設(shè)計(jì)用于PHP 5的應(yīng)用程序(如vnStat PHP前端,PHP服務(wù)器監(jiān)視器等),可能由于兼容性問題而無法正常工作。

      在這種情況下,您需要在Ubuntu 18.04/Debian 9上安裝PHP 5.6,以滿足您要在系統(tǒng)上安裝它的應(yīng)用程序的要求。

      在這篇文章中,我們將介紹在Ubuntu 18.04/Debian 9上安裝PHP 5.6的步驟。

      設(shè)置Ond?ej存儲庫

      Ond?ejSurý為Ubuntu和Debian維護(hù)PHP 5.6和PHP 7.0存儲庫。 我們現(xiàn)在將使用Ondej存儲庫來安裝PHP 5.6。

      ### Ubuntu 18.04 ###

      sudo apt-get update
      sudo apt-get install -y software-properties-common

      如何在Ubuntu 18.04和Debian 9上安裝PHP 5.6

      sudo add-apt-repository ppa:ondrej/php

      如何在Ubuntu 18.04和Debian 9上安裝PHP 5.6

      ### Debian 9 ###

      sudo apt-get update
      sudo apt-get install -y apt-transport-https curl
      curl https://packages.sury.org/php/apt.gpg | sudo apt-key add –
      echo “deb https://packages.sury.org/php/ $(lsb_release -sc) main” | sudo tee /etc/apt/sources.list.d/php5.list

      在Ubuntu 18.04/Debian 9上安裝PHP 5.6

      使用以下命令更新存儲庫緩存。

      sudo apt-get update

      現(xiàn)在,使用apt命令安裝PHP 5.6/PHP 7.0。

      sudo apt-get install -y php5.6

      如何在Ubuntu 18.04和Debian 9上安裝PHP 5.6

      使用以下命令驗(yàn)證PHP版本。

      linuxidc@linuxidc:~$ php -v

      輸出:

      PHP 5.6.38-3+ubuntu18.04.1+deb.sury.org+1 (cli)
      Copyright (c) 1997-2016 The PHP Group
      Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
          with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

      在Ubuntu 18.04上安裝PHP 5.6驗(yàn)證截圖:

      lsb_release -a

      如何在Ubuntu 18.04和Debian 9上安裝PHP 5.6

      附加說明:

      您的系統(tǒng)可能已經(jīng)有PHP 7,因此上述命令可能會將PHP版本顯示為7.0或7.2。

      您可以使用以下命令將默認(rèn)PHP版本設(shè)置為5.6,并且可以隨時在PHP 5.6和PHP 7之間切換。

      sudo update-alternatives –config php

      如果有,則顯示如下

      There are 2 choices for the alternative php (providing /usr/bin/php).

        Selection    Path            Priority  Status
      ————————————————————
      * 0            /usr/bin/php7.0  70        auto mode
        1            /usr/bin/php5.6  56        manual mode
        2            /usr/bin/php7.0  70        manual mode

      Press  to keep the current choice[*], or type selection number: 1
      update-alternatives: using /usr/bin/php5.6 to provide /usr/bin/php (php) in manual mode

      沒有其他版本則顯示如下:

      鏈接組 php (提供 /usr/bin/php)中只有一個候選項(xiàng):/usr/bin/php5.6
      無需配置。

      如何在Ubuntu 18.04和Debian 9上安裝PHP 5.6

      現(xiàn)在,PHP v5.6已被設(shè)置為PHP的默認(rèn)值。

      就這樣。

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號