• 흐림동두천 2.2℃
  • 흐림강릉 1.4℃
  • 구름많음서울 2.4℃
  • 구름많음대전 3.3℃
  • 흐림대구 5.9℃
  • 흐림울산 5.2℃
  • 구름많음광주 4.5℃
  • 구름많음부산 6.3℃
  • 구름많음고창 0.8℃
  • 흐림제주 8.7℃
  • 구름많음강화 -1.0℃
  • 구름많음보은 1.3℃
  • 구름많음금산 1.9℃
  • 흐림강진군 5.0℃
  • 흐림경주시 3.8℃
  • 구름많음거제 7.6℃
기상청 제공

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