2012-11-18

CentOS 6.3 最小構成からのスタート
(4)LAMPインストール

# yum install httpd php php-mbstring php-mysql mysql-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.nara.wide.ad.jp
 * extras: ftp.nara.wide.ad.jp
 * updates: ftp.nara.wide.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-15.el6.centos.1 will be installed
--> Processing Dependency: httpd-tools = 2.2.15-15.el6.centos.1 for package: httpd-2.2.15-15.el6.centos.1.x86_64
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-15.el6.centos.1.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.2.15-15.el6.centos.1.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-15.el6.centos.1.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-15.el6.centos.1.x86_64
---> Package mysql-server.x86_64 0:5.1.66-1.el6_3 will be installed
--> Processing Dependency: mysql = 5.1.66-1.el6_3 for package: mysql-server-5.1.66-1.el6_3.x86_64
--> Processing Dependency: perl-DBI for package: mysql-server-5.1.66-1.el6_3.x86_64
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.66-1.el6_3.x86_64
--> Processing Dependency: perl(vars) for package: mysql-server-5.1.66-1.el6_3.x86_64
--> Processing Dependency: perl(strict) for package: mysql-server-5.1.66-1.el6_3.x86_64
--> Processing Dependency: perl(Sys::Hostname) for package: mysql-server-5.1.66-1.el6_3.x86_64
--> Processing Dependency: perl(POSIX) for package: mysql-server-5.1.66-1.el6_3.x86_64
--> Processing Dependency: perl(Getopt::Long) for package: mysql-server-5.1.66-1.el6_3.x86_64
--> Processing Dependency: perl(File::Temp) for package: mysql-server-5.1.66-1.el6_3.x86_64
--> Processing Dependency: perl(File::Path) for package: mysql-server-5.1.66-1.el6_3.x86_64
--> Processing Dependency: perl(File::Copy) for package: mysql-server-5.1.66-1.el6_3.x86_64
--> Processing Dependency: perl(File::Basename) for package: mysql-server-5.1.66-1.el6_3.x86_64
--> Processing Dependency: perl(Data::Dumper) for package: mysql-server-5.1.66-1.el6_3.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-server-5.1.66-1.el6_3.x86_64
--> Processing Dependency: /usr/bin/perl for package: mysql-server-5.1.66-1.el6_3.x86_64
---> Package php.x86_64 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php-common = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.x86_64
--> Processing Dependency: php-cli = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.x86_64
---> Package php-mbstring.x86_64 0:5.3.3-14.el6_3 will be installed
---> Package php-mysql.x86_64 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php-pdo for package: php-mysql-5.3.3-14.el6_3.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.3.9-5.el6_2 will be installed
---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package httpd-tools.x86_64 0:2.2.15-15.el6.centos.1 will be installed
---> Package mailcap.noarch 0:2.1.31-2.el6 will be installed
---> Package mysql.x86_64 0:5.1.66-1.el6_3 will be installed
--> Processing Dependency: mysql-libs = 5.1.66-1.el6_3 for package: mysql-5.1.66-1.el6_3.x86_64
---> Package perl.x86_64 4:5.10.1-127.el6 will be installed
--> Processing Dependency: perl-libs = 4:5.10.1-127.el6 for package: 4:perl-5.10.1-127.el6.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.10.1-127.el6.x86_64
--> Processing Dependency: perl(version) for package: 4:perl-5.10.1-127.el6.x86_64
--> Processing Dependency: perl(Pod::Simple) for package: 4:perl-5.10.1-127.el6.x86_64
--> Processing Dependency: perl(Module::Pluggable) for package: 4:perl-5.10.1-127.el6.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.10.1-127.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 php-cli.x86_64 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: libedit.so.0()(64bit) for package: php-cli-5.3.3-14.el6_3.x86_64
---> Package php-common.x86_64 0:5.3.3-14.el6_3 will be installed
---> Package php-pdo.x86_64 0:5.3.3-14.el6_3 will be installed
--> Running transaction check
---> Package libedit.x86_64 0:2.11-4.20080712cvs.1.el6 will be installed
---> Package mysql-libs.x86_64 0:5.1.61-4.el6 will be updated
---> Package mysql-libs.x86_64 0:5.1.66-1.el6_3 will be an update
---> Package perl-Module-Pluggable.x86_64 1:3.90-127.el6 will be installed
---> Package perl-Pod-Simple.x86_64 1:3.13-127.el6 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-127.el6.x86_64
---> Package perl-libs.x86_64 4:5.10.1-127.el6 will be installed
---> Package perl-version.x86_64 3:0.77-127.el6 will be installed
--> Running transaction check
---> Package perl-Pod-Escapes.x86_64 1:1.04-127.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                 Arch     Version                       Repository
                                                                           Size
================================================================================
Installing:
 httpd                   x86_64   2.2.15-15.el6.centos.1        base      813 k
 mysql-server            x86_64   5.1.66-1.el6_3                updates   8.6 M
 php                     x86_64   5.3.3-14.el6_3                updates   1.1 M
 php-mbstring            x86_64   5.3.3-14.el6_3                updates   453 k
 php-mysql               x86_64   5.3.3-14.el6_3                updates    79 k
Installing for dependencies:
 apr                     x86_64   1.3.9-5.el6_2                 updates   123 k
 apr-util                x86_64   1.3.9-3.el6_0.1               base       87 k
 apr-util-ldap           x86_64   1.3.9-3.el6_0.1               base       15 k
 httpd-tools             x86_64   2.2.15-15.el6.centos.1        base       70 k
 libedit                 x86_64   2.11-4.20080712cvs.1.el6      base       74 k
 mailcap                 noarch   2.1.31-2.el6                  base       27 k
 mysql                   x86_64   5.1.66-1.el6_3                updates   885 k
 perl                    x86_64   4:5.10.1-127.el6              base       10 M
 perl-DBD-MySQL          x86_64   4.013-3.el6                   base      134 k
 perl-DBI                x86_64   1.609-4.el6                   base      705 k
 perl-Module-Pluggable   x86_64   1:3.90-127.el6                base       38 k
 perl-Pod-Escapes        x86_64   1:1.04-127.el6                base       30 k
 perl-Pod-Simple         x86_64   1:3.13-127.el6                base      210 k
 perl-libs               x86_64   4:5.10.1-127.el6              base      576 k
 perl-version            x86_64   3:0.77-127.el6                base       49 k
 php-cli                 x86_64   5.3.3-14.el6_3                updates   2.2 M
 php-common              x86_64   5.3.3-14.el6_3                updates   523 k
 php-pdo                 x86_64   5.3.3-14.el6_3                updates    73 k
Updating for dependencies:
 mysql-libs              x86_64   5.1.66-1.el6_3                updates   1.2 M

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

Total download size: 28 M
Downloading Packages:
--------------------------------------------------------------------------------
Total                                           1.4 MB/s |  28 MB     00:20     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction

  Installing : php-common-5.3.3-14.el6_3.x86_64                            1/25 

  Updating   : mysql-libs-5.1.66-1.el6_3.x86_64                            2/25 

  Installing : apr-1.3.9-5.el6_2.x86_64                                    3/25 

  Installing : apr-util-1.3.9-3.el6_0.1.x86_64                             4/25 

  Installing : httpd-tools-2.2.15-15.el6.centos.1.x86_64                   5/25 

  Installing : apr-util-ldap-1.3.9-3.el6_0.1.x86_64                        6/25 

  Installing : php-pdo-5.3.3-14.el6_3.x86_64                               7/25 

  Installing : 1:perl-Pod-Escapes-1.04-127.el6.x86_64                      8/25 

  Installing : 3:perl-version-0.77-127.el6.x86_64                          9/25 

  Installing : 1:perl-Pod-Simple-3.13-127.el6.x86_64                      10/25 

  Installing : 1:perl-Module-Pluggable-3.90-127.el6.x86_64                11/25 

  Installing : 4:perl-libs-5.10.1-127.el6.x86_64                          12/25 

  Installing : 4:perl-5.10.1-127.el6.x86_64                               13/25 

  Installing : perl-DBI-1.609-4.el6.x86_64                                14/25 

  Installing : perl-DBD-MySQL-4.013-3.el6.x86_64                          15/25 

  Installing : mysql-5.1.66-1.el6_3.x86_64                                16/25 

  Installing : libedit-2.11-4.20080712cvs.1.el6.x86_64                    17/25 

  Installing : php-cli-5.3.3-14.el6_3.x86_64                              18/25 

  Installing : mailcap-2.1.31-2.el6.noarch                                19/25 

  Installing : httpd-2.2.15-15.el6.centos.1.x86_64                        20/25 

  Installing : php-5.3.3-14.el6_3.x86_64                                  21/25 

  Installing : mysql-server-5.1.66-1.el6_3.x86_64                         22/25 

  Installing : php-mysql-5.3.3-14.el6_3.x86_64                            23/25 

  Installing : php-mbstring-5.3.3-14.el6_3.x86_64                         24/25 

  Cleanup    : mysql-libs-5.1.61-4.el6.x86_64                             25/25 

  Verifying  : php-common-5.3.3-14.el6_3.x86_64                            1/25 

  Verifying  : perl-DBD-MySQL-4.013-3.el6.x86_64                           2/25 

  Verifying  : httpd-2.2.15-15.el6.centos.1.x86_64                         3/25 

  Verifying  : 4:perl-libs-5.10.1-127.el6.x86_64                           4/25 

  Verifying  : perl-DBI-1.609-4.el6.x86_64                                 5/25 

  Verifying  : 1:perl-Pod-Simple-3.13-127.el6.x86_64                       6/25 

  Verifying  : httpd-tools-2.2.15-15.el6.centos.1.x86_64                   7/25 

  Verifying  : 3:perl-version-0.77-127.el6.x86_64                          8/25 

  Verifying  : php-cli-5.3.3-14.el6_3.x86_64                               9/25 

  Verifying  : php-mbstring-5.3.3-14.el6_3.x86_64                         10/25 

  Verifying  : mysql-libs-5.1.66-1.el6_3.x86_64                           11/25 

  Verifying  : 1:perl-Pod-Escapes-1.04-127.el6.x86_64                     12/25 

  Verifying  : php-5.3.3-14.el6_3.x86_64                                  13/25 

  Verifying  : php-pdo-5.3.3-14.el6_3.x86_64                              14/25 

  Verifying  : 1:perl-Module-Pluggable-3.90-127.el6.x86_64                15/25 

  Verifying  : apr-util-ldap-1.3.9-3.el6_0.1.x86_64                       16/25 

  Verifying  : mysql-server-5.1.66-1.el6_3.x86_64                         17/25 

  Verifying  : mailcap-2.1.31-2.el6.noarch                                18/25 

  Verifying  : apr-1.3.9-5.el6_2.x86_64                                   19/25 

  Verifying  : libedit-2.11-4.20080712cvs.1.el6.x86_64                    20/25 

  Verifying  : php-mysql-5.3.3-14.el6_3.x86_64                            21/25 

  Verifying  : mysql-5.1.66-1.el6_3.x86_64                                22/25 

  Verifying  : 4:perl-5.10.1-127.el6.x86_64                               23/25 

  Verifying  : apr-util-1.3.9-3.el6_0.1.x86_64                            24/25 

  Verifying  : mysql-libs-5.1.61-4.el6.x86_64                             25/25 

Installed:
  httpd.x86_64 0:2.2.15-15.el6.centos.1   mysql-server.x86_64 0:5.1.66-1.el6_3  
  php.x86_64 0:5.3.3-14.el6_3             php-mbstring.x86_64 0:5.3.3-14.el6_3  
  php-mysql.x86_64 0:5.3.3-14.el6_3      

Dependency Installed:
  apr.x86_64 0:1.3.9-5.el6_2                                                    
  apr-util.x86_64 0:1.3.9-3.el6_0.1                                             
  apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1                                        
  httpd-tools.x86_64 0:2.2.15-15.el6.centos.1                                   
  libedit.x86_64 0:2.11-4.20080712cvs.1.el6                                     
  mailcap.noarch 0:2.1.31-2.el6                                                 
  mysql.x86_64 0:5.1.66-1.el6_3                                                 
  perl.x86_64 4:5.10.1-127.el6                                                  
  perl-DBD-MySQL.x86_64 0:4.013-3.el6                                           
  perl-DBI.x86_64 0:1.609-4.el6                                                 
  perl-Module-Pluggable.x86_64 1:3.90-127.el6                                   
  perl-Pod-Escapes.x86_64 1:1.04-127.el6                                        
  perl-Pod-Simple.x86_64 1:3.13-127.el6                                         
  perl-libs.x86_64 4:5.10.1-127.el6                                             
  perl-version.x86_64 3:0.77-127.el6                                            
  php-cli.x86_64 0:5.3.3-14.el6_3                                               
  php-common.x86_64 0:5.3.3-14.el6_3                                            
  php-pdo.x86_64 0:5.3.3-14.el6_3                                               

Dependency Updated:
  mysql-libs.x86_64 0:5.1.66-1.el6_3                                            

Complete!
#


CentOS 6.x では、PHPは5.3になっている。

0 件のコメント:

コメントを投稿

.htaccessで403を404で返す

久しぶりにリライトルールを書いたよ。 ドキュメントルートに.htaccessを置く場合の記述↓ # 403.html は実体がなくてよい。この設定をすることで、あっても使われなくなる。 ErrorDocument 403 /403.html # 独自の404ページをドキュメ...