CentOS5.9にApache2.4.6を入れる
古いバージョンが入っていたら迷わず削除
# yum remove httpd
まずはソースをダウンロード
# wget http://ftp.meisei-u.ac.jp/mirror/apache/dist//httpd/httpd-2.4.6.tar.gz
解凍
# tar -vzxf httpd-2.4.6.tar.g
configureをかます
# cd httpd-2.4.6 # ./configure
APRがない。
checking for chosen layout... Apache checking for working mkdir -p... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu configure: configure: Configuring Apache Portable Runtime library... configure: checking for APR... no configure: error: APR not found. Please read the documentation.
ダウンロード&解凍
# wget http://ftp.kddilabs.jp/infosystems/apache//apr/apr-1.5.0.tar.gz # wget http://ftp.kddilabs.jp/infosystems/apache//apr/apr-util-1.5.3.tar.gz # tar -vzxf apr-1.5.0.tar.gz # tar -vzxf apr-util-1.5.3.tar.gz
# cd apr-1.5.0 # ./configure # make & make install # cd apr-util-1.5.3 # ./configure --with-apr=/usr/local/apr # make & make install
再度挑戦
# cd <PATH_TO_HTTPD_FILE> # ./configure
むむ・・
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
入れます。
# yum -y install pcre-devel
# ./configure # make & make install
無事入りました。
そして設定ファイルはここにあるので気をつけなはれや
/usr/local/apache2/conf/httpd.conf