以下のコマンドから調べます。
httpd -V
表示例 :
-D SERVER_CONFIG_FILE="/etc/httpd/httpd.conf"
場所は `
/etc/httpd/httpd.conf`
ということがわかります
/usr/sbin/httpd -S
httpdにパスが通ってない場合は次のコマンドからパスを調べます
ps alxw | grep httpd
表示例 :
5 0 14337 1 20 0 233108 11224 poll_s Ss ? 0:14 /usr/sbin/httpd -k start
5 1000 48431 14337 20 0 233108 3848 skb_re S ? 0:00 /usr/sbin/httpd -k start
5 1000 48432 14337 20 0 1594492 13764 pipe_w Sl ? 0:13 /usr/sbin/httpd -k start
httpdコマンドの場所は `
/usr/sbin/httpd`
ということがわかります