LoginSignup
4
1

More than 5 years have passed since last update.

Ubuntu/trustyにPHP7.2をインストールする

Posted at

はじめに

VagrantとVirtualBoxで構築したUbuntuの環境にPHPをインストールしたくて、apt-get install phpでPHPをインストールできるかと思ったのですができなくて、できるようになるまでに時間がかかったので、できるようになった方法をメモしたいと思います。

インストール対象

PHP 7.2.8-1

環境

ホストOS: windows10
ゲストOS: Ubuntu(14.04.5 LTS, Trusty Tahr)
仮想化技術: Vagrant + VirtualBox

方法

仮想マシン上にvagrant sshで接続し以下のコマンドを打つだけです。

sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php7.2 php7.2-common php7.2-cli php7.2-fpm

結果

インストールできました。
tmp.PNG

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1