LoginSignup
4
1

More than 1 year has 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
4
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
4
1