Apache デバッグ
CentOS 6.6
Apache(httpd-2.2.15-39.el6.centos.x86_64)
■シングルプロセスモード
# httpd -X
■httpd.conf構文チェック
# httpd -t
■httpd.conf構文チェック(ファイル指定)
# httpd -t -f conf/httpd.conf
# httpd -t -f /etc/httpd/conf/httpd.conf
■debug用のhttpd.confの作成(dumpio有効/ログレベルdebug)
# cd /etc/httpd/conf
# sed -e 's/^#\(.*mod_dumpio.so\)/\1/g' -e 's/^\(LogLevel\).*/\1 debug/g' -e '$s/$/\nDumpIOInput On/' httpd.conf > httpd.conf.debug
■debugモードで起動
# httpd -k start -f conf/httpd.conf.debug
# httpd -k start -f /etc/httpd/conf/httpd.conf.debug
※dumpio有効でPOSTもログ記録
CentOS 6.6
Apache(httpd-2.2.15-39.el6.centos.x86_64)
■シングルプロセスモード
# httpd -X
■httpd.conf構文チェック
# httpd -t
■httpd.conf構文チェック(ファイル指定)
# httpd -t -f conf/httpd.conf
# httpd -t -f /etc/httpd/conf/httpd.conf
■debug用のhttpd.confの作成(dumpio有効/ログレベルdebug)
# cd /etc/httpd/conf
# sed -e 's/^#\(.*mod_dumpio.so\)/\1/g' -e 's/^\(LogLevel\).*/\1 debug/g' -e '$s/$/\nDumpIOInput On/' httpd.conf > httpd.conf.debug
■debugモードで起動
# httpd -k start -f conf/httpd.conf.debug
# httpd -k start -f /etc/httpd/conf/httpd.conf.debug
※dumpio有効でPOSTもログ記録