意外とPHPのバージョンを指定してUbuntuにインストールする方法が載ってないのでまとめる
636 ワード
環境
OS:Ubuntu16.04LTS
PHP:PHP5.6をインストールしたい
手順
sudo apt-get install software-properties-common python-software-properties
sudo apt-get update
sudo apt-get upgrade
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5.6
sudo apt-get -y install php5.6 php5.6-cgi libapache2-mod-php5.6 php5.6-common php-pear
sudo a2enconf php5.6-cgi.conf
sudo apt-get install software-properties-common python-software-properties
sudo apt-get update
sudo apt-get upgrade
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5.6
sudo apt-get -y install php5.6 php5.6-cgi libapache2-mod-php5.6 php5.6-common php-pear
sudo a2enconf php5.6-cgi.conf
当然、5.6の部分を7.0や7.1等にしてもOK。
Author And Source
この問題について(意外とPHPのバージョンを指定してUbuntuにインストールする方法が載ってないのでまとめる), 我々は、より多くの情報をここで見つけました https://qiita.com/gano/items/4a21113173249276f2b2著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .