httpd 소스 설치

  • 등록 2017.07.12 11:47:33
크게보기

# 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
노랑배 kosthb@gmail.com
Copyright @2011 mediaon Corp. All rights reserved.

사이트에 관련하여 연락은 메일로 주세요. kosthb골뱅이gmail.com Copyright 2011 mediaon. All rights reserved.