yum -y groupinstall base yum -y groupinstall development yum -y groupinstall network-tools yum -y install zlib-devel cd /usr/local/src/ wget https://www.openssl.org/source/openssl-1.0.2h.tar.gz tar xvzf openssl-1.0.2h.tar.gz cd openssl-1.0.2h/ ./config --prefix=/usr/local/openssl-1.0.2h shared zlib make make test make install echo /usr/local/openssl-1.0.2h/lib > /etc/ld.so.conf.d/openssl102h.conf ldconfig yum -y install libev-devel cd /usr/local/src/ wget https://github.com/nghttp2/nghttp2/releases/download/v1.11.1/nghttp2-1.11.1.tar.gz tar xvzf nghttp2-1.11.1.tar.gz cd nghttp2-1.11.1/ autoreconf -i automake autoconf env OPENSSL_CFLAGS="-I/usr/local/openssl-1.0.2h/include" OPENSSL_LIBS="-L/usr/local/openssl-1.0.2h/lib -lssl -lcrypto" ./configure make make install echo /usr/local/lib > /etc/ld.so.conf.d/usr-local-lib.conf ldconfig cd /usr/local/src/ wget http://ftp.jaist.ac.jp/pub/apache//apr/apr-1.5.2.tar.gz tar xvzf apr-1.5.2.tar.gz cd apr-1.5.2/ ./configure make make install cd /usr/local/src/ wget http://ftp.jaist.ac.jp/pub/apache//apr/apr-util-1.5.4.tar.gz tar xvzf apr-util-1.5.4.tar.gz cd apr-util-1.5.4/ ./configure --with-apr=/usr/local/apr make make install yum -y install pcre-devel cd /usr/local/src/ wget http://ftp.jaist.ac.jp/pub/apache//httpd/httpd-2.4.20.tar.gz tar xvzf httpd-2.4.20.tar.gz cd httpd-2.4.20/ ./configure \ --enable-http2 \ --enable-ssl \ --with-ssl=/usr/local/openssl-1.0.2h \ --enable-so \ --enable-mods-shared=all \ --enable-mpms-shared=all make make install