Apacheの組み込みモジュールの確認方法
Apacheの組み込みモジュールに何が入ってるんだっけ?となった時に使えるコマンドをメモ。
組込済みモジュールを一覧表示する
httpd -M
を実行すると、組み込まれているモジュールを一覧表示できます。
例) 組み込みモジュールを一覧表示
$ httpd -M Loaded Modules: core_module (static) so_module (static) http_module (static) access_compat_module (shared) actions_module (shared)
- 上記の例で、モジュール名の右に表示されている、
(static)
,(shared)
は、モジュールタイプを表しています。- staticは、静的リンクを利用して組み込まれたモジュール
- sharedは、動的リンク(DSO: Dynamic Shared Object)を利用して組み込まれたモジュール
静的モジュールのみを一覧表示する
- Apacheに組み込まれている静的モジュールのみを一覧表示するコマンドは、
httpd -l
例) 静的モジュールのみを一覧表示
$ httpd -l Compiled in modules: core.c mod_so.c http_core.c