|
Prerequisites: |
FreeBSD (Base + Autoconf, Automake,
Bash and GCC) OpenSSL |
|
Overview: |
|
Apache – Web server
Home:
# Download (Notes:
Users behind a Proxy
Server should read this and
users without Internet but have a CDRom read this.)
cd /usr/src
fetch
http://www.ip97.com/apache.org/httpd/httpd-2.2.3.tar.gz
# Unzip and Untar
tar xvf
httpd-2.2.3.tar.gz
# Configure
cd httpd-2.2.3
./configure --prefix=/opt/apache --enable-modules=all --enable-mods-shared=all
--enable-http --enable-ssl --enable-cgi --enable-cgid
--enable-expires --enable-headers --enable-mime-magic --enable-imagemap
--enable-cern-meta --enable-usertrack --enable-unique-id --enable-speling
--enable-rewrite --enable-so --enable-info --enable-auth-dbm
--enable-authn-anon --enable-authn-dbd --enable-authn-alias
--enable-authz-owner --enable-auth-digest --enable-cache --enable-mem-cache
--enable-dav --enable-dav-fs --enable-dav-lock --enable-dbd
--enable-dumpio --enable-ext-filter --enable-deflate
--enable-log-forensic --enable-logio --enable-ident --enable-proxy
--enable-proxy-connect --enable-proxy-ftp --enable-proxy-http
--enable-proxy-ajp --enable-proxy-balancer --enable-vhost-alias
--enable-suexec
# Compile
make
# Install
make install
|
Simple test of the Apache web server |
|
# Quick Start Server Tests: |
|
Create an “rc” script to start traplogd at boot time |
|
# Create an “rc” script to start at boot time: |
|
Apache Notes for Admins |
|
# Edit the "httpd.conf" to suit your needs, at least
change the variables:
# Commands to remember: # The
Apache configuration file: # Apache logs: |
|
mod_perl |
|
|
Home: |
http://perl.apache.org/ |
|
# Change to the /tmp
directory not your normal source dir!
# Edit the "httpd.conf" and add the new perl
module to load, at the very bottom of the conf file
# Compile
cd /usr/src/httpd-2.2.3 # Mod Perl Quick Start: http://perl.apache.org/docs/2.0/user/intro/start_fast.html |
|
|
HTTPS / SSL Web Server |
|
# Adding HTTPS / SSL ability to your Apache Web Server # Create a certificate authority |