Andrew Watson's Homepage

andrewwatson.net › i.t. › installation guides › installing apache - with dso support

Installing Apache - With DSO support

Also available as Also available as a .pdf
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=so
                 --enable-shared=max
verbose is enabled just-for-the-hell-of-it™
prefix defines the base directory to install into
enable-module=so is enables DSO support
enable-shared=max enables shared support for distributed modules


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 with DSO support

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 without DSO support, Compiling and Installing Apache 1.3 (Official Documentation), Related Links
Andrew Watson (email)
Last Modified: Wednesday, 03-May-2006 20:51:46 CEST