Install Apache Httpd Server

This document shows how to compile and install Apache Server from scratch with additional modules we used. Details of how to configure the server will not be shown here.
Install OpenSSL

https://www.openssl.org/
Install OpenSSL
# Download the latest OpenSSL
wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz
# Untar it
gtar xzvf openssl-1.0.1g.tar.gz
# Compile with install location /usr/local/ssl
cd openssl-1.0.1g
./configure
make
make install
Install APR and APR-Utilities

http://apr.apache.org/download.cgi
Install apr and apr-util
wget http://apache.01link.hk//apr/apr-1.5.0.tar.gz
gtar xzvf apr-1.5.0.tar.gz
cd apr-1.5.0
./configure
make
make install

wget http://apache.01link.hk//apr/apr-util-1.5.3.tar.gz
cd apr-util-1.5.3
./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr
make
make install
Install Apache HTTP Server

http://httpd.apache.org/
Install Apache HTTP Server
./configure –prefix=/usr/local/apache2_2.2.27 \
–with-apr=/usr/local/apr \
–with-apr-util=/usr/local/apr-util \
–with-perl \
–with-ssl=/usr/local/ssl \
–with-mpm=prefork \
–enable-so \
–enable-authn_file=shared \
–enable-authn_dbm=shared \
–enable-authn_anon=shared \
–enable-authn_dbd=shared \
–enable-authz_host=shared \
–enable-authz_groupfile=shared \
–enable-authz_user=shared \
–enable-authz_dbm=shared \
–enable-authz_owner=shared \
–enable-auth_basic=shared \
–enable-auth_digest=shared \
–enable-dbd=shared \
–enable-dumpio=shared \
–enable-ext_filter=shared \
–enable-include=shared \
–enable-filter=shared \
–enable-substitute=shared \
–enable-deflate=shared \
–enable-log_config=shared \
–enable-logio=shared \
–enable-env=shared \
–enable-expires=shared \
–enable-headers=shared \
–enable-setenvif=shared \
–enable-ssl=shared \
–enable-mime=shared \
–enable-dav=shared \
–enable-status=shared \
–enable-autoindex=shared \
–enable-asis=shared \
–enable-info=shared \
–enable-cgi=shared \
–enable-dav_fs=shared \
–enable-vhost_alias=shared \
–enable-negotiation=shared \
–enable-dir=shared \
–enable-actions=shared \
–enable-imagemap=shared \
–enable-speling=shared \
–enable-userdir=shared \
–enable-alias=shared \
–enable-rewrite=shared \
–enable-proxy=shared \
–enable-proxy_ajp=shared \
–enable-proxy_balancer=shared \
–enable-proxy_connect=shared \
–enable-proxy_ftp=shared \
–enable-proxy_http=shared \
–enable-proxy_scgi=shared
make
make install
Install Tomcat Connector

http://tomcat.apache.org/download-connectors.cgi
Install Tomcat Connector
wget http://apache.01link.hk//tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.39-src.tar.gz
gtar xzvf tomcat-connectors-1.2.39-src.tar.gz
cd tomcat-connectors-1.2.39-src/
./configure –with-apxs=/usr/local/apache2_2.2.27/bin/apxs
make
# Copy the compiled module to Apache
cd native/apache-2.0/
cp mod_jd.so /usr/local/apache2_2.2.27/modules/
Start the Apache HTTP Server
Start Apache HTTP Server
cd /usr/local/
# Create a symbolic link for the instance
ln -s apache2_2.2.27 apache2
cd apache2/bin
./httpd -k start

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s