Help us understand the problem. What is going on with this article?

VCCWでPHPのバージョンを7.2 / 7.3 / 7.4にする方法

ローカルのvccwでphp7.2で検証したかった。

現在のvccwではphpのバージョンは変更出来ないのでどうしたものかと思っていたらFacebookでvccw開発者の宮内さんがドンピシャの答えをくれましたので忘れないようにメモ。

https://tecadmin.net/install-php-7-on-ubuntu/

PHP7.2にしたいVCCWを起動して

$ vagrant ssh
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get install -y php7.2

これだけ!

vagrant@vccw2:~$ php -v 
PHP 7.2.0-2+ubuntu16.04.1+deb.sury.org+2 (cli) (built: Dec  7 2017 20:14:31) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.2.0-2+ubuntu16.04.1+deb.sury.org+2, Copyright (c) 1999-2017, by Zend Technologies

7.2 になってる!

@miya0001 さん ありがとうございました!

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした