5
1

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 3 years have passed since last update.

【Docker】php.iniはどこにある?

Posted at

PHPの環境設定ファイルであるphp.iniの居場所を見失ったので.

#### コンテナ内にあります

Dockerfileの下のようなところに記載されている

Dockerfile
(例)
COPY php.ini /usr/local/etc/php/

###コンテナ内に入って確認

コンテナのnameを確認
$ docker ps
(docker-composeを使っていたら) $ docker-compose ps

コンテナの中に入る

$ docker exec -it コンテナname bash
(docker-composeを使っていたら) $ docker-compose exec -it コンテナname bash

移動して確認

$ cd /usr/local/etc/php/
$ cat php.ini
5
1
1

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
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?