3. Compile Apache

 

 

 


Version 2.0.X

Old Version Download:

https://archive.apache.org/dist/httpd/

i.e.

wget https://archive.apache.org/dist/httpd/httpd-2.0.65.tar.gz

 

compile.sh (test on centos4)

./configure \
        --prefix=/etc/httpd \
        --exec-prefix=/usr \
        --bindir=/usr/bin \
        --sbindir=/usr/sbin \
        --mandir=/usr/share/man \
        --libdir=/usr/lib \
        --sysconfdir=/etc/httpd/conf \
        --includedir=/usr/include/httpd \
        --libexecdir=/usr/lib/httpd/modules \
        --datadir=/var/www \
        --with-mpm=prefork \
        --with-apr=/usr --with-apr-util=/usr \
        --enable-deflate \
        --enable-mime-magic \
        --enable-headers \
        --enable-expires \
        --enable-ssl \
        --enable-info \
        --enable-version \
        --enable-vhost-alias \
        --enable-rewrite \
        --enable-http \
        --disable-imap \
        --disable-userdir \
        --disable-actions \
        --disable-cgi --disable-cgid \
        --enable-static-support

Checking

httpd -v

Server version: Apache/2.0.65
Server built:   May  4 2016 12:43:06

httpd -l

Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_include.c
  ............