F1大好きな、インチキ技術者の日記

F1大好きなインチキ技術者が情報を発信して、自分を変えようとしている日記です

CentOS 5.11 で SPDYを使いたい(その1 - Apacheバージョンアップ編)

はじめに

この投稿は、2014年11月05日にQiitaに投稿した物です。 お仕事の都合でCentOS 5.11(x64)のApacheでWebサーバを立てているのですが、どうしてもmod_spdyを利用したかったのでいろいろと作業しまました。そのログです。

mod_spdyのシステム要件

mod_spdyのrpmパッケージをダウンロードできるサイトmod_spdy — Google Developersで確認したところ要件は以下の2つのみ

System Requirements ・Apache 2.2 (≥2.2.4) ・mod_ssl enabled

mod_sslはすでに有効なので、Apacheのバージョンを確認した

# httpd -v
Server version: Apache/2.2.3
Server built:   Sep 16 2014 11:05:09

要件満たさず・・・ というわけで早速、Apacheのバージョンアップから!

Apacheのバージョンアップ

普通にyumしても最新版なので、CentALTリポジトリを有効にしてApacheをバージョンアップすることにした

まずは、リポジトリを使えるように・・・っと

# rpm -Uvh http://mirror.sysadminguide.net/centalt/repository/centos/5/x86_64/centalt-release-5-3.noarch.rpm

これで、CentALTリポジトリからApacheインストールできると思いきや、なんと403になる。。。

# yum --enablerepo=CentALT update httpd
Loaded plugins: fastestmirror
http://centos.alt.ru/repository/centos/5/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: CentALT. Please verify its path and try again

調査したところ、ミラーサイトを指定しなければいけないようなので速攻対応

# vi /etc/yum.repos.d/centalt.repo
[CentALT]
name=CentALT Packages for Enterprise Linux 5 - $basearch
#baseurl=http://centos.alt.ru/repository/centos/5/$basearch/
baseurl=http://mirror.sysadminguide.net/centalt/repository/centos/5/$basearch/
enabled=0
gpgcheck=0

baseurlのみ変更し、いざ再実行!

# # yum --enablerepo=CentALT update httpd
Dependencies Resolved

========================================================================================
 Package                              Arch         Version           Repository    Size
========================================================================================
Updating:
 httpd                                x86_64       2.2.27-1.el5      CentALT      1.3 M
Installing for dependencies:
 apr-util-ldap                        x86_64       1.4.1-1.el5       CentALT       14 k
 httpd-tools                          x86_64       2.2.27-1.el5      CentALT       68 k
Updating for dependencies:
 apr-util                             x86_64       1.4.1-1.el5       CentALT       80 k
 httpd-devel                          x86_64       2.2.27-1.el5      CentALT      146 k
 httpd-manual                         x86_64       2.2.27-1.el5      CentALT      1.1 M
 mod_ssl                              x86_64       1:2.2.27-1.el5    CentALT       91 k

Transaction Summary
========================================================================================
Install       2 Package(s)
Upgrade       5 Package(s)

Total download size: 2.7 M
Is this ok [y/N]: 

おおっ!無事にApache 2.2.27がリストアップされています! そのまま"y"を押すと無事にバージョンアップされました!

# httpd -v
Server version: Apache/2.2.27 (Unix)
Server built:   Apr  9 2014 23:20:37

やったね(^_^)v

長くなったのでmod_spdyのインストールは次の投稿で・・・

プライバシーポリシー・問合せ