1年以上、放置状態だったこのサイトを時間ができたのでメンテナンスすることにしました。
WordPress 3.0 jaで運用していたのですが最新のWordPress 3.3.1 jaにUpdateすることに
取り敢えずバックアップを取ってWordPress 3.3.1 jaに上げると下記のメッセージが
サーバーの PHP バージョンは 5.1.6 ですが WordPress 3.3.1 は 5.2.4 以上のみでご利用になれます。
事務所のサーバはCentOS 5.4でインストールしてそのままだったのでphpもUpdateしないとダメとのこと
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# yum update php (snip) =================================================================== Package Arch Version Repository Size =================================================================== Updating: php i386 5.1.6-27.el5_5.3 base 2.3 M Updating for dependencies: php-cli i386 5.1.6-27.el5_5.3 base 2.1 M php-common i386 5.1.6-27.el5_5.3 base 153 k php-devel i386 5.1.6-27.el5_5.3 base 503 k php-gd i386 5.1.6-27.el5_5.3 base 117 k php-ldap i386 5.1.6-27.el5_5.3 base 37 k php-mbstring i386 5.1.6-27.el5_5.3 base 995 k php-mysql i386 5.1.6-27.el5_5.3 base 86 k php-odbc i386 5.1.6-27.el5_5.3 base 53 k php-pdo i386 5.1.6-27.el5_5.3 base 65 k php-pgsql i386 5.1.6-27.el5_5.3 base 68 k Transaction Summary =================================================================== Install 0 Package(s) Update 11 Package(s) Remove 0 Package(s) Total download size: 6.4 M Is this ok [y/N]: |
あれ?! 5.1.6-27しか出てこない・・・
5.2.4以上にするにはどうするのかgoogleにお願いするとremiレポジトリとやらを有効にすればできそう
1 2 3 4 5 6 7 8 9 10 |
# rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi # rpm --import http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL # rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm を取得中 準備中... ########################################### [100%] 1:epel-release ########################################### [100%] # rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm http://rpms.famillecollet.com/enterprise/remi-release-5.rpm を取得中 準備中... ########################################### [100%] 1:remi-release ########################################### [100%] |
これで準備は整いました。phpのupdateを行います
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# yum update --enablerepo remi php (snip) ================================================================================ Package Arch Version Repository Size ================================================================================ Updating: php i386 5.3.9-1.el5.remi remi 2.7 M Installing for dependencies: libedit i386 20090923-3.0_1.el5.rf dag 262 k mysql-libs i386 5.5.20-1.el5.remi remi 1.1 M t1lib i386 5.1.2-1.el5.rf dag 362 k Updating for dependencies: php-cli i386 5.3.9-1.el5.remi remi 2.7 M php-common i386 5.3.9-1.el5.remi remi 994 k php-devel i386 5.3.9-1.el5.remi remi 1.3 M php-gd i386 5.3.9-1.el5.remi remi 206 k php-ldap i386 5.3.9-1.el5.remi remi 54 k php-mbstring i386 5.3.9-1.el5.remi remi 2.3 M php-mysql i386 5.3.9-1.el5.remi remi 90 k php-odbc i386 5.3.9-1.el5.remi remi 84 k php-pdo i386 5.3.9-1.el5.remi remi 115 k php-pgsql i386 5.3.9-1.el5.remi remi 130 k Transaction Summary ================================================================================ Install 3 Package(s) Update 11 Package(s) Remove 0 Package(s) Total download size: 12 M Is this ok [y/N]: y |
yでインストールを開始するとエラーがでました
1 2 3 |
Transaction Check Error: file /etc/my.cnf from install of mysql-libs-5.5.20-1.el5.remi.i386 conflicts with file from package mysql-5.0.77-3.el5.i386 (snip) |
どうもmysqlを先にUpdateしないとダメなようです
mysqlをUpdateします
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# yum update --enablerepo remi mysql Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.tsukuba.wide.ad.jp * centosplus: ftp.tsukuba.wide.ad.jp * epel: ftp.kddilabs.jp * extras: ftp.tsukuba.wide.ad.jp * remi: remirpm.mirror.gymkl.ch * updates: ftp.tsukuba.wide.ad.jp Setting up Update Process Resolving Dependencies --> Running transaction check --> Processing Dependency: libmysqlclient.so.15 for package: php-mysql --> Processing Dependency: libmysqlclient.so.15 for package: dovecot --> Processing Dependency: libmysqlclient.so.15 for package: mysql-devel --> Processing Dependency: libmysqlclient.so.15 for package: qt-MySQL --> Processing Dependency: libmysqlclient.so.15 for package: libdbi-dbd-mysql --> Processing Dependency: libmysqlclient.so.15 for package: mysql-connector-odbc --> Processing Dependency: libmysqlclient.so.15 for package: mysql-server --> Processing Dependency: libmysqlclient.so.15 for package: perl-DBD-MySQL --> Processing Dependency: libmysqlclient.so.15 for package: mod_auth_mysql --> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: php-mysql --> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: dovecot --> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: qt-MySQL --> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: libdbi-dbd-mysql --> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: mysql-connector-odbc --> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: mysql-server --> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: perl-DBD-MySQL --> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: mod_auth_mysql --> Processing Dependency: libmysqlclient_r.so.15 for package: mysql-connector-odbc --> Processing Dependency: libmysqlclient_r.so.15 for package: mysql-devel --> Processing Dependency: libmysqlclient_r.so.15 for package: MySQL-python --> Processing Dependency: libmysqlclient_r.so.15 for package: mysql-server --> Processing Dependency: libmysqlclient_r.so.15(libmysqlclient_15) for package: mysql-connector-odbc --> Processing Dependency: libmysqlclient_r.so.15(libmysqlclient_15) for package: MySQL-python --> Processing Dependency: libmysqlclient_r.so.15(libmysqlclient_15) for package: mysql-server --> Processing Dependency: mysql = 5.0.77-3.el5 for package: mysql-bench --> Processing Dependency: mysql = 5.0.77-3.el5 for package: mysql-devel --> Processing Dependency: mysql = 5.0.77-3.el5 for package: mysql-server ---> Package mysql.i386 0:5.5.20-1.el5.remi set to be updated --> Processing Dependency: mysql-libs = 5.5.20-1.el5.remi for package: mysql --> Running transaction check ---> Package dovecot.i386 0:1.0.7-7.el5_7.1 set to be updated ---> Package mysql-bench.i386 0:5.5.20-1.el5.remi set to be updated ---> Package mysql-devel.i386 0:5.5.20-1.el5.remi set to be updated ---> Package mysql-libs.i386 0:5.5.20-1.el5.remi set to be updated ---> Package mysql-server.i386 0:5.5.20-1.el5.remi set to be updated ---> Package mysqlclient15.i386 0:5.0.67-1.el5.remi set to be updated ---> Package php-mysql.i386 0:5.3.9-1.el5.remi set to be updated --> Processing Dependency: php-pdo = 5.3.9-1.el5.remi for package: php-mysql --> Running transaction check ---> Package php-pdo.i386 0:5.3.9-1.el5.remi set to be updated --> Processing Dependency: php-common = 5.3.9-1.el5.remi for package: php-pdo --> Running transaction check --> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-ldap --> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-odbc --> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-cli --> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-mbstring --> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-gd --> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-pgsql --> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php ---> Package php-common.i386 0:5.3.9-1.el5.remi set to be updated --> Running transaction check --> Processing Dependency: php = 5.1.6-27.el5_5.3 for package: php-devel ---> Package php.i386 0:5.3.9-1.el5.remi set to be updated --> Processing Dependency: libedit.so.0 for package: php ---> Package php-cli.i386 0:5.3.9-1.el5.remi set to be updated ---> Package php-gd.i386 0:5.3.9-1.el5.remi set to be updated --> Processing Dependency: libt1.so.5 for package: php-gd ---> Package php-ldap.i386 0:5.3.9-1.el5.remi set to be updated ---> Package php-mbstring.i386 0:5.3.9-1.el5.remi set to be updated ---> Package php-odbc.i386 0:5.3.9-1.el5.remi set to be updated ---> Package php-pgsql.i386 0:5.3.9-1.el5.remi set to be updated --> Running transaction check ---> Package libedit.i386 0:20090923-3.0_1.el5.rf set to be updated ---> Package php-devel.i386 0:5.3.9-1.el5.remi set to be updated ---> Package t1lib.i386 0:5.1.2-1.el5.rf set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Updating: mysql i386 5.5.20-1.el5.remi remi 7.5 M Installing for dependencies: libedit i386 20090923-3.0_1.el5.rf dag 262 k mysql-libs i386 5.5.20-1.el5.remi remi 1.1 M mysqlclient15 i386 5.0.67-1.el5.remi remi 1.3 M t1lib i386 5.1.2-1.el5.rf dag 362 k Updating for dependencies: dovecot i386 1.0.7-7.el5_7.1 updates 1.6 M mysql-bench i386 5.5.20-1.el5.remi remi 499 k mysql-devel i386 5.5.20-1.el5.remi remi 173 k mysql-server i386 5.5.20-1.el5.remi remi 13 M php i386 5.3.9-1.el5.remi remi 2.7 M php-cli i386 5.3.9-1.el5.remi remi 2.7 M php-common i386 5.3.9-1.el5.remi remi 994 k php-devel i386 5.3.9-1.el5.remi remi 1.3 M php-gd i386 5.3.9-1.el5.remi remi 206 k php-ldap i386 5.3.9-1.el5.remi remi 54 k php-mbstring i386 5.3.9-1.el5.remi remi 2.3 M php-mysql i386 5.3.9-1.el5.remi remi 90 k php-odbc i386 5.3.9-1.el5.remi remi 84 k php-pdo i386 5.3.9-1.el5.remi remi 115 k php-pgsql i386 5.3.9-1.el5.remi remi 130 k Transaction Summary ================================================================================ Install 4 Package(s) Update 16 Package(s) Remove 0 Package(s) Total size: 36 M Total download size: 24 M Is this ok [y/N]: y Downloading Packages: (1/6): mysql-devel-5.5.20-1.el5.remi.i386.rpm | 173 kB 00:01 (2/6): mysql-bench-5.5.20-1.el5.remi.i386.rpm | 499 kB 00:00 (3/6): mysqlclient15-5.0.67-1.el5.remi.i386.rpm | 1.3 MB 00:01 (4/6): dovecot-1.0.7-7.el5_7.1.i386.rpm | 1.6 MB 00:01 (5/6): mysql-5.5.20-1.el5.remi.i386.rpm | 7.5 MB 00:09 (6/6): mysql-server-5.5.20-1.el5.remi.i386.rpm | 13 MB 00:21 -------------------------------------------------------------------------------- Total 626 kB/s | 24 MB 00:39 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : mysqlclient15 1/36 WARNING : These 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/ Updating : php-common 2/36 warning: /etc/php.ini created as /etc/php.ini.rpmnew Updating : php-pdo 3/36 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 4/36 Updating : mysql 5/36 Installing : libedit 6/36 Updating : php-cli 7/36 Updating : php 8/36 Updating : dovecot 9/36 Installing : t1lib 10/36 Updating : php-mysql 11/36 Updating : mysql-bench 12/36 Updating : php-gd 13/36 Updating : php-devel 14/36 Updating : php-odbc 15/36 Updating : php-pgsql 16/36 Updating : php-ldap 17/36 Updating : mysql-server 18/36 Updating : php-mbstring 19/36 Updating : mysql-devel 20/36 Cleanup : php-common 21/36 Cleanup : php-mysql 22/36 Cleanup : php-pdo 23/36 Cleanup : mysql-bench 24/36 Cleanup : php-gd 25/36 Cleanup : php-devel 26/36 Cleanup : dovecot 27/36 Cleanup : php-odbc 28/36 Cleanup : php-pgsql 29/36 Cleanup : php-ldap 30/36 Cleanup : mysql-server 31/36 Cleanup : php-mbstring 32/36 Cleanup : mysql-devel 33/36 Cleanup : php-cli 34/36 Cleanup : mysql 35/36 Cleanup : php 36/36 Dependency Installed: libedit.i386 0:20090923-3.0_1.el5.rf mysql-libs.i386 0:5.5.20-1.el5.remi mysqlclient15.i386 0:5.0.67-1.el5.remi t1lib.i386 0:5.1.2-1.el5.rf Updated: mysql.i386 0:5.5.20-1.el5.remi Dependency Updated: dovecot.i386 0:1.0.7-7.el5_7.1 mysql-bench.i386 0:5.5.20-1.el5.remi mysql-devel.i386 0:5.5.20-1.el5.remi mysql-server.i386 0:5.5.20-1.el5.remi php.i386 0:5.3.9-1.el5.remi php-cli.i386 0:5.3.9-1.el5.remi php-common.i386 0:5.3.9-1.el5.remi php-devel.i386 0:5.3.9-1.el5.remi php-gd.i386 0:5.3.9-1.el5.remi php-ldap.i386 0:5.3.9-1.el5.remi php-mbstring.i386 0:5.3.9-1.el5.remi php-mysql.i386 0:5.3.9-1.el5.remi php-odbc.i386 0:5.3.9-1.el5.remi php-pdo.i386 0:5.3.9-1.el5.remi php-pgsql.i386 0:5.3.9-1.el5.remi Complete! |
取り敢えずphp-5.3.9-1.el5.remi, mysql-server-5.5.20-1.el5.remiにUpdateできました