Andrew Watson's Homepage

andrewwatson.net › IT › Installation Guides › Installing Apache - Without DSO support

Installing Apache - Without DSO support

Also available as
I normally perform the following su'd as root unless otherwise noted

Step 1: make the directory, if it does not already exist, to put the tarball and source tree into
mkdir /usr/local/src/apache
Step 2: get the tarball, either from www.apache.org or from a local source
download or copy <apacheversion>.tar.gz to /usr/local/src/apache
Step 3: unzip and untar the tarball
cd /usr/local/src/apache
tar zxvf /usr/local/src/apache/<apacheversion>.tar.gz
cd /usr/local/src/apache/<apacheversion>
the above will unzip and untar the tarball into the required directory tree

Step 4: configure the makefile ready to compile
./configure --verbose \
                 --prefix=/usr/local/apache/<version> \
                 --enable-module=info
verbose is enabled just-for-the-hell-of-it™
prefix defines the base directory to install into, e.g. /usr/local/apache/1.3.11
enable-module=prefix is again installed just-for-the-hell-of-it™, plus it provides lots of extra exciting info when the server is running


Step 5: finally do the compile and the install
make && make install
Step 6: start Apache
/usr/local/apache/<apacheversion>/bin/apachectl start
you should now have a working Apache server

Step 7: test Apache
telnet <hostname> <port>
HEAD / HTTP/1.0<CR><CR>
Should return a line like following:
Server: Apache/1.3.11 (Unix)
telnet <hostname> <port> where <hostname> is the hostname of the machine Apache is installed and running on and <port> is the number of the port that Apache is running on, usually 80, but sometime 8080, configurable via httpd.conf

See Also: Apache with DSO support, Compiling and Installing Apache 1.3 (Official Documentation), Related Links
Andrew Watson (email)
Last Modified: Wednesday, 03-May-2006 20:51:47 CEST