3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Laradock のPHP バージョンアップしてみる。

Posted at

LaradockでのデフォルトのPHP バージョンは、7.2
なので、7.3へアップしてみる。

.env
PHP_VERSION=7.3

ビルドしてみる。

$ docker-compose build php-fpm
$ docker-compose build workspace

停止してからの起動

$ docker-compose down
$ docker-compose up -d nginx mysql workspace

PHP バージョン確認

$ docker-compose exec --user=laradock workspace bash

laradock@12d8642175cc:/var/www$ php -v
PHP 7.3.8-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Aug  7 2019 09:51:47) ( NTS )
Copyright (c) 1997-2018 The PHP Group

3
0
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
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?