These are my notes on building Apache (the web server, obviously) from source.
1. Install (or confirm installed):
openssl-devel
gcc
2. Download apache source from http://httpd.apache.org/download.cgi
3. Untar the source tarball
4. Navigate into extracted source
5. Run
./configure \
--prefix=/usr/local/apache \
--enable-so \
--enable-pie \
--enable-proxy \
--enable-ssl \
--enable-mods-shared=all \
--with-included-apr
If you want a worker version of Apache (instead of the prefork default), add the following to the command above (you’ll need a trailing slash on the previous line):
--with-mpm=worker
6. As root run:
make && make install
At this point you have a very stock Apache build. Most of the modules will be available as well. Look for additional articles on adding some useful modules.