1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS6.3でApache2.4.6をソースからインストール

Last updated at Posted at 2013-11-27

CentOS6.3でApache2.4.6をソースからインストール

環境

# uname -a
Linux ttakahashi 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release 
CentOS release 6.3 (Final)

1.ソースファイルのダウンロード

# cd /usr/local/src
# wget http://ftp.jaist.ac.jp/pub/apache//httpd/httpd-2.4.6.tar.gz
# wget http://ftp.jaist.ac.jp/pub/apache//apr/apr-1.4.8.tar.gz
# wget http://ftp.jaist.ac.jp/pub/apache//apr/apr-util-1.5.2.tar.gz
# wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.gz

2.PCRE をインストールする

# tar xvfz pcre-8.33.tar.gz
# cd pcre-8.33
# ./configure
# make
# make install

3.Apacheインストール

# tar xvfz httpd-2.4.6.tar.gz
# tar xvfz apr-1.4.6.tar.gz
# tar xvfz apr-util-1.5.2.tar.gz
# mv apr-1.4.6 httpd-2.4.6/srclib/
# mv apr-util-1.5.2 httpd-2.4.6/srclib/
# ./configure --with-included-apr
# make
# make install

4.apache起動

# /usr/local/apache2/bin/apachectl start
# curl xxx.xxx.xxx.xxx
<html><body><h1>It works!</h1></body></html>
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?