Scientific Linux 6.1 で自宅サーバー再構築(その3)
September 25, 2011 – 10:43 amOSをCentOSからScientific Linux 6.1に変更し、自宅サーバーを再構築した際の記録。
第3回目は、LAMP(Linux+Apache+Mysql+PHP)を構成する3つのモジュールについて、インストールならびに設定について、それぞれメモしておいた。
Apache(httpd)のインストールと設定:
(1) yum によるhttpd関連モジュールのインストール
[root@yamasserver01 ~]# yum install httpd\* Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.2.15-9.sl6 will be installed --> Processing Dependency: /etc/mime.types for package: httpd-2.2.15-9.sl6.x86_64 --> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-9.sl6.x86_64 --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-9.sl6.x86_64 --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-9.sl6.x86_64 ---> Package httpd-devel.x86_64 0:2.2.15-9.sl6 will be installed --> Processing Dependency: pkgconfig for package: httpd-devel-2.2.15-9.sl6.x86_64 --> Processing Dependency: apr-util-devel for package: httpd-devel-2.2.15-9.sl6.x86_64 --> Processing Dependency: apr-devel for package: httpd-devel-2.2.15-9.sl6.x86_64 ---> Package httpd-manual.noarch 0:2.2.15-9.sl6 will be installed ---> Package httpd-tools.x86_64 0:2.2.15-9.sl6 will be installed --> Running transaction check ---> Package apr.x86_64 0:1.3.9-3.el6_1.2 will be installed ---> Package apr-devel.x86_64 0:1.3.9-3.el6_1.2 will be installed ---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed ---> Package apr-util-devel.x86_64 0:1.3.9-3.el6_0.1 will be installed --> Processing Dependency: openldap-devel for package: apr-util-devel-1.3.9-3.el6_0.1.x86_64 --> Processing Dependency: db4-devel for package: apr-util-devel-1.3.9-3.el6_0.1.x86_64 --> Processing Dependency: expat-devel for package: apr-util-devel-1.3.9-3.el6_0.1.x86_64 ---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed ---> Package mailcap.noarch 0:2.1.31-1.1.el6 will be installed ---> Package pkgconfig.x86_64 1:0.23-9.1.el6 will be installed --> Running transaction check ---> Package db4-devel.x86_64 0:4.7.25-16.el6 will be installed --> Processing Dependency: db4-cxx = 4.7.25-16.el6 for package: db4-devel-4.7.25-16.el6.x86_64 --> Processing Dependency: libdb_cxx-4.7.so()(64bit) for package: db4-devel-4.7.25-16.el6.x86_64 ---> Package expat-devel.x86_64 0:2.0.1-9.1.el6 will be installed ---> Package openldap-devel.x86_64 0:2.4.23-15.el6 will be installed --> Processing Dependency: cyrus-sasl-devel >= 2.1 for package: openldap-devel-2.4.23-15.el6.x86_64 --> Running transaction check ---> Package cyrus-sasl-devel.x86_64 0:2.1.23-8.el6 will be installed ---> Package db4-cxx.x86_64 0:4.7.25-16.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================= Package Arch Version Repository Size ======================================================================================================================= Installing: httpd x86_64 2.2.15-9.sl6 sl 811 k httpd-devel x86_64 2.2.15-9.sl6 sl 144 k httpd-manual noarch 2.2.15-9.sl6 sl 778 k httpd-tools x86_64 2.2.15-9.sl6 sl 68 k Installing for dependencies: apr x86_64 1.3.9-3.el6_1.2 sl-security 122 k apr-devel x86_64 1.3.9-3.el6_1.2 sl-security 175 k apr-util x86_64 1.3.9-3.el6_0.1 sl 86 k apr-util-devel x86_64 1.3.9-3.el6_0.1 sl 68 k apr-util-ldap x86_64 1.3.9-3.el6_0.1 sl 15 k cyrus-sasl-devel x86_64 2.1.23-8.el6 sl 301 k db4-cxx x86_64 4.7.25-16.el6 sl 589 k db4-devel x86_64 4.7.25-16.el6 sl 6.6 M expat-devel x86_64 2.0.1-9.1.el6 sl 118 k mailcap noarch 2.1.31-1.1.el6 sl 26 k openldap-devel x86_64 2.4.23-15.el6 sl 1.1 M pkgconfig x86_64 1:0.23-9.1.el6 sl 69 k Transaction Summary ======================================================================================================================= Install 16 Package(s) Total download size: 11 M Installed size: 41 M Is this ok [y/N]: y Downloading Packages: (1/16): apr-1.3.9-3.el6_1.2.x86_64.rpm | 122 kB 00:00 (2/16): apr-devel-1.3.9-3.el6_1.2.x86_64.rpm | 175 kB 00:00 (3/16): apr-util-1.3.9-3.el6_0.1.x86_64.rpm | 86 kB 00:00 (4/16): apr-util-devel-1.3.9-3.el6_0.1.x86_64.rpm | 68 kB 00:00 (5/16): apr-util-ldap-1.3.9-3.el6_0.1.x86_64.rpm | 15 kB 00:00 (6/16): cyrus-sasl-devel-2.1.23-8.el6.x86_64.rpm | 301 kB 00:00 (7/16): db4-cxx-4.7.25-16.el6.x86_64.rpm | 589 kB 00:00 (8/16): db4-devel-4.7.25-16.el6.x86_64.rpm | 6.6 MB 00:08 (9/16): expat-devel-2.0.1-9.1.el6.x86_64.rpm | 118 kB 00:00 (10/16): httpd-2.2.15-9.sl6.x86_64.rpm | 811 kB 00:01 (11/16): httpd-devel-2.2.15-9.sl6.x86_64.rpm | 144 kB 00:00 (12/16): httpd-manual-2.2.15-9.sl6.noarch.rpm | 778 kB 00:01 (13/16): httpd-tools-2.2.15-9.sl6.x86_64.rpm | 68 kB 00:00 (14/16): mailcap-2.1.31-1.1.el6.noarch.rpm | 26 kB 00:00 (15/16): openldap-devel-2.4.23-15.el6.x86_64.rpm | 1.1 MB 00:02 (16/16): pkgconfig-0.23-9.1.el6.x86_64.rpm | 69 kB 00:00 ----------------------------------------------------------------------------------------------------------------------- Total 622 kB/s | 11 MB 00:17 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : apr-1.3.9-3.el6_1.2.x86_64 1/16 Installing : apr-util-1.3.9-3.el6_0.1.x86_64 2/16 Installing : 1:pkgconfig-0.23-9.1.el6.x86_64 3/16 Installing : apr-devel-1.3.9-3.el6_1.2.x86_64 4/16 Installing : apr-util-ldap-1.3.9-3.el6_0.1.x86_64 5/16 Installing : httpd-tools-2.2.15-9.sl6.x86_64 6/16 Installing : mailcap-2.1.31-1.1.el6.noarch 7/16 Installing : httpd-2.2.15-9.sl6.x86_64 8/16 Installing : cyrus-sasl-devel-2.1.23-8.el6.x86_64 9/16 Installing : openldap-devel-2.4.23-15.el6.x86_64 10/16 Installing : expat-devel-2.0.1-9.1.el6.x86_64 11/16 Installing : db4-cxx-4.7.25-16.el6.x86_64 12/16 Installing : db4-devel-4.7.25-16.el6.x86_64 13/16 Installing : apr-util-devel-1.3.9-3.el6_0.1.x86_64 14/16 Installing : httpd-devel-2.2.15-9.sl6.x86_64 15/16 Installing : httpd-manual-2.2.15-9.sl6.noarch 16/16 Installed: httpd.x86_64 0:2.2.15-9.sl6 httpd-devel.x86_64 0:2.2.15-9.sl6 httpd-manual.noarch 0:2.2.15-9.sl6 httpd-tools.x86_64 0:2.2.15-9.sl6 Dependency Installed: apr.x86_64 0:1.3.9-3.el6_1.2 apr-devel.x86_64 0:1.3.9-3.el6_1.2 apr-util.x86_64 0:1.3.9-3.el6_0.1 apr-util-devel.x86_64 0:1.3.9-3.el6_0.1 apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 cyrus-sasl-devel.x86_64 0:2.1.23-8.el6 db4-cxx.x86_64 0:4.7.25-16.el6 db4-devel.x86_64 0:4.7.25-16.el6 expat-devel.x86_64 0:2.0.1-9.1.el6 mailcap.noarch 0:2.1.31-1.1.el6 openldap-devel.x86_64 0:2.4.23-15.el6 pkgconfig.x86_64 1:0.23-9.1.el6 Complete!
(2) httpd の設定と起動
(2-1) /etc/httpd/conf/httpd.confの設定
インストール時のhttpd.confと設定終了時の差分(diff commandの出力)を以下に掲げる。
但し、バーチャルホストの設定に係わる部分は、ここでは省略した。「Webサーバーの立ち上げとバーチャルホスト」の該当部を参照のこと。
[root@yamasserver01 conf]# diff httpd.conf httpd.conf.original 44,45c44 < #ServerTokens OS < ServerTokens ProductOnly --- > ServerTokens OS 71c70 < Timeout 120 --- > Timeout 60 77,78c76 < #KeepAlive Off < KeepAlive On --- > KeepAlive Off 264,265c262 < #ServerAdmin root@localhost < ServerAdmin webadmin@yamasnet.com --- > ServerAdmin root@localhost 280d276 < ServerName www.yamasnet.com:80 460,461c456 < #HostnameLookups Off < HostnameLookups On --- > HostnameLookups Off 541,542c536 < #ServerSignature On < ServerSignature Off --- > ServerSignature On
(2-2) httpd の起動と自動起動の設定
[root@yamasserver01 ~]# service httpd start Starting httpd: [ OK ] [root@yamasserver01 ~]# chkconfig httpd on
PHPのインストールと設定:
(1) yum によるPHP関連モジュールのインストール
[root@yamasserver01 ~]# yum install php\* Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php.x86_64 0:5.3.3-3.el6 will be installed ---> Package php-bcmath.x86_64 0:5.3.3-3.el6 will be installed ---> Package php-cli.x86_64 0:5.3.3-3.el6 will be installed ---> Package php-common.x86_64 0:5.3.3-3.el6 will be installed ---> Package php-dba.x86_64 0:5.3.3-3.el6 will be installed ---> Package php-devel.x86_64 0:5.3.3-3.el6 will be installed --> Processing Dependency: autoconf for package: php-devel-5.3.3-3.el6.x86_64 --> Processing Dependency: automake for package: php-devel-5.3.3-3.el6.x86_64 ---> Package php-embedded.x86_64 0:5.3.3-3.el6 will be installed ---> Package php-enchant.x86_64 0:5.3.3-3.el6 will be installed --> Processing Dependency: libenchant.so.1()(64bit) for package: php-enchant-5.3.3-3.el6.x86_64 ---> Package php-gd.x86_64 0:5.3.3-3.el6 will be installed --> Processing Dependency: libpng12.so.0(PNG12_0)(64bit) for package: php-gd-5.3.3-3.el6.x86_64 --> Processing Dependency: libpng12.so.0()(64bit) for package: php-gd-5.3.3-3.el6.x86_64 --> Processing Dependency: libXpm.so.4()(64bit) for package: php-gd-5.3.3-3.el6.x86_64 --> Processing Dependency: libjpeg.so.62()(64bit) for package: php-gd-5.3.3-3.el6.x86_64 --> Processing Dependency: libfreetype.so.6()(64bit) for package: php-gd-5.3.3-3.el6.x86_64 --> Processing Dependency: libX11.so.6()(64bit) for package: php-gd-5.3.3-3.el6.x86_64 ---> Package php-imap.x86_64 0:5.3.3-3.el6 will be installed --> Processing Dependency: libc-client.so.2007()(64bit) for package: php-imap-5.3.3-3.el6.x86_64 ---> Package php-intl.x86_64 0:5.3.3-3.el6 will be installed ---> Package php-ldap.x86_64 0:5.3.3-3.el6 will be installed ---> Package php-mbstring.x86_64 0:5.3.3-3.el6 will be installed ---> Package php-mysql.x86_64 0:5.3.3-3.el6 will be installed ---> Package php-odbc.x86_64 0:5.3.3-3.el6 will be installed --> Processing Dependency: libodbc.so.2()(64bit) for package: php-odbc-5.3.3-3.el6.x86_64 ---> Package php-pdo.x86_64 0:5.3.3-3.el6 will be installed ---> Package php-pear.noarch 1:1.9.0-2.el6 will be installed ---> Package php-pecl-apc.x86_64 0:3.1.3p1-1.2.el6.1 will be installed ---> Package php-pecl-memcache.x86_64 0:3.0.5-3.el6 will be installed ---> Package php-pgsql.x86_64 0:5.3.3-3.el6 will be installed --> Processing Dependency: libpq.so.5()(64bit) for package: php-pgsql-5.3.3-3.el6.x86_64 ---> Package php-process.x86_64 0:5.3.3-3.el6 will be installed ---> Package php-pspell.x86_64 0:5.3.3-3.el6 will be installed --> Processing Dependency: libaspell.so.15()(64bit) for package: php-pspell-5.3.3-3.el6.x86_64 --> Processing Dependency: libpspell.so.15()(64bit) for package: php-pspell-5.3.3-3.el6.x86_64 ---> Package php-recode.x86_64 0:5.3.3-3.el6 will be installed --> Processing Dependency: librecode.so.0()(64bit) for package: php-recode-5.3.3-3.el6.x86_64 ---> Package php-snmp.x86_64 0:5.3.3-3.el6 will be installed --> Processing Dependency: net-snmp for package: php-snmp-5.3.3-3.el6.x86_64 --> Processing Dependency: libnetsnmp.so.20()(64bit) for package: php-snmp-5.3.3-3.el6.x86_64 ---> Package php-soap.x86_64 0:5.3.3-3.el6 will be installed ---> Package php-tidy.x86_64 0:5.3.3-3.el6 will be installed --> Processing Dependency: libtidy-0.99.so.0()(64bit) for package: php-tidy-5.3.3-3.el6.x86_64 ---> Package php-xml.x86_64 0:5.3.3-3.el6 will be installed --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: php-xml-5.3.3-3.el6.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: php-xml-5.3.3-3.el6.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: php-xml-5.3.3-3.el6.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: php-xml-5.3.3-3.el6.x86_64 --> Processing Dependency: libxslt.so.1()(64bit) for package: php-xml-5.3.3-3.el6.x86_64 --> Processing Dependency: libexslt.so.0()(64bit) for package: php-xml-5.3.3-3.el6.x86_64 ---> Package php-xmlrpc.x86_64 0:5.3.3-3.el6 will be installed ---> Package php-zts.x86_64 0:5.3.3-3.el6 will be installed --> Running transaction check ---> Package aspell.x86_64 12:0.60.6-12.el6 will be installed ---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed ---> Package automake.noarch 0:1.11.1-1.2.el6 will be installed ---> Package enchant.x86_64 1:1.5.0-4.el6 will be installed --> Processing Dependency: libhunspell-1.2.so.0()(64bit) for package: 1:enchant-1.5.0-4.el6.x86_64 ---> Package freetype.x86_64 0:2.3.11-6.el6_1.6 will be installed ---> Package libX11.x86_64 0:1.3-2.el6 will be installed --> Processing Dependency: libX11-common = 1.3-2.el6 for package: libX11-1.3-2.el6.x86_64 --> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.3-2.el6.x86_64 ---> Package libXpm.x86_64 0:3.5.8-2.el6 will be installed ---> Package libc-client.x86_64 0:2007e-11.el6 will be installed ---> Package libjpeg.x86_64 0:6b-46.el6 will be installed ---> Package libpng.x86_64 2:1.2.46-1.el6_1 will be installed ---> Package libtidy.x86_64 0:0.99.0-19.20070615.1.el6 will be installed ---> Package libxslt.x86_64 0:1.1.26-2.el6 will be installed ---> Package net-snmp.x86_64 1:5.5-31.el6 will be installed --> Processing Dependency: libsensors.so.4()(64bit) for package: 1:net-snmp-5.5-31.el6.x86_64 ---> Package net-snmp-libs.x86_64 1:5.5-31.el6 will be installed ---> Package postgresql-libs.x86_64 0:8.4.7-2.el6 will be installed ---> Package recode.x86_64 0:3.6-28.1.el6 will be installed ---> Package unixODBC.x86_64 0:2.2.14-11.el6 will be installed --> Processing Dependency: libltdl.so.7()(64bit) for package: unixODBC-2.2.14-11.el6.x86_64 --> Running transaction check ---> Package hunspell.x86_64 0:1.2.8-16.el6 will be installed ---> Package libX11-common.noarch 0:1.3-2.el6 will be installed ---> Package libtool-ltdl.x86_64 0:2.2.6-15.5.el6 will be installed ---> Package libxcb.x86_64 0:1.5-1.el6 will be installed --> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.5-1.el6.x86_64 ---> Package lm_sensors-libs.x86_64 0:3.1.1-10.el6 will be installed --> Running transaction check ---> Package libXau.x86_64 0:1.0.5-1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================== Package Arch Version Repository Size ======================================================================================================== Installing: php x86_64 5.3.3-3.el6 sl 1.1 M php-bcmath x86_64 5.3.3-3.el6 sl 31 k php-cli x86_64 5.3.3-3.el6 sl 2.2 M php-common x86_64 5.3.3-3.el6 sl 520 k php-dba x86_64 5.3.3-3.el6 sl 37 k php-devel x86_64 5.3.3-3.el6 sl 503 k php-embedded x86_64 5.3.3-3.el6 sl 1.1 M php-enchant x86_64 5.3.3-3.el6 sl 25 k php-gd x86_64 5.3.3-3.el6 sl 102 k php-imap x86_64 5.3.3-3.el6 sl 46 k php-intl x86_64 5.3.3-3.el6 sl 67 k php-ldap x86_64 5.3.3-3.el6 sl 34 k php-mbstring x86_64 5.3.3-3.el6 sl 451 k php-mysql x86_64 5.3.3-3.el6 sl 77 k php-odbc x86_64 5.3.3-3.el6 sl 47 k php-pdo x86_64 5.3.3-3.el6 sl 71 k php-pear noarch 1:1.9.0-2.el6 sl 390 k php-pecl-apc x86_64 3.1.3p1-1.2.el6.1 sl 92 k php-pecl-memcache x86_64 3.0.5-3.el6 sl 59 k php-pgsql x86_64 5.3.3-3.el6 sl 66 k php-process x86_64 5.3.3-3.el6 sl 35 k php-pspell x86_64 5.3.3-3.el6 sl 24 k php-recode x86_64 5.3.3-3.el6 sl 21 k php-snmp x86_64 5.3.3-3.el6 sl 27 k php-soap x86_64 5.3.3-3.el6 sl 136 k php-tidy x86_64 5.3.3-3.el6 sl 32 k php-xml x86_64 5.3.3-3.el6 sl 98 k php-xmlrpc x86_64 5.3.3-3.el6 sl 48 k php-zts x86_64 5.3.3-3.el6 sl 1.2 M Installing for dependencies: aspell x86_64 12:0.60.6-12.el6 sl 647 k autoconf noarch 2.63-5.1.el6 sl 780 k automake noarch 1.11.1-1.2.el6 sl 549 k enchant x86_64 1:1.5.0-4.el6 sl 48 k freetype x86_64 2.3.11-6.el6_1.6 sl-security 357 k hunspell x86_64 1.2.8-16.el6 sl 176 k libX11 x86_64 1.3-2.el6 sl 581 k libX11-common noarch 1.3-2.el6 sl 187 k libXau x86_64 1.0.5-1.el6 sl 21 k libXpm x86_64 3.5.8-2.el6 sl 58 k libc-client x86_64 2007e-11.el6 sl 514 k libjpeg x86_64 6b-46.el6 sl 133 k libpng x86_64 2:1.2.46-1.el6_1 sl-security 180 k libtidy x86_64 0.99.0-19.20070615.1.el6 sl 126 k libtool-ltdl x86_64 2.2.6-15.5.el6 sl 43 k libxcb x86_64 1.5-1.el6 sl 99 k libxslt x86_64 1.1.26-2.el6 sl 449 k lm_sensors-libs x86_64 3.1.1-10.el6 sl 36 k net-snmp x86_64 1:5.5-31.el6 sl 297 k net-snmp-libs x86_64 1:5.5-31.el6 sl 1.5 M postgresql-libs x86_64 8.4.7-2.el6 sl 192 k recode x86_64 3.6-28.1.el6 sl 711 k unixODBC x86_64 2.2.14-11.el6 sl 378 k Transaction Summary ======================================================================================================== Install 52 Package(s) Total download size: 16 M Installed size: 57 M Is this ok [y/N]: y Downloading Packages: (1/52): aspell-0.60.6-12.el6.x86_64.rpm | 647 kB 00:00 (2/52): autoconf-2.63-5.1.el6.noarch.rpm | 780 kB 00:01 (3/52): automake-1.11.1-1.2.el6.noarch.rpm | 549 kB 00:00 (4/52): enchant-1.5.0-4.el6.x86_64.rpm | 48 kB 00:00 (5/52): freetype-2.3.11-6.el6_1.6.x86_64.rpm | 357 kB 00:00 (6/52): hunspell-1.2.8-16.el6.x86_64.rpm | 176 kB 00:00 (7/52): libX11-1.3-2.el6.x86_64.rpm | 581 kB 00:01 (8/52): libX11-common-1.3-2.el6.noarch.rpm | 187 kB 00:00 (9/52): libXau-1.0.5-1.el6.x86_64.rpm | 21 kB 00:00 (10/52): libXpm-3.5.8-2.el6.x86_64.rpm | 58 kB 00:00 (11/52): libc-client-2007e-11.el6.x86_64.rpm | 514 kB 00:00 (12/52): libjpeg-6b-46.el6.x86_64.rpm | 133 kB 00:00 (13/52): libpng-1.2.46-1.el6_1.x86_64.rpm | 180 kB 00:00 (14/52): libtidy-0.99.0-19.20070615.1.el6.x86_64.rpm | 126 kB 00:00 (15/52): libtool-ltdl-2.2.6-15.5.el6.x86_64.rpm | 43 kB 00:00 (16/52): libxcb-1.5-1.el6.x86_64.rpm | 99 kB 00:00 (17/52): libxslt-1.1.26-2.el6.x86_64.rpm | 449 kB 00:00 (18/52): lm_sensors-libs-3.1.1-10.el6.x86_64.rpm | 36 kB 00:00 (19/52): net-snmp-5.5-31.el6.x86_64.rpm | 297 kB 00:00 (20/52): net-snmp-libs-5.5-31.el6.x86_64.rpm | 1.5 MB 00:00 (21/52): php-5.3.3-3.el6.x86_64.rpm | 1.1 MB 00:02 (22/52): php-bcmath-5.3.3-3.el6.x86_64.rpm | 31 kB 00:00 (23/52): php-cli-5.3.3-3.el6.x86_64.rpm | 2.2 MB 00:03 (24/52): php-common-5.3.3-3.el6.x86_64.rpm | 520 kB 00:00 (25/52): php-dba-5.3.3-3.el6.x86_64.rpm | 37 kB 00:00 (26/52): php-devel-5.3.3-3.el6.x86_64.rpm | 503 kB 00:00 (27/52): php-embedded-5.3.3-3.el6.x86_64.rpm | 1.1 MB 00:00 (28/52): php-enchant-5.3.3-3.el6.x86_64.rpm | 25 kB 00:00 (29/52): php-gd-5.3.3-3.el6.x86_64.rpm | 102 kB 00:00 (30/52): php-imap-5.3.3-3.el6.x86_64.rpm | 46 kB 00:00 (31/52): php-intl-5.3.3-3.el6.x86_64.rpm | 67 kB 00:00 (32/52): php-ldap-5.3.3-3.el6.x86_64.rpm | 34 kB 00:00 (33/52): php-mbstring-5.3.3-3.el6.x86_64.rpm | 451 kB 00:00 (34/52): php-mysql-5.3.3-3.el6.x86_64.rpm | 77 kB 00:00 (35/52): php-odbc-5.3.3-3.el6.x86_64.rpm | 47 kB 00:00 (36/52): php-pdo-5.3.3-3.el6.x86_64.rpm | 71 kB 00:00 (37/52): php-pear-1.9.0-2.el6.noarch.rpm | 390 kB 00:00 (38/52): php-pecl-apc-3.1.3p1-1.2.el6.1.x86_64.rpm | 92 kB 00:00 (39/52): php-pecl-memcache-3.0.5-3.el6.x86_64.rpm | 59 kB 00:00 (40/52): php-pgsql-5.3.3-3.el6.x86_64.rpm | 66 kB 00:00 (41/52): php-process-5.3.3-3.el6.x86_64.rpm | 35 kB 00:00 (42/52): php-pspell-5.3.3-3.el6.x86_64.rpm | 24 kB 00:00 (43/52): php-recode-5.3.3-3.el6.x86_64.rpm | 21 kB 00:00 (44/52): php-snmp-5.3.3-3.el6.x86_64.rpm | 27 kB 00:00 (45/52): php-soap-5.3.3-3.el6.x86_64.rpm | 136 kB 00:00 (46/52): php-tidy-5.3.3-3.el6.x86_64.rpm | 32 kB 00:00 (47/52): php-xml-5.3.3-3.el6.x86_64.rpm | 98 kB 00:00 (48/52): php-xmlrpc-5.3.3-3.el6.x86_64.rpm | 48 kB 00:00 (49/52): php-zts-5.3.3-3.el6.x86_64.rpm | 1.2 MB 00:01 (50/52): postgresql-libs-8.4.7-2.el6.x86_64.rpm | 192 kB 00:00 (51/52): recode-3.6-28.1.el6.x86_64.rpm | 711 kB 00:01 (52/52): unixODBC-2.2.14-11.el6.x86_64.rpm | 378 kB 00:00 -------------------------------------------------------------------------------------------------------- Total 607 kB/s | 16 MB 00:27 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : php-common-5.3.3-3.el6.x86_64 1/52 Installing : php-pdo-5.3.3-3.el6.x86_64 2/52 Installing : php-cli-5.3.3-3.el6.x86_64 3/52 Installing : 1:php-pear-1.9.0-2.el6.noarch 4/52 Installing : lm_sensors-libs-3.1.1-10.el6.x86_64 5/52 Installing : 1:net-snmp-libs-5.5-31.el6.x86_64 6/52 Installing : autoconf-2.63-5.1.el6.noarch 7/52 Installing : automake-1.11.1-1.2.el6.noarch 8/52 Installing : 1:net-snmp-5.5-31.el6.x86_64 9/52 Installing : php-5.3.3-3.el6.x86_64 10/52 Installing : postgresql-libs-8.4.7-2.el6.x86_64 11/52 Installing : libXau-1.0.5-1.el6.x86_64 12/52 Installing : libxcb-1.5-1.el6.x86_64 13/52 Installing : libjpeg-6b-46.el6.x86_64 14/52 Installing : recode-3.6-28.1.el6.x86_64 15/52 Installing : 2:libpng-1.2.46-1.el6_1.x86_64 16/52 Installing : freetype-2.3.11-6.el6_1.6.x86_64 17/52 Installing : libX11-common-1.3-2.el6.noarch 18/52 Installing : libX11-1.3-2.el6.x86_64 19/52 Installing : libXpm-3.5.8-2.el6.x86_64 20/52 Installing : 12:aspell-0.60.6-12.el6.x86_64 21/52 Installing : libxslt-1.1.26-2.el6.x86_64 22/52 Installing : libc-client-2007e-11.el6.x86_64 23/52 Installing : libtidy-0.99.0-19.20070615.1.el6.x86_64 24/52 Installing : libtool-ltdl-2.2.6-15.5.el6.x86_64 25/52 Installing : unixODBC-2.2.14-11.el6.x86_64 26/52 Installing : hunspell-1.2.8-16.el6.x86_64 27/52 Installing : 1:enchant-1.5.0-4.el6.x86_64 28/52 Installing : php-enchant-5.3.3-3.el6.x86_64 29/52 Installing : php-odbc-5.3.3-3.el6.x86_64 30/52 Installing : php-tidy-5.3.3-3.el6.x86_64 31/52 Installing : php-imap-5.3.3-3.el6.x86_64 32/52 Installing : php-xml-5.3.3-3.el6.x86_64 33/52 Installing : php-pspell-5.3.3-3.el6.x86_64 34/52 Installing : php-gd-5.3.3-3.el6.x86_64 35/52 Installing : php-recode-5.3.3-3.el6.x86_64 36/52 Installing : php-pgsql-5.3.3-3.el6.x86_64 37/52 Installing : php-devel-5.3.3-3.el6.x86_64 38/52 Installing : php-snmp-5.3.3-3.el6.x86_64 39/52 Installing : php-pecl-apc-3.1.3p1-1.2.el6.1.x86_64 40/52 Installing : php-pecl-memcache-3.0.5-3.el6.x86_64 41/52 Installing : php-mysql-5.3.3-3.el6.x86_64 42/52 Installing : php-mbstring-5.3.3-3.el6.x86_64 43/52 Installing : php-dba-5.3.3-3.el6.x86_64 44/52 Installing : php-ldap-5.3.3-3.el6.x86_64 45/52 Installing : php-bcmath-5.3.3-3.el6.x86_64 46/52 Installing : php-xmlrpc-5.3.3-3.el6.x86_64 47/52 Installing : php-process-5.3.3-3.el6.x86_64 48/52 Installing : php-intl-5.3.3-3.el6.x86_64 49/52 Installing : php-soap-5.3.3-3.el6.x86_64 50/52 Installing : php-embedded-5.3.3-3.el6.x86_64 51/52 Installing : php-zts-5.3.3-3.el6.x86_64 52/52 Installed: php.x86_64 0:5.3.3-3.el6 php-bcmath.x86_64 0:5.3.3-3.el6 php-cli.x86_64 0:5.3.3-3.el6 php-common.x86_64 0:5.3.3-3.el6 php-dba.x86_64 0:5.3.3-3.el6 php-devel.x86_64 0:5.3.3-3.el6 php-embedded.x86_64 0:5.3.3-3.el6 php-enchant.x86_64 0:5.3.3-3.el6 php-gd.x86_64 0:5.3.3-3.el6 php-imap.x86_64 0:5.3.3-3.el6 php-intl.x86_64 0:5.3.3-3.el6 php-ldap.x86_64 0:5.3.3-3.el6 php-mbstring.x86_64 0:5.3.3-3.el6 php-mysql.x86_64 0:5.3.3-3.el6 php-odbc.x86_64 0:5.3.3-3.el6 php-pdo.x86_64 0:5.3.3-3.el6 php-pear.noarch 1:1.9.0-2.el6 php-pecl-apc.x86_64 0:3.1.3p1-1.2.el6.1 php-pecl-memcache.x86_64 0:3.0.5-3.el6 php-pgsql.x86_64 0:5.3.3-3.el6 php-process.x86_64 0:5.3.3-3.el6 php-pspell.x86_64 0:5.3.3-3.el6 php-recode.x86_64 0:5.3.3-3.el6 php-snmp.x86_64 0:5.3.3-3.el6 php-soap.x86_64 0:5.3.3-3.el6 php-tidy.x86_64 0:5.3.3-3.el6 php-xml.x86_64 0:5.3.3-3.el6 php-xmlrpc.x86_64 0:5.3.3-3.el6 php-zts.x86_64 0:5.3.3-3.el6 Dependency Installed: aspell.x86_64 12:0.60.6-12.el6 autoconf.noarch 0:2.63-5.1.el6 automake.noarch 0:1.11.1-1.2.el6 enchant.x86_64 1:1.5.0-4.el6 freetype.x86_64 0:2.3.11-6.el6_1.6 hunspell.x86_64 0:1.2.8-16.el6 libX11.x86_64 0:1.3-2.el6 libX11-common.noarch 0:1.3-2.el6 libXau.x86_64 0:1.0.5-1.el6 libXpm.x86_64 0:3.5.8-2.el6 libc-client.x86_64 0:2007e-11.el6 libjpeg.x86_64 0:6b-46.el6 libpng.x86_64 2:1.2.46-1.el6_1 libtidy.x86_64 0:0.99.0-19.20070615.1.el6 libtool-ltdl.x86_64 0:2.2.6-15.5.el6 libxcb.x86_64 0:1.5-1.el6 libxslt.x86_64 0:1.1.26-2.el6 lm_sensors-libs.x86_64 0:3.1.1-10.el6 net-snmp.x86_64 1:5.5-31.el6 net-snmp-libs.x86_64 1:5.5-31.el6 postgresql-libs.x86_64 0:8.4.7-2.el6 recode.x86_64 0:3.6-28.1.el6 unixODBC.x86_64 0:2.2.14-11.el6 Complete!
(2) PHPの設定(/etc/php.ini)の設定
インストール時のphp.iniと設定終了時の差分(diff commandの出力)を以下に掲げる。
[root@yamasserver01 ~]#diff /etc/php.ini /etc/php.ini.bak 886,887c886 < allow_url_fopen = Off < --- > allow_url_fopen = On 947c946 < date.timezone = 'Asia/Tokyo' --- > ;date.timezone =
MySQL のインストールと起動:
(1) yum によるMySQLのインストール
[root@yamasserver01 ~]# yum install mysql\* Setting up Install Process Package mysql-libs-5.1.52-1.el6_0.1.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package mysql.x86_64 0:5.1.52-1.el6_0.1 will be installed ---> Package mysql-bench.x86_64 0:5.1.52-1.el6_0.1 will be installed --> Processing Dependency: perl(DBI) for package: mysql-bench-5.1.52-1.el6_0.1.x86_64 ---> Package mysql-connector-java.x86_64 1:5.1.12-2.el6 will be installed --> Processing Dependency: java-gcj-compat >= 1.0.31 for package: 1:mysql-connector-java-5.1.12-2.el6.x86_64 --> Processing Dependency: java-gcj-compat >= 1.0.31 for package: 1:mysql-connector-java-5.1.12-2.el6.x86_64 --> Processing Dependency: jta >= 1.0 for package: 1:mysql-connector-java-5.1.12-2.el6.x86_64 --> Processing Dependency: jpackage-utils for package: 1:mysql-connector-java-5.1.12-2.el6.x86_64 --> Processing Dependency: jpackage-utils for package: 1:mysql-connector-java-5.1.12-2.el6.x86_64 --> Processing Dependency: log4j for package: 1:mysql-connector-java-5.1.12-2.el6.x86_64 --> Processing Dependency: libgcj_bc.so.1()(64bit) for package: 1:mysql-connector-java-5.1.12-2.el6.x86_64 ---> Package mysql-connector-odbc.x86_64 0:5.1.5r1144-7.el6 will be installed ---> Package mysql-devel.x86_64 0:5.1.52-1.el6_0.1 will be installed --> Processing Dependency: openssl-devel for package: mysql-devel-5.1.52-1.el6_0.1.x86_64 ---> Package mysql-embedded.x86_64 0:5.1.52-1.el6_0.1 will be installed ---> Package mysql-embedded-devel.x86_64 0:5.1.52-1.el6_0.1 will be installed ---> Package mysql-server.x86_64 0:5.1.52-1.el6_0.1 will be installed --> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.52-1.el6_0.1.x86_64 ---> Package mysql-test.x86_64 0:5.1.52-1.el6_0.1 will be installed --> Processing Dependency: perl(Time::HiRes) for package: mysql-test-5.1.52-1.el6_0.1.x86_64 --> Running transaction check ---> Package geronimo-specs-compat.noarch 0:1.0-3.4.M2.el6 will be installed --> Processing Dependency: geronimo-specs = 1.0-3.4.M2.el6 for package: geronimo-specs-compat-1.0-3.4.M2.el6.noarch ---> Package java-1.5.0-gcj.x86_64 0:1.5.0.0-29.1.el6 will be installed sl/filelists_db | 5.0 MB 00:05 sl-security/filelists_db | 1.1 MB 00:00 --> Processing Dependency: sinjdoc for package: java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64 ---> Package jpackage-utils.noarch 0:1.7.5-3.12.el6 will be installed ---> Package libgcj.x86_64 0:4.4.5-6.el6 will be installed --> Processing Dependency: zip >= 2.1 for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libart_lgpl >= 2.1.0 for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: gtk2 >= 2.4.0 for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libasound.so.2(ALSA_0.9)(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libXrandr.so.2()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libpangocairo-1.0.so.0()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libfontconfig.so.1()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libgdk_pixbuf-2.0.so.0()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libgtk-x11-2.0.so.0()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libICE.so.6()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libpangoft2-1.0.so.0()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libcairo.so.2()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libXtst.so.6()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libpango-1.0.so.0()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libXrender.so.1()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libasound.so.2()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libatk-1.0.so.0()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libgdk-x11-2.0.so.0()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 --> Processing Dependency: libSM.so.6()(64bit) for package: libgcj-4.4.5-6.el6.x86_64 ---> Package log4j.x86_64 0:1.2.14-6.4.el6 will be installed --> Processing Dependency: xml-commons-apis for package: log4j-1.2.14-6.4.el6.x86_64 ---> Package openssl-devel.x86_64 0:1.0.0-10.el6 will be installed --> Processing Dependency: zlib-devel for package: openssl-devel-1.0.0-10.el6.x86_64 --> Processing Dependency: krb5-devel for package: openssl-devel-1.0.0-10.el6.x86_64 ---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed ---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed ---> Package perl-Time-HiRes.x86_64 4:1.9721-119.el6 will be installed --> Running transaction check ---> Package alsa-lib.x86_64 0:1.0.21-3.el6 will be installed ---> Package atk.x86_64 0:1.28.0-2.el6 will be installed ---> Package cairo.x86_64 0:1.8.8-3.1.el6 will be installed --> Processing Dependency: libpixman-1.so.0()(64bit) for package: cairo-1.8.8-3.1.el6.x86_64 ---> Package fontconfig.x86_64 0:2.8.0-3.el6 will be installed ---> Package geronimo-specs.noarch 0:1.0-3.4.M2.el6 will be installed --> Processing Dependency: mx4j >= 2.0.1 for package: geronimo-specs-1.0-3.4.M2.el6.noarch --> Processing Dependency: apache-tomcat-apis for package: geronimo-specs-1.0-3.4.M2.el6.noarch ---> Package gtk2.x86_64 0:2.18.9-6.el6 will be installed --> Processing Dependency: libtiff >= 3.6.1 for package: gtk2-2.18.9-6.el6.x86_64 --> Processing Dependency: hicolor-icon-theme for package: gtk2-2.18.9-6.el6.x86_64 --> Processing Dependency: libjasper.so.1()(64bit) for package: gtk2-2.18.9-6.el6.x86_64 --> Processing Dependency: libXcomposite.so.1()(64bit) for package: gtk2-2.18.9-6.el6.x86_64 --> Processing Dependency: libXinerama.so.1()(64bit) for package: gtk2-2.18.9-6.el6.x86_64 --> Processing Dependency: libtiff.so.3()(64bit) for package: gtk2-2.18.9-6.el6.x86_64 --> Processing Dependency: libXdamage.so.1()(64bit) for package: gtk2-2.18.9-6.el6.x86_64 --> Processing Dependency: libXfixes.so.3()(64bit) for package: gtk2-2.18.9-6.el6.x86_64 --> Processing Dependency: libcups.so.2()(64bit) for package: gtk2-2.18.9-6.el6.x86_64 --> Processing Dependency: libXi.so.6()(64bit) for package: gtk2-2.18.9-6.el6.x86_64 --> Processing Dependency: libXext.so.6()(64bit) for package: gtk2-2.18.9-6.el6.x86_64 --> Processing Dependency: libXcursor.so.1()(64bit) for package: gtk2-2.18.9-6.el6.x86_64 ---> Package krb5-devel.x86_64 0:1.9-9.el6_1.1 will be installed --> Processing Dependency: libselinux-devel for package: krb5-devel-1.9-9.el6_1.1.x86_64 --> Processing Dependency: libcom_err-devel for package: krb5-devel-1.9-9.el6_1.1.x86_64 --> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.9-9.el6_1.1.x86_64 ---> Package libICE.x86_64 0:1.0.6-1.el6 will be installed ---> Package libSM.x86_64 0:1.1.0-7.1.el6 will be installed ---> Package libXrandr.x86_64 0:1.3.0-4.el6 will be installed ---> Package libXrender.x86_64 0:0.9.5-1.el6 will be installed ---> Package libXtst.x86_64 0:1.0.99.2-3.el6 will be installed ---> Package libart_lgpl.x86_64 0:2.3.20-5.1.el6 will be installed ---> Package pango.x86_64 0:1.28.1-3.el6_0.5 will be installed --> Processing Dependency: libthai >= 0.1.9 for package: pango-1.28.1-3.el6_0.5.x86_64 --> Processing Dependency: libthai.so.0(LIBTHAI_0.1)(64bit) for package: pango-1.28.1-3.el6_0.5.x86_64 --> Processing Dependency: libthai.so.0()(64bit) for package: pango-1.28.1-3.el6_0.5.x86_64 --> Processing Dependency: libXft.so.2()(64bit) for package: pango-1.28.1-3.el6_0.5.x86_64 ---> Package sinjdoc.x86_64 0:0.5-9.1.el6 will be installed --> Processing Dependency: java_cup >= 0.10 for package: sinjdoc-0.5-9.1.el6.x86_64 ---> Package xml-commons-apis.x86_64 0:1.3.04-3.6.el6 will be installed ---> Package zip.x86_64 0:3.0-1.el6 will be installed ---> Package zlib-devel.x86_64 0:1.2.3-25.el6 will be installed --> Running transaction check ---> Package apache-tomcat-apis.noarch 0:0.1-1.el6 will be installed ---> Package cups-libs.x86_64 1:1.4.2-39.el6 will be installed --> Processing Dependency: libgnutls.so.26(GNUTLS_1_4)(64bit) for package: 1:cups-libs-1.4.2-39.el6.x86_64 --> Processing Dependency: libavahi-client.so.3()(64bit) for package: 1:cups-libs-1.4.2-39.el6.x86_64 --> Processing Dependency: libavahi-common.so.3()(64bit) for package: 1:cups-libs-1.4.2-39.el6.x86_64 --> Processing Dependency: libgnutls.so.26()(64bit) for package: 1:cups-libs-1.4.2-39.el6.x86_64 ---> Package hicolor-icon-theme.noarch 0:0.11-1.1.el6 will be installed ---> Package jasper-libs.x86_64 0:1.900.1-15.el6 will be installed ---> Package java_cup.x86_64 1:0.10k-5.el6 will be installed ---> Package keyutils-libs-devel.x86_64 0:1.4-1.el6 will be installed ---> Package libXcomposite.x86_64 0:0.4.1-2.el6 will be installed ---> Package libXcursor.x86_64 0:1.1.10-2.el6 will be installed ---> Package libXdamage.x86_64 0:1.1.2-1.el6 will be installed ---> Package libXext.x86_64 0:1.1-3.el6 will be installed ---> Package libXfixes.x86_64 0:4.0.4-1.el6 will be installed ---> Package libXft.x86_64 0:2.1.13-4.1.el6 will be installed ---> Package libXi.x86_64 0:1.3-3.el6 will be installed ---> Package libXinerama.x86_64 0:1.1-1.el6 will be installed ---> Package libcom_err-devel.x86_64 0:1.41.12-7.el6 will be installed ---> Package libselinux-devel.x86_64 0:2.0.94-5.el6 will be installed --> Processing Dependency: libsepol-devel >= 2.0.32-1 for package: libselinux-devel-2.0.94-5.el6.x86_64 --> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.0.94-5.el6.x86_64 ---> Package libthai.x86_64 0:0.1.12-3.el6 will be installed ---> Package libtiff.x86_64 0:3.9.4-1.el6_0.3 will be installed ---> Package mx4j.noarch 1:3.0.1-9.13.el6 will be installed --> Processing Dependency: axis >= 1.1 for package: 1:mx4j-3.0.1-9.13.el6.noarch --> Processing Dependency: bcel >= 5.0 for package: 1:mx4j-3.0.1-9.13.el6.noarch --> Processing Dependency: jakarta-commons-logging >= 1.0.1 for package: 1:mx4j-3.0.1-9.13.el6.noarch --> Processing Dependency: javamail >= 1.2-5jpp for package: 1:mx4j-3.0.1-9.13.el6.noarch --> Processing Dependency: jaf for package: 1:mx4j-3.0.1-9.13.el6.noarch --> Processing Dependency: xml-commons-resolver for package: 1:mx4j-3.0.1-9.13.el6.noarch ---> Package pixman.x86_64 0:0.18.4-1.el6_0.1 will be installed --> Running transaction check ---> Package avahi-libs.x86_64 0:0.6.25-11.el6 will be installed ---> Package axis.noarch 0:1.2.1-7.2.el6 will be installed --> Processing Dependency: jakarta-commons-httpclient for package: axis-1.2.1-7.2.el6.noarch --> Processing Dependency: jakarta-commons-discovery for package: axis-1.2.1-7.2.el6.noarch --> Processing Dependency: wsdl4j for package: axis-1.2.1-7.2.el6.noarch ---> Package bcel.x86_64 0:5.2-7.2.el6 will be installed --> Processing Dependency: regexp for package: bcel-5.2-7.2.el6.x86_64 ---> Package classpathx-jaf.x86_64 0:1.0-15.4.el6 will be installed ---> Package classpathx-mail.noarch 0:1.1.1-9.4.el6 will be installed ---> Package gnutls.x86_64 0:2.8.5-4.el6 will be installed --> Processing Dependency: libtasn1.so.3(LIBTASN1_0_3)(64bit) for package: gnutls-2.8.5-4.el6.x86_64 --> Processing Dependency: libtasn1.so.3()(64bit) for package: gnutls-2.8.5-4.el6.x86_64 ---> Package jakarta-commons-logging.noarch 0:1.0.4-10.el6 will be installed ---> Package libsepol-devel.x86_64 0:2.0.41-3.el6 will be installed ---> Package xml-commons-resolver.x86_64 0:1.1-4.18.el6 will be installed --> Running transaction check ---> Package jakarta-commons-discovery.noarch 1:0.4-5.4.el6 will be installed ---> Package jakarta-commons-httpclient.x86_64 1:3.1-0.6.el6 will be installed ---> Package libtasn1.x86_64 0:2.3-3.el6 will be installed ---> Package regexp.x86_64 0:1.5-4.4.el6 will be installed ---> Package wsdl4j.noarch 0:1.5.2-7.8.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================== Package Arch Version Repository Size ======================================================================================================== Installing: mysql x86_64 5.1.52-1.el6_0.1 sl 888 k mysql-bench x86_64 5.1.52-1.el6_0.1 sl 425 k mysql-connector-java x86_64 1:5.1.12-2.el6 sl 2.1 M mysql-connector-odbc x86_64 5.1.5r1144-7.el6 sl 113 k mysql-devel x86_64 5.1.52-1.el6_0.1 sl 125 k mysql-embedded x86_64 5.1.52-1.el6_0.1 sl 2.4 M mysql-embedded-devel x86_64 5.1.52-1.el6_0.1 sl 4.8 M mysql-server x86_64 5.1.52-1.el6_0.1 sl 8.1 M mysql-test x86_64 5.1.52-1.el6_0.1 sl 5.1 M Installing for dependencies: alsa-lib x86_64 1.0.21-3.el6 sl 368 k apache-tomcat-apis noarch 0.1-1.el6 sl 163 k atk x86_64 1.28.0-2.el6 sl 190 k avahi-libs x86_64 0.6.25-11.el6 sl 53 k axis noarch 1.2.1-7.2.el6 sl 1.5 M bcel x86_64 5.2-7.2.el6 sl 1.4 M cairo x86_64 1.8.8-3.1.el6 sl 308 k classpathx-jaf x86_64 1.0-15.4.el6 sl 99 k classpathx-mail noarch 1.1.1-9.4.el6 sl 478 k cups-libs x86_64 1:1.4.2-39.el6 sl 314 k fontconfig x86_64 2.8.0-3.el6 sl 185 k geronimo-specs noarch 1.0-3.4.M2.el6 sl 109 k geronimo-specs-compat noarch 1.0-3.4.M2.el6 sl 6.0 k gnutls x86_64 2.8.5-4.el6 sl 342 k gtk2 x86_64 2.18.9-6.el6 sl 3.3 M hicolor-icon-theme noarch 0.11-1.1.el6 sl 39 k jakarta-commons-discovery noarch 1:0.4-5.4.el6 sl 72 k jakarta-commons-httpclient x86_64 1:3.1-0.6.el6 sl 579 k jakarta-commons-logging noarch 1.0.4-10.el6 sl 51 k jasper-libs x86_64 1.900.1-15.el6 sl 137 k java-1.5.0-gcj x86_64 1.5.0.0-29.1.el6 sl 138 k java_cup x86_64 1:0.10k-5.el6 sl 196 k jpackage-utils noarch 1.7.5-3.12.el6 sl 58 k keyutils-libs-devel x86_64 1.4-1.el6 sl 27 k krb5-devel x86_64 1.9-9.el6_1.1 sl-security 1.2 M libICE x86_64 1.0.6-1.el6 sl 52 k libSM x86_64 1.1.0-7.1.el6 sl 25 k libXcomposite x86_64 0.4.1-2.el6 sl 16 k libXcursor x86_64 1.1.10-2.el6 sl 31 k libXdamage x86_64 1.1.2-1.el6 sl 15 k libXext x86_64 1.1-3.el6 sl 32 k libXfixes x86_64 4.0.4-1.el6 sl 19 k libXft x86_64 2.1.13-4.1.el6 sl 48 k libXi x86_64 1.3-3.el6 sl 31 k libXinerama x86_64 1.1-1.el6 sl 14 k libXrandr x86_64 1.3.0-4.el6 sl 29 k libXrender x86_64 0.9.5-1.el6 sl 26 k libXtst x86_64 1.0.99.2-3.el6 sl 21 k libart_lgpl x86_64 2.3.20-5.1.el6 sl 64 k libcom_err-devel x86_64 1.41.12-7.el6 sl 29 k libgcj x86_64 4.4.5-6.el6 sl 18 M libselinux-devel x86_64 2.0.94-5.el6 sl 134 k libsepol-devel x86_64 2.0.41-3.el6 sl 63 k libtasn1 x86_64 2.3-3.el6 sl 237 k libthai x86_64 0.1.12-3.el6 sl 182 k libtiff x86_64 3.9.4-1.el6_0.3 sl 342 k log4j x86_64 1.2.14-6.4.el6 sl 678 k mx4j noarch 1:3.0.1-9.13.el6 sl 1.1 M openssl-devel x86_64 1.0.0-10.el6 sl 1.1 M pango x86_64 1.28.1-3.el6_0.5 sl 350 k perl-DBD-MySQL x86_64 4.013-3.el6 sl 133 k perl-DBI x86_64 1.609-4.el6 sl 704 k perl-Time-HiRes x86_64 4:1.9721-119.el6 sl 45 k pixman x86_64 0.18.4-1.el6_0.1 sl 146 k regexp x86_64 1.5-4.4.el6 sl 104 k sinjdoc x86_64 0.5-9.1.el6 sl 704 k wsdl4j noarch 1.5.2-7.8.el6 sl 156 k xml-commons-apis x86_64 1.3.04-3.6.el6 sl 438 k xml-commons-resolver x86_64 1.1-4.18.el6 sl 144 k zip x86_64 3.0-1.el6 sl 259 k zlib-devel x86_64 1.2.3-25.el6 sl 42 k Transaction Summary ======================================================================================================== Install 70 Package(s) Total download size: 61 M Installed size: 278 M Is this ok [y/N]: y Downloading Packages: (1/70): alsa-lib-1.0.21-3.el6.x86_64.rpm | 368 kB 00:00 (2/70): apache-tomcat-apis-0.1-1.el6.noarch.rpm | 163 kB 00:00 (3/70): atk-1.28.0-2.el6.x86_64.rpm | 190 kB 00:00 (4/70): avahi-libs-0.6.25-11.el6.x86_64.rpm | 53 kB 00:00 (5/70): axis-1.2.1-7.2.el6.noarch.rpm | 1.5 MB 00:01 (6/70): bcel-5.2-7.2.el6.x86_64.rpm | 1.4 MB 00:01 (7/70): cairo-1.8.8-3.1.el6.x86_64.rpm | 308 kB 00:00 (8/70): classpathx-jaf-1.0-15.4.el6.x86_64.rpm | 99 kB 00:00 (9/70): classpathx-mail-1.1.1-9.4.el6.noarch.rpm | 478 kB 00:00 (10/70): cups-libs-1.4.2-39.el6.x86_64.rpm | 314 kB 00:00 (11/70): fontconfig-2.8.0-3.el6.x86_64.rpm | 185 kB 00:00 (12/70): geronimo-specs-1.0-3.4.M2.el6.noarch.rpm | 109 kB 00:00 (13/70): geronimo-specs-compat-1.0-3.4.M2.el6.noarch.rpm | 6.0 kB 00:00 (14/70): gnutls-2.8.5-4.el6.x86_64.rpm | 342 kB 00:00 (15/70): gtk2-2.18.9-6.el6.x86_64.rpm | 3.3 MB 00:03 (16/70): hicolor-icon-theme-0.11-1.1.el6.noarch.rpm | 39 kB 00:00 (17/70): jakarta-commons-discovery-0.4-5.4.el6.noarch.rpm | 72 kB 00:00 (18/70): jakarta-commons-httpclient-3.1-0.6.el6.x86_64.rpm | 579 kB 00:00 (19/70): jakarta-commons-logging-1.0.4-10.el6.noarch.rpm | 51 kB 00:00 (20/70): jasper-libs-1.900.1-15.el6.x86_64.rpm | 137 kB 00:00 (21/70): java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64.rpm | 138 kB 00:00 (22/70): java_cup-0.10k-5.el6.x86_64.rpm | 196 kB 00:00 (23/70): jpackage-utils-1.7.5-3.12.el6.noarch.rpm | 58 kB 00:00 (24/70): keyutils-libs-devel-1.4-1.el6.x86_64.rpm | 27 kB 00:00 (25/70): krb5-devel-1.9-9.el6_1.1.x86_64.rpm | 1.2 MB 00:00 (26/70): libICE-1.0.6-1.el6.x86_64.rpm | 52 kB 00:00 (27/70): libSM-1.1.0-7.1.el6.x86_64.rpm | 25 kB 00:00 (28/70): libXcomposite-0.4.1-2.el6.x86_64.rpm | 16 kB 00:00 (29/70): libXcursor-1.1.10-2.el6.x86_64.rpm | 31 kB 00:00 (30/70): libXdamage-1.1.2-1.el6.x86_64.rpm | 15 kB 00:00 (31/70): libXext-1.1-3.el6.x86_64.rpm | 32 kB 00:00 (32/70): libXfixes-4.0.4-1.el6.x86_64.rpm | 19 kB 00:00 (33/70): libXft-2.1.13-4.1.el6.x86_64.rpm | 48 kB 00:00 (34/70): libXi-1.3-3.el6.x86_64.rpm | 31 kB 00:00 (35/70): libXinerama-1.1-1.el6.x86_64.rpm | 14 kB 00:00 (36/70): libXrandr-1.3.0-4.el6.x86_64.rpm | 29 kB 00:00 (37/70): libXrender-0.9.5-1.el6.x86_64.rpm | 26 kB 00:00 (38/70): libXtst-1.0.99.2-3.el6.x86_64.rpm | 21 kB 00:00 (39/70): libart_lgpl-2.3.20-5.1.el6.x86_64.rpm | 64 kB 00:00 (40/70): libcom_err-devel-1.41.12-7.el6.x86_64.rpm | 29 kB 00:00 (41/70): libgcj-4.4.5-6.el6.x86_64.rpm | 18 MB 00:19 (42/70): libselinux-devel-2.0.94-5.el6.x86_64.rpm | 134 kB 00:00 (43/70): libsepol-devel-2.0.41-3.el6.x86_64.rpm | 63 kB 00:00 (44/70): libtasn1-2.3-3.el6.x86_64.rpm | 237 kB 00:00 (45/70): libthai-0.1.12-3.el6.x86_64.rpm | 182 kB 00:00 (46/70): libtiff-3.9.4-1.el6_0.3.x86_64.rpm | 342 kB 00:00 (47/70): log4j-1.2.14-6.4.el6.x86_64.rpm | 678 kB 00:00 (48/70): mx4j-3.0.1-9.13.el6.noarch.rpm | 1.1 MB 00:00 (49/70): mysql-5.1.52-1.el6_0.1.x86_64.rpm | 888 kB 00:00 (50/70): mysql-bench-5.1.52-1.el6_0.1.x86_64.rpm | 425 kB 00:00 (51/70): mysql-connector-java-5.1.12-2.el6.x86_64.rpm | 2.1 MB 00:02 (52/70): mysql-connector-odbc-5.1.5r1144-7.el6.x86_64.rpm | 113 kB 00:00 (53/70): mysql-devel-5.1.52-1.el6_0.1.x86_64.rpm | 125 kB 00:00 (54/70): mysql-embedded-5.1.52-1.el6_0.1.x86_64.rpm | 2.4 MB 00:02 (55/70): mysql-embedded-devel-5.1.52-1.el6_0.1.x86_64.rpm | 4.8 MB 00:07 (56/70): mysql-server-5.1.52-1.el6_0.1.x86_64.rpm | 8.1 MB 00:06 (57/70): mysql-test-5.1.52-1.el6_0.1.x86_64.rpm | 5.1 MB 00:05 (58/70): openssl-devel-1.0.0-10.el6.x86_64.rpm | 1.1 MB 00:01 (59/70): pango-1.28.1-3.el6_0.5.x86_64.rpm | 350 kB 00:00 (60/70): perl-DBD-MySQL-4.013-3.el6.x86_64.rpm | 133 kB 00:00 (61/70): perl-DBI-1.609-4.el6.x86_64.rpm | 704 kB 00:01 (62/70): perl-Time-HiRes-1.9721-119.el6.x86_64.rpm | 45 kB 00:00 (63/70): pixman-0.18.4-1.el6_0.1.x86_64.rpm | 146 kB 00:00 (64/70): regexp-1.5-4.4.el6.x86_64.rpm | 104 kB 00:00 (65/70): sinjdoc-0.5-9.1.el6.x86_64.rpm | 704 kB 00:00 (66/70): wsdl4j-1.5.2-7.8.el6.noarch.rpm | 156 kB 00:00 (67/70): xml-commons-apis-1.3.04-3.6.el6.x86_64.rpm | 438 kB 00:00 (68/70): xml-commons-resolver-1.1-4.18.el6.x86_64.rpm | 144 kB 00:00 (69/70): zip-3.0-1.el6.x86_64.rpm | 259 kB 00:00 (70/70): zlib-devel-1.2.3-25.el6.x86_64.rpm | 42 kB 00:00 -------------------------------------------------------------------------------------------------------- Total 830 kB/s | 61 MB 01:15 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : libXrender-0.9.5-1.el6.x86_64 1/70 Installing : jpackage-utils-1.7.5-3.12.el6.noarch 2/70 Installing : libXext-1.1-3.el6.x86_64 3/70 Installing : fontconfig-2.8.0-3.el6.x86_64 4/70 Installing : libXfixes-4.0.4-1.el6.x86_64 5/70 Installing : mysql-5.1.52-1.el6_0.1.x86_64 6/70 Installing : jakarta-commons-logging-1.0.4-10.el6.noarch 7/70 Installing : perl-DBI-1.609-4.el6.x86_64 8/70 Installing : libXrandr-1.3.0-4.el6.x86_64 9/70 Installing : libXi-1.3-3.el6.x86_64 10/70 Installing : libICE-1.0.6-1.el6.x86_64 11/70 Installing : atk-1.28.0-2.el6.x86_64 12/70 Installing : libtiff-3.9.4-1.el6_0.3.x86_64 13/70 Installing : libSM-1.1.0-7.1.el6.x86_64 14/70 Installing : libXtst-1.0.99.2-3.el6.x86_64 15/70 Installing : perl-DBD-MySQL-4.013-3.el6.x86_64 16/70 Installing : mysql-server-5.1.52-1.el6_0.1.x86_64 17/70 Installing : 1:jakarta-commons-discovery-0.4-5.4.el6.noarch 18/70 Installing : libXcomposite-0.4.1-2.el6.x86_64 19/70 Installing : libXcursor-1.1.10-2.el6.x86_64 20/70 Installing : libXdamage-1.1.2-1.el6.x86_64 21/70 Installing : libXft-2.1.13-4.1.el6.x86_64 22/70 Installing : libXinerama-1.1-1.el6.x86_64 23/70 Installing : apache-tomcat-apis-0.1-1.el6.noarch 24/70 Installing : zlib-devel-1.2.3-25.el6.x86_64 25/70 Installing : pixman-0.18.4-1.el6_0.1.x86_64 26/70 Installing : cairo-1.8.8-3.1.el6.x86_64 27/70 Installing : libsepol-devel-2.0.41-3.el6.x86_64 28/70 Installing : libselinux-devel-2.0.94-5.el6.x86_64 29/70 Installing : alsa-lib-1.0.21-3.el6.x86_64 30/70 Installing : mysql-embedded-5.1.52-1.el6_0.1.x86_64 31/70 Installing : libcom_err-devel-1.41.12-7.el6.x86_64 32/70 Installing : libtasn1-2.3-3.el6.x86_64 33/70 Installing : gnutls-2.8.5-4.el6.x86_64 34/70 Installing : jasper-libs-1.900.1-15.el6.x86_64 35/70 Installing : libthai-0.1.12-3.el6.x86_64 36/70 Installing : pango-1.28.1-3.el6_0.5.x86_64 37/70 Installing : hicolor-icon-theme-0.11-1.1.el6.noarch 38/70 Installing : avahi-libs-0.6.25-11.el6.x86_64 39/70 Installing : 1:cups-libs-1.4.2-39.el6.x86_64 40/70 Installing : gtk2-2.18.9-6.el6.x86_64 41/70 Installing : zip-3.0-1.el6.x86_64 42/70 Installing : keyutils-libs-devel-1.4-1.el6.x86_64 43/70 Installing : krb5-devel-1.9-9.el6_1.1.x86_64 44/70 Installing : openssl-devel-1.0.0-10.el6.x86_64 45/70 Installing : mysql-devel-5.1.52-1.el6_0.1.x86_64 46/70 Installing : libart_lgpl-2.3.20-5.1.el6.x86_64 47/70 Installing : libgcj-4.4.5-6.el6.x86_64 48/70 Installing : java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64 49/70 Installing : 1:java_cup-0.10k-5.el6.x86_64 50/70 Installing : sinjdoc-0.5-9.1.el6.x86_64 51/70 Installing : xml-commons-apis-1.3.04-3.6.el6.x86_64 52/70 Installing : log4j-1.2.14-6.4.el6.x86_64 53/70 Installing : classpathx-jaf-1.0-15.4.el6.x86_64 54/70 Installing : classpathx-mail-1.1.1-9.4.el6.noarch 55/70 Installing : xml-commons-resolver-1.1-4.18.el6.x86_64 56/70 Installing : wsdl4j-1.5.2-7.8.el6.noarch 57/70 Installing : regexp-1.5-4.4.el6.x86_64 58/70 Installing : bcel-5.2-7.2.el6.x86_64 59/70 Installing : 1:jakarta-commons-httpclient-3.1-0.6.el6.x86_64 60/70 Installing : axis-1.2.1-7.2.el6.noarch 61/70 Installing : 1:mx4j-3.0.1-9.13.el6.noarch 62/70 Installing : geronimo-specs-1.0-3.4.M2.el6.noarch 63/70 Installing : geronimo-specs-compat-1.0-3.4.M2.el6.noarch 64/70 Installing : 4:perl-Time-HiRes-1.9721-119.el6.x86_64 65/70 Installing : mysql-test-5.1.52-1.el6_0.1.x86_64 66/70 Installing : 1:mysql-connector-java-5.1.12-2.el6.x86_64 67/70 Installing : mysql-embedded-devel-5.1.52-1.el6_0.1.x86_64 68/70 Installing : mysql-bench-5.1.52-1.el6_0.1.x86_64 69/70 Installing : mysql-connector-odbc-5.1.5r1144-7.el6.x86_64 70/70 Installed: mysql.x86_64 0:5.1.52-1.el6_0.1 mysql-bench.x86_64 0:5.1.52-1.el6_0.1 mysql-connector-java.x86_64 1:5.1.12-2.el6 mysql-connector-odbc.x86_64 0:5.1.5r1144-7.el6 mysql-devel.x86_64 0:5.1.52-1.el6_0.1 mysql-embedded.x86_64 0:5.1.52-1.el6_0.1 mysql-embedded-devel.x86_64 0:5.1.52-1.el6_0.1 mysql-server.x86_64 0:5.1.52-1.el6_0.1 mysql-test.x86_64 0:5.1.52-1.el6_0.1 Dependency Installed: alsa-lib.x86_64 0:1.0.21-3.el6 apache-tomcat-apis.noarch 0:0.1-1.el6 atk.x86_64 0:1.28.0-2.el6 avahi-libs.x86_64 0:0.6.25-11.el6 axis.noarch 0:1.2.1-7.2.el6 bcel.x86_64 0:5.2-7.2.el6 cairo.x86_64 0:1.8.8-3.1.el6 classpathx-jaf.x86_64 0:1.0-15.4.el6 classpathx-mail.noarch 0:1.1.1-9.4.el6 cups-libs.x86_64 1:1.4.2-39.el6 fontconfig.x86_64 0:2.8.0-3.el6 geronimo-specs.noarch 0:1.0-3.4.M2.el6 geronimo-specs-compat.noarch 0:1.0-3.4.M2.el6 gnutls.x86_64 0:2.8.5-4.el6 gtk2.x86_64 0:2.18.9-6.el6 hicolor-icon-theme.noarch 0:0.11-1.1.el6 jakarta-commons-discovery.noarch 1:0.4-5.4.el6 jakarta-commons-httpclient.x86_64 1:3.1-0.6.el6 jakarta-commons-logging.noarch 0:1.0.4-10.el6 jasper-libs.x86_64 0:1.900.1-15.el6 java-1.5.0-gcj.x86_64 0:1.5.0.0-29.1.el6 java_cup.x86_64 1:0.10k-5.el6 jpackage-utils.noarch 0:1.7.5-3.12.el6 keyutils-libs-devel.x86_64 0:1.4-1.el6 krb5-devel.x86_64 0:1.9-9.el6_1.1 libICE.x86_64 0:1.0.6-1.el6 libSM.x86_64 0:1.1.0-7.1.el6 libXcomposite.x86_64 0:0.4.1-2.el6 libXcursor.x86_64 0:1.1.10-2.el6 libXdamage.x86_64 0:1.1.2-1.el6 libXext.x86_64 0:1.1-3.el6 libXfixes.x86_64 0:4.0.4-1.el6 libXft.x86_64 0:2.1.13-4.1.el6 libXi.x86_64 0:1.3-3.el6 libXinerama.x86_64 0:1.1-1.el6 libXrandr.x86_64 0:1.3.0-4.el6 libXrender.x86_64 0:0.9.5-1.el6 libXtst.x86_64 0:1.0.99.2-3.el6 libart_lgpl.x86_64 0:2.3.20-5.1.el6 libcom_err-devel.x86_64 0:1.41.12-7.el6 libgcj.x86_64 0:4.4.5-6.el6 libselinux-devel.x86_64 0:2.0.94-5.el6 libsepol-devel.x86_64 0:2.0.41-3.el6 libtasn1.x86_64 0:2.3-3.el6 libthai.x86_64 0:0.1.12-3.el6 libtiff.x86_64 0:3.9.4-1.el6_0.3 log4j.x86_64 0:1.2.14-6.4.el6 mx4j.noarch 1:3.0.1-9.13.el6 openssl-devel.x86_64 0:1.0.0-10.el6 pango.x86_64 0:1.28.1-3.el6_0.5 perl-DBD-MySQL.x86_64 0:4.013-3.el6 perl-DBI.x86_64 0:1.609-4.el6 perl-Time-HiRes.x86_64 4:1.9721-119.el6 pixman.x86_64 0:0.18.4-1.el6_0.1 regexp.x86_64 0:1.5-4.4.el6 sinjdoc.x86_64 0:0.5-9.1.el6 wsdl4j.noarch 0:1.5.2-7.8.el6 xml-commons-apis.x86_64 0:1.3.04-3.6.el6 xml-commons-resolver.x86_64 0:1.1-4.18.el6 zip.x86_64 0:3.0-1.el6 zlib-devel.x86_64 0:1.2.3-25.el6 Complete!
(2) MySQLの起動
[root@yamasserver01 ~]# service mysqld start Initializing MySQL database: Installing MySQL system tables... OK Filling help tables... OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h yamasserver01 password 'new-password' Alternatively you can run: /usr/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. You can start the MySQL daemon with: cd /usr ; /usr/bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd /usr/mysql-test ; perl mysql-test-run.pl Please report any problems with the /usr/bin/mysqlbug script! [ OK ] Starting mysqld: [ OK ] [root@yamasserver01 ~]# chkconfig mysqld on [root@yamasserver01 ~]# chkconfig --list | grep mysqld mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
1 Trackback(s)