LoginSignup
15
13

More than 3 years have passed since last update.

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

Last updated at Posted at 2017-12-19

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

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

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 さん ありがとうございました!

15
13
3

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
15
13