This is an old revision of the document!
apache2
- download source from http://httpd.apache.org/
apache 2.2.6
./configure --prefix=/usr/local/apache2 --mandir=/usr/local/man --infodir=/usr/local/info 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