Building and installing Apache 2 on a Mac

Ok Below is a rough guide to get anyone up and going when it comes to building and installing Apache 2 from source. We're gonna do this all from the Terminal found in /Applications/Utilities/ note that '$' means new line, don't type this characterIf you want to know about any of the commands we make from the terminal you can always type "man + command" e.g. $ man curlIf you run the above code it should tell you that
curl is a tool to transfer data from or to a server, using one of the supported protocols (HTTP, HTTPS, FTP, FTPS, GOPHER, DICT, TELNET, LDAP or FILE). The command is designed to work without user interaction.
This will also detail the options I use. 1: Download Apache 2 from source.Now you can do this from the browser by simply going to but where is the fun in that :o) From the Termainal type:$ curl -O$ gnutar -xzf httpd-2.0.59.tar.gz2: Building
Our installation of Apache2 is going to be stored on the root i.e. /apache2$ cd httpd-2.2.2$ sudo ./configure --prefix=/apache2 3: Installing$ sudo make$ sudo make install4: Starting and Stopping Apache 2Apache 2 should now be installed.To start Apache 2: $ sudo /apache2/bin/apachectl startTo restart Apache 2: $ sudo /apache2/bin/apachectl restartTo stop Apache 2: $ sudo /apache2/bin/apachectl stopThat's all you need to get it installed. Once you are at this point the next move is to edit the httpd.conf file, which you can find at /apache2/conf/httpd.conf