※CentOS5 x64インストール前提
■インストール
$ tar zxvf httpd-2.2.17.tar.gz $ cd httpd-2.2.17 $ ./configure --prefix=/usr/local/httpd-2.2.17 --enable-dav --enable-dav-fs --enable-so --enable-module=status --enable-proxy --enable-proxy-ajp $ make # make install $ cd /usr/local # ln -s httpd-2.2.17 apache
■起動スクリプト
起動スクリプト作成
# cp /usr/local/apache/bin/apachectl /etc/init.d/httpdsrc # vi /etc/init.d/httpdsrc #!/bin/sh # ># chkconfig: - 85 15 ># description: httpdsrc # # Licensed to the Apache Software Foundation (ASF) under one or more
登録
# /sbin/chkconfig httpdsrc on
conf修正
# vi /usr/local/apache/conf/httpd.conf 97a99 > ServerName example:80
起動
# /etc/init.d/httpdsrc start
■動作確認
http://example/
にアクセスして、HTMLページが表示されたら成功。