Apache from source

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s