Apacheのインストール

Apacheyumでインストールする

# yum install httpd 

/etc/httpd/conf/httpd.conf の編集

CGIスクリプトを実行できる様にする
AddHandler cgi-script .cgi

○デフォルトキャラセットを無効にする
AddDefaultCharset Off

○管理者のメールアドレスを設定する
ServerAdmin a@b.c

○サーバ名を設定する
ServerName adarah.adarah.dyndns.org

○エラーメッセージ出力時にフッタを表示しない
ServerSignature Off

○サーバのバージョン情報をヘッダーへ表示しない
ServerTokens ProductOnly

Webサーバを稼動する

# /etc/rc.d/init.d/httpd start

OS起動時にapacheを起動する

# chkconfig --level 3 httpd on
# chkconfig --list httpd
httpd           0:オフ  1:オフ  2:オフ  3:オン  4:オフ  5:オフ  6:オフ