• 맑음동두천 26.0℃
  • 구름많음강릉 28.0℃
  • 구름많음서울 24.5℃
  • 맑음대전 25.8℃
  • 맑음대구 26.1℃
  • 맑음울산 22.5℃
  • 맑음광주 25.0℃
  • 구름조금부산 21.0℃
  • 맑음고창 25.3℃
  • 구름조금제주 18.9℃
  • 구름조금강화 22.5℃
  • 맑음보은 25.4℃
  • 맑음금산 26.8℃
  • 맑음강진군 22.8℃
  • 맑음경주시 28.3℃
  • 맑음거제 21.0℃
기상청 제공

httpd 소스 설치

# httpd 소스 설치

tar xvfpz httpd-2.0.63.tar.z
cd httpd-2.0.63

# apache + 64bit problem
rm -f configure
rm -f srclib/apr-util/configure
./buildconf

./configure
--prefix=/opt/webapps/apache2
--enable-so
--enable-ssl
--with-ssl=/usr
--enable-lib64
--libdir=/usr/lib64
--enable-cache
--enable-deflate
--enable-proxy
--enable-mem-cache
--enable-expires
--enable-rewrite
--enable-mods-shared=mod_rewrite
--enable-security
--with-module=proxy:mod_security.c

make
make install

mkdir /var/log/httpd
chmod 711 /opt/webapps
chmod 755 /opt/webapps/apache2
chmod 644 /opt/webapps/apache2/conf/*
chmod 600 /opt/webapps/apache2/conf/*.conf
chmod 700 /opt/webapps/apache2/bin/*
chmod 711 /opt/webapps/apache2/bin/htdigest
chmod 711 /opt/webapps/apache2/bin/htpasswd
mkdir -p /opt/webapps/apache2/ssl-key
chmod 700 /opt/webapps/apache2/ssl-key

echo "/opt/webapps/apache2/bin/apachectl start" >> /etc/rc.local

cd $BASE_DIR
wget "$DOWN_DIR/apache/conf/httpd.conf-2.0.3"
wget "$DOWN_DIR/apache/conf/vhosts.conf"
wget "$DOWN_DIR/apache/conf/mod_security1.conf"
wget "$DOWN_DIR/apache/conf/ssl.conf-2.0-01"

rm -f /opt/webapps/apache2/conf/httpd.conf
rm -f /opt/webapps/apache2/conf/ssl.conf
mv httpd.conf-2.0.3 /opt/webapps/apache2/conf/httpd.conf
mv mod_security1.conf /opt/webapps/apache2/conf/mod_security.conf
mv ssl.conf-2.0-01 /opt/webapps/apache2/conf/ssl.conf
mv vhosts.conf /opt/webapps/apache2/conf/vhosts.conf