Skip to content

Instantly share code, notes, and snippets.

@ksugawara61
Last active September 9, 2016 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksugawara61/a25bd445728d7a841ad7 to your computer and use it in GitHub Desktop.
Save ksugawara61/a25bd445728d7a841ad7 to your computer and use it in GitHub Desktop.
Apache2.4系をソースからインストール ref: http://qiita.com/ksugawara61/items/70f5d1faf192c4ba6ca0
# wget http://ftp.jaist.ac.jp/pub/apache//apr/apr-1.5.2.tar.gz
# tar zxvf apr-1.5.2.tar.gz
# cd apr-1.5.2
# ./configure --prefix=/opt/apr-1.5.2
# make
# porg -lD "make install" # ※
# porg -a
apr-1.5.2
# wget http://ftp.jaist.ac.jp/pub/apache//apr/apr-util-1.5.4.tar.gz
# tar zxvf apr-util-1.5.4.tar.gz
# cd apr-util-1.5.4
# ./configure --prefix=/opt/apr-util-1.5.4 --with-apr=/opt/apr-1.5.2
# make
# porg -lD "make install"
# porg -a
apr-1.5.2
apr-util-1.5.4
porg-0.8
# wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz
# tar zxvf pcre-8.39.tar.gz
# cd pcre-8.39
# ./configure --prefix=/opt/pcre-8.39
# make
# porg -lD "make install"
# porg -a
apr-1.5.2
apr-util-1.5.4
pcre-8.39
# wget http://ftp.meisei-u.ac.jp/mirror/apache/dist//httpd/httpd-2.4.23.tar.gz
# tar httpd-2.4.23.tar.gz
# cd httpd-2.4.23
# ./configure --enable-ssl --enable-mods-shared=all --with-apr=/opt/apr-1.5.2 --with-apr-util=/opt/apr-util-1.5.4 --with-pcre=/opt/pcre-8.37 --with-ssl=/usr/local/ssl --enable-shared=ssl
# make
# porg -lD "make install"
# porg -a
apr-1.5.2
apr-util-1.5.4
httpd-2.4.23
pcre-8.37
# /usr/local/apache2/bin/httpd -v # Apacheのバージョン確認コマンド
Server version: Apache/2.4.23 (Unix)
Server built: Sep 9 2016 10:21:00
# /usr/local/apache2/bin/apachectl start
# curl http://localhost/
<html><body><h1>It works!</h1></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment