remiレポジトリを入れてmysqlの5.5とphpの5.3をインストールする | ヌキのさくらインターネットVPSでCentOSを構築

ヌキのさくらインターネットVPSでCentOSを構築

CA12年新卒のonukiが

さくらインターネットVPSで
CentOSを構築する手順をちまちまと更新していきたいなって思います。
切りのいいところでまた違うネタにしていこうかと思いますが
しばらくはVPSのお話です。

記事を書きながらの構築は結構時間がかかるw

今回の記事はOSを再インストールしてからの作業になります。

mysqlをインストールするのに5.0系ではちょっととか
php5.1系じゃアプリが動かないという方向けです。
しばらくこの環境で構築を進めようと思います。

前にmysqlのアップデートしようとして思いっ切り引っかかったのでやることにしました。

そのまま、yumでインストールしても古いバージョンが入ってしまうので
remiレポジトリとepelレポジトリが必要なのでダウンロードします。

# wget http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
--2011-04-18 13:21:05-- http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
Resolving download.fedora.redhat.com... 209.132.181.25, 209.132.181.26, 209.132.181.27, ...
Connecting to download.fedora.redhat.com|209.132.181.25|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12232 (12K) [application/x-rpm]
Saving to: `epel-release-5-4.noarch.rpm'

100%[================================================================>] 12,232 48.7K/s in 0.2s

2011-04-18 13:21:05 (48.7 KB/s) - `epel-release-5-4.noarch.rpm' saved [12232/12232]

# wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
--2011-04-18 13:21:18-- http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
Resolving rpms.famillecollet.com... 88.191.74.232, 2a01:e0b:1:74:2e0:f4ff:fe1b:b827
Connecting to rpms.famillecollet.com|88.191.74.232|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4974 (4.9K) [application/x-rpm]
Saving to: `remi-release-5.rpm'

100%[=================================================================>] 4,974 18.1K/s in 0.3s

2011-04-18 13:21:19 (18.1 KB/s) - `remi-release-5.rpm' saved [4974/4974]


rpmをダウンロードしたのでインストールします。
rpmでファイルをURLで指定すれば一回でインストールできるんですけど
個人的に/usr/local/src配下にダウンロードしたものを管理しているので
ダウンロード→インストールということをしています
2つのインストールを一回一回コマンド叩きたくないので
一回でインストールします。

# rpm -ivh epel-release-5-4.noarch.rpm remi-release-5.rpm
warning: epel-release-5-4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
warning: remi-release-5.rpm: Header V3 DSA signature: NOKEY, key ID 00f97f56
Preparing... ########################################### [100%]
1:epel-release ########################################### [ 50%]
2:remi-release ########################################### [100%]


これでレポジトリの追加が完了しました。
dagレポジトリの追加ではenableが1で自動的にdagを読みに行ってたのですが、
remiはデフォルトで0になっていてオプションを指定しないと探しにいってくれません
なので下記のようにオプションを指定してremiレポジトリを読みに行かせてください
phpのバージョンは何が入るかオプションあり・なしで確認してみましょう

  オプションなし
# yum list php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: ftp.kddilabs.jp
Available Packages
php.x86_64 5.1.6-27.el5_5.3 base

 オプションあり
# yum list --enablerepo=remi php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: ftp.kddilabs.jp
* remi: remi-mirror.dedipower.com
addons | 951 B 00:00
base | 2.1 kB 00:00
dag | 1.1 kB 00:00
epel | 3.7 kB 00:00
epel/primary_db | 3.7 MB 00:00
extras | 2.1 kB 00:00
remi | 2.6 kB 00:00
remi/primary_db | 260 kB 00:02
updates | 1.9 kB 00:00
Available Packages
php.x86_64 5.3.6-3.el5.remi remi


mysqlも同様に見てみます

  オプションなし
# yum list mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: ftp.kddilabs.jp
Available Packages
mysql.i386 5.0.77-4.el5_5.5 updates
mysql.x86_64 5.0.77-4.el5_5.5 updates


 オプションあり
# yum list --enablerepo=remi mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: ftp.kddilabs.jp
* remi: remi-mirror.dedipower.com
Available Packages
mysql.i386 5.0.77-4.el5_5.5 updates
mysql.x86_64 5.5.11-1.el5.remi remi


そんな感じでインストールできるっぽいので
必要なものをガツガツインストールします
名称だけだとmysqlの32bit版の5.0が入ってしまうので
Archも指定しましょう。

# yum install --enablerepo=remi php php-mysql mysql.x86_64 mysql-server.x86_64 mysql-devel.x86_64 php-mbstring httpd httpd-devel.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: ftp.kddilabs.jp
* remi: remi-mirror.dedipower.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.3-45.el5.centos set to be updated
---> Package httpd-devel.x86_64 0:2.2.3-45.el5.centos set to be updated
--> Processing Dependency: apr-util-devel for package: httpd-devel
--> Processing Dependency: apr-devel for package: httpd-devel
---> Package mysql.x86_64 0:5.5.11-1.el5.remi set to be updated
--> Processing Dependency: mysql-libs = 5.5.11-1.el5.remi for package: mysql
---> Package mysql-devel.x86_64 0:5.5.11-1.el5.remi set to be updated
--> Processing Dependency: openssl-devel for package: mysql-devel
---> Package mysql-server.x86_64 0:5.5.11-1.el5.remi set to be updated
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server
--> Processing Dependency: perl-DBI for package: mysql-server
--> Processing Dependency: perl(DBI) for package: mysql-server
---> Package php.x86_64 0:5.3.6-3.el5.remi set to be updated
--> Processing Dependency: php-cli = 5.3.6-3.el5.remi for package: php
--> Processing Dependency: php-common = 5.3.6-3.el5.remi for package: php
---> Package php-mbstring.x86_64 0:5.3.6-3.el5.remi set to be updated
---> Package php-mysql.x86_64 0:5.3.6-3.el5.remi set to be updated
--> Processing Dependency: php-pdo = 5.3.6-3.el5.remi for package: php-mysql
--> Running transaction check
---> Package apr-devel.x86_64 0:1.2.7-11.el5_5.3 set to be updated
---> Package apr-util-devel.x86_64 0:1.2.7-11.el5_5.2 set to be updated
--> Processing Dependency: openldap-devel for package: apr-util-devel
--> Processing Dependency: db4-devel for package: apr-util-devel
--> Processing Dependency: expat-devel for package: apr-util-devel
---> Package mysql-libs.x86_64 0:5.5.11-1.el5.remi set to be updated
---> Package openssl-devel.x86_64 0:0.9.8e-12.el5_5.7 set to be updated
--> Processing Dependency: zlib-devel for package: openssl-devel
--> Processing Dependency: krb5-devel for package: openssl-devel
---> Package perl-DBD-MySQL.x86_64 0:3.0007-2.el5 set to be updated
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) for package: perl-DBD-MySQL
--> Processing Dependency: libmysqlclient.so.15()(64bit) for package: perl-DBD-MySQL
---> Package perl-DBI.x86_64 0:1.52-2.el5 set to be updated
---> Package php-cli.x86_64 0:5.3.6-3.el5.remi set to be updated
--> Processing Dependency: libedit.so.0()(64bit) for package: php-cli
---> Package php-common.x86_64 0:5.3.6-3.el5.remi set to be updated
---> Package php-pdo.x86_64 0:5.3.6-3.el5.remi set to be updated
--> Running transaction check
---> Package db4-devel.x86_64 0:4.3.29-10.el5_5.2 set to be updated
---> Package expat-devel.x86_64 0:1.95.8-8.3.el5_5.3 set to be updated
---> Package krb5-devel.x86_64 0:1.6.1-55.el5_6.1 set to be updated
--> Processing Dependency: libselinux-devel for package: krb5-devel
--> Processing Dependency: e2fsprogs-devel for package: krb5-devel
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel
---> Package libedit.x86_64 0:20090923-3.0_1.el5.rf set to be updated
---> Package mysqlclient15.x86_64 0:5.0.67-1.el5.remi set to be updated
---> Package openldap-devel.x86_64 0:2.3.43-12.el5_6.7 set to be updated
--> Processing Dependency: cyrus-sasl-devel >= 2.1 for package: openldap-devel
---> Package zlib-devel.x86_64 0:1.2.3-3 set to be updated
--> Running transaction check
---> Package cyrus-sasl-devel.x86_64 0:2.1.22-5.el5_4.3 set to be updated
---> Package e2fsprogs-devel.x86_64 0:1.39-23.el5_5.1 set to be updated
---> Package keyutils-libs-devel.x86_64 0:1.2-1.el5 set to be updated
---> Package libselinux-devel.x86_64 0:1.33.4-5.7.el5 set to be updated
--> Processing Dependency: libsepol-devel >= 1.15.2-1 for package: libselinux-devel
--> Running transaction check
---> Package libsepol-devel.x86_64 0:1.15.2-3.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================
Installing:
httpd x86_64 2.2.3-45.el5.centos base 1.2 M
httpd-devel x86_64 2.2.3-45.el5.centos base 149 k
mysql x86_64 5.5.11-1.el5.remi remi 7.4 M
mysql-devel x86_64 5.5.11-1.el5.remi remi 168 k
mysql-server x86_64 5.5.11-1.el5.remi remi 12 M
php x86_64 5.3.6-3.el5.remi remi 1.4 M
php-mbstring x86_64 5.3.6-3.el5.remi remi 2.3 M
php-mysql x86_64 5.3.6-3.el5.remi remi 159 k
Installing for dependencies:
apr-devel x86_64 1.2.7-11.el5_5.3 base 237 k
apr-util-devel x86_64 1.2.7-11.el5_5.2 base 53 k
cyrus-sasl-devel x86_64 2.1.22-5.el5_4.3 base 1.4 M
db4-devel x86_64 4.3.29-10.el5_5.2 base 2.0 M
e2fsprogs-devel x86_64 1.39-23.el5_5.1 base 633 k
expat-devel x86_64 1.95.8-8.3.el5_5.3 base 129 k
keyutils-libs-devel x86_64 1.2-1.el5 base 27 k
krb5-devel x86_64 1.6.1-55.el5_6.1 updates 1.9 M
libedit x86_64 20090923-3.0_1.el5.rf dag 272 k
libselinux-devel x86_64 1.33.4-5.7.el5 base 149 k
libsepol-devel x86_64 1.15.2-3.el5 base 192 k
mysql-libs x86_64 5.5.11-1.el5.remi remi 1.1 M
mysqlclient15 x86_64 5.0.67-1.el5.remi remi 1.3 M
openldap-devel x86_64 2.3.43-12.el5_6.7 updates 1.6 M
openssl-devel x86_64 0.9.8e-12.el5_5.7 base 1.9 M
perl-DBD-MySQL x86_64 3.0007-2.el5 base 148 k
perl-DBI x86_64 1.52-2.el5 base 600 k
php-cli x86_64 5.3.6-3.el5.remi remi 2.6 M
php-common x86_64 5.3.6-3.el5.remi remi 973 k
php-pdo x86_64 5.3.6-3.el5.remi remi 117 k
zlib-devel x86_64 1.2.3-3 base 102 k

Transaction Summary
============================================================================================================================================
Install 29 Package(s)
Upgrade 0 Package(s)

Total download size: 42 M
Is this ok [y/N]:
Exiting on user Command
Complete!
[root@www17125u src]# yum install --enablerepo=remi php php-mysql mysql.x86_64 mysql-server.x86_64 mysql-devel.x86_64 php-mbstring httpd httpd-devel.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: ftp.kddilabs.jp
* remi: remi-mirror.dedipower.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.3-45.el5.centos set to be updated
---> Package httpd-devel.x86_64 0:2.2.3-45.el5.centos set to be updated
--> Processing Dependency: apr-util-devel for package: httpd-devel
--> Processing Dependency: apr-devel for package: httpd-devel
---> Package mysql.x86_64 0:5.5.11-1.el5.remi set to be updated
--> Processing Dependency: mysql-libs = 5.5.11-1.el5.remi for package: mysql
---> Package mysql-devel.x86_64 0:5.5.11-1.el5.remi set to be updated
--> Processing Dependency: openssl-devel for package: mysql-devel
---> Package mysql-server.x86_64 0:5.5.11-1.el5.remi set to be updated
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server
--> Processing Dependency: perl-DBI for package: mysql-server
--> Processing Dependency: perl(DBI) for package: mysql-server
---> Package php.x86_64 0:5.3.6-3.el5.remi set to be updated
--> Processing Dependency: php-cli = 5.3.6-3.el5.remi for package: php
--> Processing Dependency: php-common = 5.3.6-3.el5.remi for package: php
---> Package php-mbstring.x86_64 0:5.3.6-3.el5.remi set to be updated
---> Package php-mysql.x86_64 0:5.3.6-3.el5.remi set to be updated
--> Processing Dependency: php-pdo = 5.3.6-3.el5.remi for package: php-mysql
--> Running transaction check
---> Package apr-devel.x86_64 0:1.2.7-11.el5_5.3 set to be updated
---> Package apr-util-devel.x86_64 0:1.2.7-11.el5_5.2 set to be updated
--> Processing Dependency: openldap-devel for package: apr-util-devel
--> Processing Dependency: db4-devel for package: apr-util-devel
--> Processing Dependency: expat-devel for package: apr-util-devel
---> Package mysql-libs.x86_64 0:5.5.11-1.el5.remi set to be updated
---> Package openssl-devel.x86_64 0:0.9.8e-12.el5_5.7 set to be updated
--> Processing Dependency: zlib-devel for package: openssl-devel
--> Processing Dependency: krb5-devel for package: openssl-devel
---> Package perl-DBD-MySQL.x86_64 0:3.0007-2.el5 set to be updated
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) for package: perl-DBD-MySQL
--> Processing Dependency: libmysqlclient.so.15()(64bit) for package: perl-DBD-MySQL
---> Package perl-DBI.x86_64 0:1.52-2.el5 set to be updated
---> Package php-cli.x86_64 0:5.3.6-3.el5.remi set to be updated
--> Processing Dependency: libedit.so.0()(64bit) for package: php-cli
---> Package php-common.x86_64 0:5.3.6-3.el5.remi set to be updated
---> Package php-pdo.x86_64 0:5.3.6-3.el5.remi set to be updated
--> Running transaction check
---> Package db4-devel.x86_64 0:4.3.29-10.el5_5.2 set to be updated
---> Package expat-devel.x86_64 0:1.95.8-8.3.el5_5.3 set to be updated
---> Package krb5-devel.x86_64 0:1.6.1-55.el5_6.1 set to be updated
--> Processing Dependency: libselinux-devel for package: krb5-devel
--> Processing Dependency: e2fsprogs-devel for package: krb5-devel
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel
---> Package libedit.x86_64 0:20090923-3.0_1.el5.rf set to be updated
---> Package mysqlclient15.x86_64 0:5.0.67-1.el5.remi set to be updated
---> Package openldap-devel.x86_64 0:2.3.43-12.el5_6.7 set to be updated
--> Processing Dependency: cyrus-sasl-devel >= 2.1 for package: openldap-devel
---> Package zlib-devel.x86_64 0:1.2.3-3 set to be updated
--> Running transaction check
---> Package cyrus-sasl-devel.x86_64 0:2.1.22-5.el5_4.3 set to be updated
---> Package e2fsprogs-devel.x86_64 0:1.39-23.el5_5.1 set to be updated
---> Package keyutils-libs-devel.x86_64 0:1.2-1.el5 set to be updated
---> Package libselinux-devel.x86_64 0:1.33.4-5.7.el5 set to be updated
--> Processing Dependency: libsepol-devel >= 1.15.2-1 for package: libselinux-devel
--> Running transaction check
---> Package libsepol-devel.x86_64 0:1.15.2-3.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================
Installing:
httpd x86_64 2.2.3-45.el5.centos base 1.2 M
httpd-devel x86_64 2.2.3-45.el5.centos base 149 k
mysql x86_64 5.5.11-1.el5.remi remi 7.4 M
mysql-devel x86_64 5.5.11-1.el5.remi remi 168 k
mysql-server x86_64 5.5.11-1.el5.remi remi 12 M
php x86_64 5.3.6-3.el5.remi remi 1.4 M
php-mbstring x86_64 5.3.6-3.el5.remi remi 2.3 M
php-mysql x86_64 5.3.6-3.el5.remi remi 159 k
Installing for dependencies:
apr-devel x86_64 1.2.7-11.el5_5.3 base 237 k
apr-util-devel x86_64 1.2.7-11.el5_5.2 base 53 k
cyrus-sasl-devel x86_64 2.1.22-5.el5_4.3 base 1.4 M
db4-devel x86_64 4.3.29-10.el5_5.2 base 2.0 M
e2fsprogs-devel x86_64 1.39-23.el5_5.1 base 633 k
expat-devel x86_64 1.95.8-8.3.el5_5.3 base 129 k
keyutils-libs-devel x86_64 1.2-1.el5 base 27 k
krb5-devel x86_64 1.6.1-55.el5_6.1 updates 1.9 M
libedit x86_64 20090923-3.0_1.el5.rf dag 272 k
libselinux-devel x86_64 1.33.4-5.7.el5 base 149 k
libsepol-devel x86_64 1.15.2-3.el5 base 192 k
mysql-libs x86_64 5.5.11-1.el5.remi remi 1.1 M
mysqlclient15 x86_64 5.0.67-1.el5.remi remi 1.3 M
openldap-devel x86_64 2.3.43-12.el5_6.7 updates 1.6 M
openssl-devel x86_64 0.9.8e-12.el5_5.7 base 1.9 M
perl-DBD-MySQL x86_64 3.0007-2.el5 base 148 k
perl-DBI x86_64 1.52-2.el5 base 600 k
php-cli x86_64 5.3.6-3.el5.remi remi 2.6 M
php-common x86_64 5.3.6-3.el5.remi remi 973 k
php-pdo x86_64 5.3.6-3.el5.remi remi 117 k
zlib-devel x86_64 1.2.3-3 base 102 k

Transaction Summary
============================================================================================================================================
Install 29 Package(s)
Upgrade 0 Package(s)

Total download size: 42 M
Is this ok [y/N]: y
Downloading Packages:
(1/29): keyutils-libs-devel-1.2-1.el5.x86_64.rpm | 27 kB 00:00
(2/29): apr-util-devel-1.2.7-11.el5_5.2.x86_64.rpm | 53 kB 00:00
(3/29): zlib-devel-1.2.3-3.x86_64.rpm | 102 kB 00:00
(4/29): php-pdo-5.3.6-3.el5.remi.x86_64.rpm | 117 kB 00:01
(5/29): expat-devel-1.95.8-8.3.el5_5.3.x86_64.rpm | 129 kB 00:00
(6/29): perl-DBD-MySQL-3.0007-2.el5.x86_64.rpm | 148 kB 00:00
(7/29): libselinux-devel-1.33.4-5.7.el5.x86_64.rpm | 149 kB 00:00
(8/29): httpd-devel-2.2.3-45.el5.centos.x86_64.rpm | 149 kB 00:00
(9/29): php-mysql-5.3.6-3.el5.remi.x86_64.rpm | 159 kB 00:01
(10/29): mysql-devel-5.5.11-1.el5.remi.x86_64.rpm | 168 kB 00:00
(11/29): libsepol-devel-1.15.2-3.el5.x86_64.rpm | 192 kB 00:00
(12/29): apr-devel-1.2.7-11.el5_5.3.x86_64.rpm | 237 kB 00:00
(13/29): libedit-20090923-3.0_1.el5.rf.x86_64.rpm | 272 kB 00:00
(14/29): perl-DBI-1.52-2.el5.x86_64.rpm | 600 kB 00:00
(15/29): e2fsprogs-devel-1.39-23.el5_5.1.x86_64.rpm | 633 kB 00:00
(16/29): php-common-5.3.6-3.el5.remi.x86_64.rpm | 973 kB 00:03
(17/29): mysql-libs-5.5.11-1.el5.remi.x86_64.rpm | 1.1 MB 00:01
(18/29): httpd-2.2.3-45.el5.centos.x86_64.rpm | 1.2 MB 00:00
(19/29): mysqlclient15-5.0.67-1.el5.remi.x86_64.rpm | 1.3 MB 00:02
(20/29): cyrus-sasl-devel-2.1.22-5.el5_4.3.x86_64.rpm | 1.4 MB 00:00
(21/29): php-5.3.6-3.el5.remi.x86_64.rpm | 1.4 MB 00:02
(22/29): openldap-devel-2.3.43-12.el5_6.7.x86_64.rpm | 1.6 MB 00:02
(23/29): openssl-devel-0.9.8e-12.el5_5.7.x86_64.rpm | 1.9 MB 00:02
(24/29): krb5-devel-1.6.1-55.el5_6.1.x86_64.rpm | 1.9 MB 00:00
(25/29): db4-devel-4.3.29-10.el5_5.2.x86_64.rpm | 2.0 MB 00:01
(26/29): php-mbstring-5.3.6-3.el5.remi.x86_64.rpm | 2.3 MB 00:04
(27/29): php-cli-5.3.6-3.el5.remi.x86_64.rpm | 2.6 MB 00:01
(28/29): mysql-5.5.11-1.el5.remi.x86_64.rpm | 7.4 MB 00:06
(29/29): mysql-server-5.5.11-1.el5.remi.x86_64.rpm | 12 MB 00:10
--------------------------------------------------------------------------------------------------------------------------------------------
Total 727 kB/s | 42 MB 00:58
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 00f97f56
remi/gpgkey | 1.3 kB 00:00
Importing GPG key 0x00F97F56 "Remi Collet " from /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
Is this ok [y/N]: y
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
dag/gpgkey | 1.6 kB 00:00
Importing GPG key 0x6B8D79E6 "Dag Wieers (Dag Apt Repository v1.0) " from http://ftp.riken.go.jp/pub/Linux/dag/RPM-GPG-KEY.dag.txt
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction

WARNING : This php-* RPM are not official Fedora/Redhat build and
overrides the official ones. Don't file bugs on Fedora Project nor Redhat.

Use dedicated forums http://forums.famillecollet.com/

Installing : php-common 1/29

WARNING : This MySQL RPM is not an official Fedora/Redhat build and it
overrides the official one. Don't file bugs on Fedora Project nor Redhat.
Use dedicated forums http://forums.famillecollet.com/

Installing : mysql-libs 2/29
Installing : mysql 3/29
Installing : perl-DBI 4/29
Installing : httpd 5/29
Installing : apr-devel 6/29
Installing : php-pdo 7/29
Installing : mysqlclient15 8/29
Installing : perl-DBD-MySQL 9/29
Installing : libedit 10/29
Installing : php-cli 11/29
Installing : cyrus-sasl-devel 12/29
Installing : openldap-devel 13/29
Installing : e2fsprogs-devel 14/29
Installing : libsepol-devel 15/29
Installing : libselinux-devel 16/29
Installing : keyutils-libs-devel 17/29
Installing : krb5-devel 18/29
Installing : expat-devel 19/29
Installing : db4-devel 20/29
Installing : apr-util-devel 21/29
Installing : zlib-devel 22/29
Installing : php 23/29
Installing : mysql-server 24/29
Installing : php-mysql 25/29
Installing : php-mbstring 26/29
Installing : openssl-devel 27/29
Installing : httpd-devel 28/29
Installing : mysql-devel 29/29

Installed:
httpd.x86_64 0:2.2.3-45.el5.centos httpd-devel.x86_64 0:2.2.3-45.el5.centos mysql.x86_64 0:5.5.11-1.el5.remi
mysql-devel.x86_64 0:5.5.11-1.el5.remi mysql-server.x86_64 0:5.5.11-1.el5.remi php.x86_64 0:5.3.6-3.el5.remi
php-mbstring.x86_64 0:5.3.6-3.el5.remi php-mysql.x86_64 0:5.3.6-3.el5.remi

Dependency Installed:
apr-devel.x86_64 0:1.2.7-11.el5_5.3 apr-util-devel.x86_64 0:1.2.7-11.el5_5.2 cyrus-sasl-devel.x86_64 0:2.1.22-5.el5_4.3
db4-devel.x86_64 0:4.3.29-10.el5_5.2 e2fsprogs-devel.x86_64 0:1.39-23.el5_5.1 expat-devel.x86_64 0:1.95.8-8.3.el5_5.3
keyutils-libs-devel.x86_64 0:1.2-1.el5 krb5-devel.x86_64 0:1.6.1-55.el5_6.1 libedit.x86_64 0:20090923-3.0_1.el5.rf
libselinux-devel.x86_64 0:1.33.4-5.7.el5 libsepol-devel.x86_64 0:1.15.2-3.el5 mysql-libs.x86_64 0:5.5.11-1.el5.remi
mysqlclient15.x86_64 0:5.0.67-1.el5.remi openldap-devel.x86_64 0:2.3.43-12.el5_6.7 openssl-devel.x86_64 0:0.9.8e-12.el5_5.7
perl-DBD-MySQL.x86_64 0:3.0007-2.el5 perl-DBI.x86_64 0:1.52-2.el5 php-cli.x86_64 0:5.3.6-3.el5.remi
php-common.x86_64 0:5.3.6-3.el5.remi php-pdo.x86_64 0:5.3.6-3.el5.remi zlib-devel.x86_64 0:1.2.3-3

Complete!


全部コピペしてうざいけど、こんな感じで入りました。

あとは基本的に一緒なので
MySQLの構築

apacheのインストール
を見てください。

今日はここまで。


エキスパートのためのMySQL[運用+管理]トラブルシューティングガイド/奥野 幹也

¥3,465
Amazon.co.jp