読者です 読者をやめる 読者になる 読者になる

m_shige1979のささやかな抵抗と欲望の日々

プログラムの勉強をしながら学習したことや経験したことをぼそぼそと書いていきます

なんとなく作ったサイト

http://www.it-check-matome.info/


Github(注意すること)

https://github.com/mshige1979

yumでapache2.2.27(httpd)をインストール

通常の方法では2.2.15まで

phpとかはyumでこれだけソースインストールするのも変なので適当に調べた

wingリポジトリがあるといいかも

リポジトリインストール
cd /etc/yum.repos.d/
sudo wget http://wing-repo.net/wing/6/EL6.wing.repo
sudo wget http://wing-repo.net/wing/extras/6/EL6.wing-extras.repo
sudo yum clean all
sudo yum -y install yum-priorities
確認
[vagrant@localhost ~]$ sudo yum install httpd --enablerepo=wing
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * epel: mirror.nus.edu.sg
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
 * webtatic: us-east.repo.webtatic.com
wing                                                                                                      | 2.9 kB     00:00
254 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.27-1.el6_6.wing will be installed
--> Processing Dependency: httpd-tools = 2.2.27-1.el6_6.wing for package: httpd-2.2.27-1.el6_6.wing.x86_64
--> Running transaction check
---> Package httpd-tools.x86_64 0:2.2.15-30.el6.centos will be updated
---> Package httpd-tools.x86_64 0:2.2.27-1.el6_6.wing will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================
 Package                        Arch                      Version                                  Repository               Size
=================================================================================================================================
Installing:
 httpd                          x86_64                    2.2.27-1.el6_6.wing                      wing                    820 k
Updating for dependencies:
 httpd-tools                    x86_64                    2.2.27-1.el6_6.wing                      wing                     52 k

Transaction Summary
=================================================================================================================================
Install       1 Package(s)
Upgrade       1 Package(s)

Total download size: 872 k
Is this ok [y/N]: N
Exiting on user Command
[vagrant@localhost ~]$
インストール
=================================================================================================================================
 Package                        Arch                      Version                                  Repository               Size
=================================================================================================================================
Installing:
 httpd                          x86_64                    2.2.27-1.el6_6.wing                      wing                    820 k
Updating for dependencies:
 httpd-tools                    x86_64                    2.2.27-1.el6_6.wing                      wing                     52 k

Transaction Summary
=================================================================================================================================
Install       1 Package(s)
Upgrade       1 Package(s)

Total download size: 872 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): httpd-2.2.27-1.el6_6.wing.x86_64.rpm                                                               | 820 kB     00:00
(2/2): httpd-tools-2.2.27-1.el6_6.wing.x86_64.rpm                                                         |  52 kB     00:00
---------------------------------------------------------------------------------------------------------------------------------
Total                                                                                            162 kB/s | 872 kB     00:05
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : httpd-tools-2.2.27-1.el6_6.wing.x86_64                                                                        1/3
  Installing : httpd-2.2.27-1.el6_6.wing.x86_64                                                                              2/3
  Cleanup    : httpd-tools-2.2.15-30.el6.centos.x86_64                                                                       3/3
  Verifying  : httpd-2.2.27-1.el6_6.wing.x86_64                                                                              1/3
  Verifying  : httpd-tools-2.2.27-1.el6_6.wing.x86_64                                                                        2/3
  Verifying  : httpd-tools-2.2.15-30.el6.centos.x86_64                                                                       3/3

Installed:
  httpd.x86_64 0:2.2.27-1.el6_6.wing

Dependency Updated:
  httpd-tools.x86_64 0:2.2.27-1.el6_6.wing

Complete!
[vagrant@localhost ~]$ httpd -v
Server version: Apache/2.2.27 (Unix)
Server built:   Mar 28 2014 15:03:39
[vagrant@localhost ~]$

2.4系は?

aprなどを最新にする
[vagrant@localhost ~]$ sudo yum update apr apr-util apr-devel --enablerepo=wing
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * epel: mirror.nus.edu.sg
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
 * webtatic: us-east.repo.webtatic.com
254 packages excluded due to repository priority protections
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package apr.x86_64 0:1.3.9-5.el6_2 will be updated
---> Package apr.x86_64 0:1.5.0-1.el6_1.wing will be an update
---> Package apr-devel.x86_64 0:1.3.9-5.el6_2 will be updated
---> Package apr-devel.x86_64 0:1.5.0-1.el6_1.wing will be an update
---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be updated
--> Processing Dependency: apr-util = 1.3.9-3.el6_0.1 for package: apr-util-devel-1.3.9-3.el6_0.1.x86_64
--> Processing Dependency: apr-util = 1.3.9-3.el6_0.1 for package: apr-util-ldap-1.3.9-3.el6_0.1.x86_64
---> Package apr-util.x86_64 0:1.5.3-1.el6_3.wing will be an update
--> Running transaction check
---> Package apr-util-devel.x86_64 0:1.3.9-3.el6_0.1 will be updated
---> Package apr-util-devel.x86_64 0:1.5.3-1.el6_3.wing will be an update
---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be updated
---> Package apr-util-ldap.x86_64 0:1.5.3-1.el6_3.wing will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================
 Package                           Arch                      Version                               Repository               Size
=================================================================================================================================
Updating:
 apr                               x86_64                    1.5.0-1.el6_1.wing                    wing                     91 k
 apr-devel                         x86_64                    1.5.0-1.el6_1.wing                    wing                    172 k
 apr-util                          x86_64                    1.5.3-1.el6_3.wing                    wing                     75 k
Updating for dependencies:
 apr-util-devel                    x86_64                    1.5.3-1.el6_3.wing                    wing                     66 k
 apr-util-ldap                     x86_64                    1.5.3-1.el6_3.wing                    wing                    6.4 k

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

Total download size: 410 k
Is this ok [y/N]: y
Downloading Packages:
(1/5): apr-1.5.0-1.el6_1.wing.x86_64.rpm                                                                  |  91 kB     00:00
(2/5): apr-devel-1.5.0-1.el6_1.wing.x86_64.rpm                                                            | 172 kB     00:00
(3/5): apr-util-1.5.3-1.el6_3.wing.x86_64.rpm                                                             |  75 kB     00:00
(4/5): apr-util-devel-1.5.3-1.el6_3.wing.x86_64.rpm                                                       |  66 kB     00:00
(5/5): apr-util-ldap-1.5.3-1.el6_3.wing.x86_64.rpm                                                        | 6.4 kB     00:00
---------------------------------------------------------------------------------------------------------------------------------
Total                                                                                             76 kB/s | 410 kB     00:05
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : apr-1.5.0-1.el6_1.wing.x86_64                                                                                1/10
  Updating   : apr-util-1.5.3-1.el6_3.wing.x86_64                                                                           2/10
  Updating   : apr-devel-1.5.0-1.el6_1.wing.x86_64                                                                          3/10
  Updating   : apr-util-devel-1.5.3-1.el6_3.wing.x86_64                                                                     4/10
  Updating   : apr-util-ldap-1.5.3-1.el6_3.wing.x86_64                                                                      5/10
  Cleanup    : apr-util-devel-1.3.9-3.el6_0.1.x86_64                                                                        6/10
  Cleanup    : apr-devel-1.3.9-5.el6_2.x86_64                                                                               7/10
  Cleanup    : apr-util-ldap-1.3.9-3.el6_0.1.x86_64                                                                         8/10
  Cleanup    : apr-util-1.3.9-3.el6_0.1.x86_64                                                                              9/10
  Cleanup    : apr-1.3.9-5.el6_2.x86_64                                                                                    10/10
  Verifying  : apr-util-devel-1.5.3-1.el6_3.wing.x86_64                                                                     1/10
  Verifying  : apr-1.5.0-1.el6_1.wing.x86_64                                                                                2/10
  Verifying  : apr-devel-1.5.0-1.el6_1.wing.x86_64                                                                          3/10
  Verifying  : apr-util-1.5.3-1.el6_3.wing.x86_64                                                                           4/10
  Verifying  : apr-util-ldap-1.5.3-1.el6_3.wing.x86_64                                                                      5/10
  Verifying  : apr-devel-1.3.9-5.el6_2.x86_64                                                                               6/10
  Verifying  : apr-util-ldap-1.3.9-3.el6_0.1.x86_64                                                                         7/10
  Verifying  : apr-1.3.9-5.el6_2.x86_64                                                                                     8/10
  Verifying  : apr-util-devel-1.3.9-3.el6_0.1.x86_64                                                                        9/10
  Verifying  : apr-util-1.3.9-3.el6_0.1.x86_64                                                                             10/10

Updated:
  apr.x86_64 0:1.5.0-1.el6_1.wing        apr-devel.x86_64 0:1.5.0-1.el6_1.wing        apr-util.x86_64 0:1.5.3-1.el6_3.wing

Dependency Updated:
  apr-util-devel.x86_64 0:1.5.3-1.el6_3.wing                      apr-util-ldap.x86_64 0:1.5.3-1.el6_3.wing

Complete!
[vagrant@localhost ~]$
リポジトリがwing-extrasとする
[vagrant@localhost ~]$ sudo yum update httpd --enablerepo=wing-extras
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * epel: mirror.nus.edu.sg
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
 * webtatic: us-east.repo.webtatic.com
77 packages excluded due to repository priority protections
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.27-1.el6_6.wing will be updated
--> Processing Dependency: httpd = 2.2.27-1.el6_6.wing for package: httpd-devel-2.2.27-1.el6_6.wing.x86_64
---> Package httpd.x86_64 0:2.4.9-1.el6_5.wing will be an update
--> Processing Dependency: httpd-tools = 2.4.9-1.el6_5.wing for package: httpd-2.4.9-1.el6_5.wing.x86_64
--> Running transaction check
---> Package httpd-devel.x86_64 0:2.2.27-1.el6_6.wing will be updated
---> Package httpd-devel.x86_64 0:2.4.9-1.el6_5.wing will be an update
---> Package httpd-tools.x86_64 0:2.2.27-1.el6_6.wing will be updated
---> Package httpd-tools.x86_64 0:2.4.9-1.el6_5.wing will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================
 Package                       Arch                     Version                              Repository                     Size
=================================================================================================================================
Updating:
 httpd                         x86_64                   2.4.9-1.el6_5.wing                   wing-extras                   1.1 M
Updating for dependencies:
 httpd-devel                   x86_64                   2.4.9-1.el6_5.wing                   wing-extras                   174 k
 httpd-tools                   x86_64                   2.4.9-1.el6_5.wing                   wing-extras                    67 k

Transaction Summary
=================================================================================================================================
Upgrade       3 Package(s)

Total download size: 1.3 M
Is this ok [y/N]: N
Exiting on user Command
[vagrant@localhost ~]$
[vagrant@localhost ~]$ httpd -v
Server version: Apache/2.4.9 (Unix)
Server built:   Mar 18 2014 14:47:33
[vagrant@localhost ~]$

参考

http://wingse.blog57.fc2.com/blog-entry-281.html
リポジトリの場所がなんらかのタイミングで変わっているみたいなので注意する必要がある。

まとめ

ソースインストールの場合は自身で場所などをカスタムできるけど正しい知識が要求されている場合に多少戸惑う事がある。
yumなどであるていどよしなに場所を設定されていたほうが楽なこともあるので覚えておく。

広告を非表示にする