今回の環境
- GMOデジロックのレンタルサーバー「コアサーバー」
- 料金プラン: ビジネスプラン「CORE-B」 (30日間無料お試しトライアル期間中)
- サーバー: b1.coreserver.jp
OS を確認
$ uname -a
Linux b1.coreserver.jp 4.4.0-161-generic #189-Ubuntu SMP Tue Aug 27 08:10:16 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
Apache HTTP Server のデーモン httpd を探す
/usr/sbin/apachectl と /usr/sbin/httpd が存在しているが、実際に動いているのはこれではなかった。
実際に起動しているプロセスを確認すると /usr/local/apache24/bin/httpd が見つかった。
$ ps -ef | grep httpd
root 460494 460474 0 05:50 ? 00:00:00 fghack /usr/local/apache24/bin/httpd -T
root 460506 460494 0 05:50 ? 00:00:00 [httpd] <defunct>
root 460529 1 0 05:50 ? 00:00:02 /usr/local/apache24/bin/httpd -T
apache 460530 460529 0 05:50 ? 00:00:01 /usr/local/apache24/bin/httpd -T
apache 460531 460529 0 05:50 ? 00:00:01 /usr/local/apache24/bin/httpd -T
apache 460532 460529 0 05:50 ? 00:01:25 /usr/local/apache24/bin/httpd -T
apache 460533 460529 0 05:50 ? 00:00:57 /usr/local/apache24/bin/httpd -T
apache 460537 460529 0 05:50 ? 00:01:35 /usr/local/apache24/bin/httpd -T
hoge 825723 824508 0 23:59 pts/0 00:00:00 grep --color=auto httpd
Apache HTTP Server のバージョンを確認
バージョンは 2.4.41 だった。
$ /usr/local/apache24/bin/httpd -V
Server version: Apache/2.4.41 (Unix)
Server built: Sep 5 2019 03:19:37
Server's Module Magic Number: 20120211:88
Server loaded: APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/usr/local/apache24"
-D SUEXEC_BIN="/usr/local/apache24/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
このバージョン 2.4.41 は現時点(2019年12月15日)での最新版だった。
Apache HTTP Server 2.4.41 Released
August 14, 2019
Apache HTTP Server で使えるモジュールを確認
静的に組み込まれているモジュールを確認。
$ /usr/local/apache24/bin/httpd -l
Compiled in modules:
core.c
mod_so.c
http_core.c
event.c
権限の問題で、動的にロードされるモジュールを確認することはできなかった。
$ /usr/local/apache24/bin/httpd -M
httpd: Could not open configuration file /usr/local/apache24/conf/httpd.conf: Permission denied