Categories
Linux

Apache HTTP Server Version 2.4 installation & SSL Configuration

1. Download: http://httpd.apache.org/download.cgi
2. Extract: gzip -d httpd-NN.tar.gz | cd httpd-NN
3. Configure:
./configure –prefix=PREFIX (PREFIX must be replaced with the filesystem path under which the server should be installed. If PREFIX is not specified, it defaults to /usr/local/apache2.)
Eg: #./configure –prefix=/usr/local/apache2 –with-included-apr –enable-ssl –enable-so
Or
#./configure –with-included-apr –enable-ssl –enable-so
4. Compile: #make
5. Install: #make install
6. Test: PREFIX/bin/apachectl –k start

Requirements
1. APR and APR-Util: download the latest versions of both APR and APR-Util from http://apr.apache.org/ unpack them into ./srclib/apr and ./srclib/apr-util (be sure the domain names do not have version numbers; for example, the APR distribution must be under ./srclib/apr/) and use ./configure’s –with-included-apr option.
2. Perl-Compatible Regular Expressions Library (PCRE: This library is required but no longer bundled with httpd. Download the source code from http://www.pcre.org, or install a Port or Package.

Leave a Reply

Your email address will not be published. Required fields are marked *