next up previous contents
Next: Linux Up: Solaris Previous: Solaris   Contents

Compiling Apache on Solaris

Apache is slightly tricky if you want to compile your own. Here is one way to compile apache and related modules in a step-by-step format:

  1. Configure apache from within the source tree as follows:
    ./configure \
    --prefix=/usr/local/apache \
    --enable-module=so \
    --enable-rule=SHARED_CORE \
    --enable-rule=SHARED_CHAIN \
    --enable-shared=access \
    --enable-shared=actions \
    --enable-shared=alias \
    --enable-shared=asis \
    --enable-shared=auth \
    --enable-shared=autoindex \
    --enable-shared=cgi \
    --enable-shared=dir \
    --enable-shared=env \
    --enable-shared=imap \
    --enable-shared=include \
    --enable-shared=log_config \
    --enable-shared=log_agent \
    --enable-shared=log_referer \
    --enable-shared=mime \
    --enable-shared=mime_magic \
    --enable-shared=negotiation \
    --enable-shared=proxy \
    --enable-shared=rewrite \
    --enable-shared=setenvif \
    --enable-shared=speling \
    --enable-shared=status \
    --enable-shared=unique_id \
    --enable-shared=userdir \
    --enable-shared=usertrack \
    --enable-shared=vhost_alias
    
  2. make; make install
  3. Compile modules with a line like so:
    ./configure --with-apxs=/usr/local/apache/bin/apxs
    
  4. `make`; `make install` on the modules
  5. Modules installed on the Solaris system include: mod_php and mod_python
  6. Edit the /usr/local/apache/etc/conf/httpd.conf file and make sure everything is set up properly.


2003-08-28