Building and installing Apache 2 on a Mac
$ man curl
If 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 http://httpd.apache.org/ but where is the fun in that :o) From the Termainal type:
$ curl -O http://www.eu.apache.org/dist/httpd-2.2.0.59.tar.gz$ gnutar -xzf httpd-2.0.59.tar.gz
2: BuildingOur 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 install
4: Starting and Stopping Apache 2Apache 2 should now be installed.To start Apache 2: $ sudo /apache2/bin/apachectl start
To restart Apache 2: $ sudo /apache2/bin/apachectl restart
To stop Apache 2: $ sudo /apache2/bin/apachectl stop
That'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