apache インストール

久しぶりにやったのでメモ

$ wget http://ftp.kddilabs.jp/infosystems/apache/httpd/httpd-2.2.16.tar.gz
$ tar xvfz httpd-2.2.16.tar.gz
$ cd httpd-2.2.16/
$ ./configure --enable-rewrite --enable-so --enable-ssl
$ make
$ su
# make install


# groupadd apache
# useradd -g apache apache
# vi /usr/local/apache2/conf/httpd.conf

# User daemon
# Group daemon
User apache
Group apache

ServerName 192.168.11.252:80

# /usr/local/apache2/bin/apachectl configtest
Syntax OK

# cp build/rpm/httpd.init /etc/rc.d/init.d/httpd
# vi /etc/init.d/httpd

#httpd=${HTTPD-/usr/sbin/httpd}
httpd=${HTTPD-/usr/local/apache2/bin/httpd}

#CONFFILE=/etc/httpd/conf/httpd.conf
CONFFILE=/usr/local/apache2/conf/httpd.conf

# /usr/local/apache2/bin/apachectl start