# chkconfig --levle 2345 httpd on
# chkconfig --add httpd
httpdの設定
修正前設定ファイルの退避
# cd /usr/local/apache2/conf/
# cp httpd.conf httpd.conf-default
設定ファイル修正
# vi httpd.conf ※最低、以下の二箇所(赤字下線部)を修正
#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g.admin@your-domain.com
#
ServerAdminyou@example.com ← この行を修正する
#
# ServerName gives the name and port that the server uses to identify
itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address
here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
ServerNamewww.example.com:80 ← この行を修正する