This is an old revision of the document!


apache2

# we can comment out modules we don't want later
./configure --prefix=/usr/local/apache2 --mandir=/usr/local/man --infodir=/usr/local/info --enable-modules=all --enable-mods-shared=all

make

make install

Post Install Configuration and Usage

  • ServerName
    ServerName localhost
  • DirectoryIndex
    DirectoryIndex index.html index.htm index.php index.shtml default.html default.htm
  • User/Group
    <IfModule !mpm_netware_module>
    #
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch.  
    #
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # It is usually good practice to create a dedicated user and group for
    # running httpd, as with most system services.
    #
    User www
    Group www
    </IfModule>
# you must specify the path to apachectl because Apple has one in another place
sudo /usr/local/apache2/bin/apachectl start
sudo /usr/local/apache2/bin/apachectl stop
  • docs/mac/builds/apache2.1195874178.txt.gz
  • Last modified: 2008/08/03 00:25
  • (external edit)