This is an old revision of the document!
apache2
- download source from http://httpd.apache.org/
apache 2.2.6
# 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
httpd.conf
ServerName
ServerName localhost
DirectoryIndex
DirectoryIndex index.html index.htm index.php index.shtml default.html default.htm
start apache
# you must specify the path to apachectl because Apple has one in another place sudo /usr/local/apache2/bin/apachectl start
stop apache
sudo /usr/local/apache2/bin/apachectl stop