2012-10-04

CentOS 5.8 を ゼロから LAMP サーバーにする(1)インストール

最小限と思われる構成をインストールしてみた。

# yum install httpd php mysql-server php-mysql php-mbstring
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: rsync.atworks.co.jp
 * extras: ftp.iij.ad.jp
 * updates: rsync.atworks.co.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.3-65.el5.centos set to be updated
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd
---> Package mysql-server.x86_64 0:5.0.95-1.el5_7.1 set to be updated
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server
---> Package php.x86_64 0:5.1.6-39.el5_8 set to be updated
--> Processing Dependency: php-common = 5.1.6-39.el5_8 for package: php
--> Processing Dependency: php-cli = 5.1.6-39.el5_8 for package: php
--> Processing Dependency: libgmp.so.3()(64bit) for package: php
---> Package php-mbstring.x86_64 0:5.1.6-39.el5_8 set to be updated
---> Package php-mysql.x86_64 0:5.1.6-39.el5_8 set to be updated
--> Processing Dependency: php-pdo for package: php-mysql
--> Running transaction check
---> Package apr.x86_64 0:1.2.7-11.el5_6.5 set to be updated
---> Package apr-util.x86_64 0:1.2.7-11.el5_5.2 set to be updated
---> Package gmp.x86_64 0:4.1.4-10.el5 set to be updated
---> Package perl-DBD-MySQL.x86_64 0:3.0007-2.el5 set to be updated
---> Package php-cli.x86_64 0:5.1.6-39.el5_8 set to be updated
---> Package php-common.x86_64 0:5.1.6-39.el5_8 set to be updated
---> Package php-pdo.x86_64 0:5.1.6-39.el5_8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
 Package                          Arch                     Version                                  Repository                 Size
====================================================================================================================================
Installing:
 httpd                            x86_64                   2.2.3-65.el5.centos                      updates                   1.3 M
 mysql-server                     x86_64                   5.0.95-1.el5_7.1                         updates                   9.9 M
 php                              x86_64                   5.1.6-39.el5_8                           updates                   2.4 M
 php-mbstring                     x86_64                   5.1.6-39.el5_8                           updates                   1.0 M
 php-mysql                        x86_64                   5.1.6-39.el5_8                           updates                    91 k
Installing for dependencies:
 apr                              x86_64                   1.2.7-11.el5_6.5                         base                      119 k
 apr-util                         x86_64                   1.2.7-11.el5_5.2                         base                       79 k
 gmp                              x86_64                   4.1.4-10.el5                             base                      201 k
 perl-DBD-MySQL                   x86_64                   3.0007-2.el5                             base                      148 k
 php-cli                          x86_64                   5.1.6-39.el5_8                           updates                   2.2 M
 php-common                       x86_64                   5.1.6-39.el5_8                           updates                   154 k
 php-pdo                          x86_64                   5.1.6-39.el5_8                           updates                    67 k

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

Total download size: 17 M
Is this ok [y/N]: y
Downloading Packages:
(1/12): php-pdo-5.1.6-39.el5_8.x86_64.rpm                                                                    |  67 kB     00:00     
(2/12): apr-util-1.2.7-11.el5_5.2.x86_64.rpm                                                                 |  79 kB     00:00     
(3/12): php-mysql-5.1.6-39.el5_8.x86_64.rpm                                                                  |  91 kB     00:00     
(4/12): apr-1.2.7-11.el5_6.5.x86_64.rpm                                                                      | 119 kB     00:00     
(5/12): perl-DBD-MySQL-3.0007-2.el5.x86_64.rpm                                                               | 148 kB     00:00     
(6/12): php-common-5.1.6-39.el5_8.x86_64.rpm                                                                 | 154 kB     00:00     
(7/12): gmp-4.1.4-10.el5.x86_64.rpm                                                                          | 201 kB     00:00     
(8/12): php-mbstring-5.1.6-39.el5_8.x86_64.rpm                                                               | 1.0 MB     00:00     
(9/12): httpd-2.2.3-65.el5.centos.x86_64.rpm                                                                 | 1.3 MB     00:00     
(10/12): php-cli-5.1.6-39.el5_8.x86_64.rpm                                                                   | 2.2 MB     00:01     
(11/12): php-5.1.6-39.el5_8.x86_64.rpm                                                                       | 2.4 MB     00:03     
(12/12): mysql-server-5.0.95-1.el5_7.1.x86_64.rpm                                                            | 9.9 MB     00:13     
------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                               840 kB/s |  17 MB     00:21     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : php-common                                                                                                  1/12 
  Installing     : gmp                                                                                                         2/12 
  Installing     : apr                                                                                                         3/12 
  Installing     : apr-util                                                                                                    4/12 
  Installing     : httpd                                                                                                       5/12 
  Installing     : php-cli                                                                                                     6/12 
  Installing     : php-pdo                                                                                                     7/12 
  Installing     : perl-DBD-MySQL                                                                                              8/12 
  Installing     : php-mysql                                                                                                   9/12 
  Installing     : php-mbstring                                                                                               10/12 
  Installing     : php                                                                                                        11/12 
  Installing     : mysql-server                                                                                               12/12 

Installed:
  httpd.x86_64 0:2.2.3-65.el5.centos            mysql-server.x86_64 0:5.0.95-1.el5_7.1          php.x86_64 0:5.1.6-39.el5_8         
  php-mbstring.x86_64 0:5.1.6-39.el5_8          php-mysql.x86_64 0:5.1.6-39.el5_8              

Dependency Installed:
  apr.x86_64 0:1.2.7-11.el5_6.5                apr-util.x86_64 0:1.2.7-11.el5_5.2         gmp.x86_64 0:4.1.4-10.el5                 
  perl-DBD-MySQL.x86_64 0:3.0007-2.el5         php-cli.x86_64 0:5.1.6-39.el5_8            php-common.x86_64 0:5.1.6-39.el5_8        
  php-pdo.x86_64 0:5.1.6-39.el5_8             

Complete!
# 

0 件のコメント:

コメントを投稿

.htaccessで403を404で返す

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