Apache2 HTTP Server Build Script with The Full Option

RisaPapa의 이미지

httpd2inst.sh

#! /bin/sh 

# [Apache2 HTTP Server Build Script with The Full Option] 
# Copyright RisaPapa 
# Author: RisaPapa 
# Contact: ringring@zb4.so-net.ne.jp 
# 2003/12/11 

# YOU CAN NOT DISTRIBUTE THIS SCRIPT, 
# OR CAN NOT LINK THIS URL FROM ANY SITE, 
# WITHOUT THE PERMISSION FROM RisaPapa. 

# Change $risapapadir variable like 'risapapadir=local' 

# 아래 risapapa를 수정하여 인스톨 디렉토리를 변경하면 됩니다. 
# 예를 들면, 'risapapadir=local' 처럼 수정합니다. 

# 下の「risapapa」を修正してインストールされるディレクトリを変更します。 
# 例えば、'risapapadir=local'のように修正します。 

risapapadir=risapapa 

# Probably, you don't need to change the item below 
risapapaprefix=/usr/${risapapadir} 
risapapabindir=${risapapaprefix}/bin 
risapapaincdir=${risapapaprefix}/include 
risapapalibdir=${risapapaprefix}/lib 
risapapamandir=${risapapaprefix}/man 
risapapasrcdir=${risapapaprefix}/src 

# [Check Directory] 
for i in \ 
   $risapapaprefix \ 
   $risapapabindir \ 
   $risapapaincdir \ 
   $risapapalibdir \ 
   $risapapamandir \ 
   $risapapasrcdir; \ 
do 
   if [ -e ${i} ] 
   then 
       echo "${i} already exists" 
   else 
      mkdir ${i} 
      chmod 755 ${i} 
      chown -R root ${i} 
      echo "${i} created" 
   fi 
done 

# [Download] 
httpddist=http://archive.apache.org/dist/httpd/ 
httpdsrc=httpd-2.0.48.tar.gz 
httpdsrcdir=httpd-2.0.48 
if [ -e $risapapasrcdir/$httpdsrc ]; then 
   echo "$httpdsrc already exists." 
else 
   wget -P $risapapasrcdir $httpddist$httpdsrc 
fi 

openssldist=http://www.openssl.org/source/ 
opensslsrc=openssl-0.9.7c.tar.gz 
opensslsrcdir=openssl-0.9.7c 
if [ -e $risapapasrcdir/$opensslsrc ]; then 
   echo "$opensslsrc already exists." 
else 
   wget -P $risapapasrcdir $openssldist$opensslsrc 
fi 

zlibdist=http://www.gzip.org/zlib/ 
zlibsrc=zlib-1.2.1.tar.gz 
zlibsrcdir=zlib-1.2.1 
if [ -e $risapapasrcdir/$zlibsrc ]; then 
   echo "$zlibsrc already exists." 
else 
   wget -P $risapapasrcdir $zlibdist$zlibsrc 
fi 

# [zlib] 
cd $risapapasrcdir 
tar xvzf $zlibsrc 
cd $zlibsrcdir 
./configure --prefix=${risapapaprefix} 
make 
make install 
make distclean 
./configure --shared --prefix=${risapapaprefix} 
make 
make install 
rm -rf ${risapapaprefix}/include/zutil.h 
cp ${risapapasrcdir}/zlib-1.2.1/zutil.h ${risapapaprefix}/include/zutil.h 
cd $risapapasrcdir 
# rm -rf $zlibsrcdir 
set LD_RISAPAPA_LIB_PATH = `cat /etc/ld.so.conf | grep ${risapapalibdir}` 
if test -z ${3};  then 
    echo "${risapapalibdir}" >> /etc/ld.so.conf 
fi 
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${risapapalibdir} 
ldconfig ${risapapalibdir} 

# [openssl] 
cd $risapapasrcdir 
tar xvfz $opensslsrc 
cd $opensslsrcdir 
./config --openssldir=${risapapaprefix}/openssl shared 
make 
make test 
make install 
set LD_RISAPAPA_OPENSSL_PATH = `cat /etc/ld.so.conf | grep ${risapapaprefix}/openssl/lib` 
if test -z ${3};  then 
    echo "${risapapaprefix}/openssl/lib" >> /etc/ld.so.conf 
fi 
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${risapapalibdir}/openssl/lib 
ldconfig ${risapapaprefix}/openssl/lib 
cd $risapapasrcdir 
#rm -rf $opensslsrcdir 

# Other Compile Option without rc5 (Patent No 5,724,428) 
# ./config --openssldir=${risapapaprefix}/openssl no-rc5 no-idea shared 

# After Installation 
# Add PATH ${risapapaprefix}/openssl/bin to '/etc/bashrc' 
# Register ${risapapaprefix}/openssl/lib with ldconfig 
# ldconfig ${risapapaprefix}/openssl/lib 

cd $risapapasrcdir 
tar xvfz $httpdsrc 
cd $httpdsrcdir 
./configure --prefix=${risapapaprefix}/apache2 --enable-module=so --enable-mods-shared=all --enable-deflate=shared --enable-dav_fs --enable-dav --enable-rewrite --enable-proxy --enable-ssl --enable-shared --with-mpm=prefork --with-ssl=${risapapaprefix}/openssl --with-z=${risapapaprefix} 
make 
make install 
cd $risapapasrcdir 
#rm -rf $httpdsrcdir 
echo "Apache2 with the full option is installed. 
Check the httpd configuration files in the diretory 
'${risapapaprefix}/apache2/conf' 
If you have any problem, contact RisaPapa, 
as far as this installation script is concerned. 
" 

This scrip will install Apache2 with the Full Option.
Have Fun....
Forums: 

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.