-
Notifications
You must be signed in to change notification settings - Fork 56
Building Apache HTTP Server
The following build instructions have been tested with Apache HTTP 2.5 on RHEL 7.1/6.6 and SLES 12/11 on IBM Linux on z Systems.
NOTE: When following the steps below please use a standard permission user unless otherwise specified.
NOTE: A directory /<source_root>/
will be referred to in these instructions, this is a temporary writeable directory anywhere you'd like to place it
NOTE: For convenience vi
has been used in the instructions below when editing files, replace with your desired editing program if required
-
Install build dependencies
For RHEL 7.1 & 6.6
yum install git openssl openssl-devel gcc libtool autoconf make pcre pcre-devel libxml2 libxml2-devel expat-devel which wget tar
And for SLES 12 & 11
zypper install git openssl openssl-devel gcc libtool autoconf make pcre pcre-devel libxml2 libxml2-devel libexpat-devel wget tar
-
SLES 11 & RHEL 6.6 Only - build libtool
SLES 11 and RHEL 6.6 have too old a version of libtool available for Apache HTTP Server to build successfully so you need to build a later version
-
Download libtool source code
cd /<source_root>/ wget http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz tar -xvf libtool-2.4.6.tar.gz cd libtool-2.4.6
-
Configure and make
./configure make
-
Install libtool
sudo make install
-
-
Extract Apache HTTP source code (and supporting packages)
cd /<source_root>/ git clone https://github.com/apache/httpd.git cd httpd/srclib git clone https://github.com/apache/apr.git
-
Build Apache Portable Runtime
cd apr ./buildconf ./configure make sudo make install
-
Build HTTPD
cd /<source_root>/httpd ./buildconf ./configure --prefix=<build-location> make
Note: Skipping the
--prefix
results in Apache httpd being installed in the default location -
Install
sudo make install
-
Verification
Note: All the following commands may require
sudo
depending on the<build-location>
specifiedUpdate your configuration as necessary
vi <build-location>/conf/httpd.conf
Verify the configuration and start the server
<build-location>/bin/apachectl configtest <build-location>/bin/apachectl -k start
Test the webserver
<build-location>/bin/apachectl -k stop
Note:
<build-location>
is the prefix you specified on step 5 - if you didn't specify a prefix it should be installed to/usr/local/apache2
##References: https://github.com/apache/httpd
The information provided in this article is accurate at the time of writing, but on-going development in the open-source projects involved may make the information incorrect or obsolete. Please open issue or contact us on IBM Z Community if you have any questions or feedback.