Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

ローカルの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