◆xoopsサーバ移行 その3
昨日のトラブルは解決し、原因は昨日の日記に
追記いたしました。私もまだまだですね。。。
これから移行先の環境を準備します。
●yumで準備
[root@host ~]# yum -y install httpd
base 100% |=========================| 1.1 kB 00:00
primary.xml.gz 100% |=========================| 878 kB 00:02
base : ################################################## 2508/2508
updates 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 211 kB 00:00
updates : ################################################## 311/311
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
primary.xml.gz 100% |=========================| 100 kB 00:01
extras : ################################################## 311/311
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package httpd.i386 0:2.2.3-22.el5.centos.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
httpd i386 2.2.3-22.el5.centos.1 updates 1.2 M
Transaction Summary
=============================================================================
Install 0 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total download size: 1.2 M
Downloading Packages:
(1/1): httpd-2.2.3-22.el5 100% |=========================| 1.2 MB 00:05
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : httpd ######################### [1/2]
Cleanup : httpd ######################### [2/2]
Updated: httpd.i386 0:2.2.3-22.el5.centos.1
Complete!
[root@host ~]# yum -y install php php-mbstring
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package php-mbstring.i386 0:5.1.6-23.2.el5_3 set to be updated
--> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-mbstring
---> Package php.i386 0:5.1.6-23.2.el5_3 set to be updated
--> Processing Dependency: php-cli = 5.1.6-23.2.el5_3 for package: php
--> Running transaction check
---> Package php-common.i386 0:5.1.6-23.2.el5_3 set to be updated
--> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-pdo
--> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-mysql
---> Package php-cli.i386 0:5.1.6-23.2.el5_3 set to be updated
--> Running transaction check
---> Package php-pdo.i386 0:5.1.6-23.2.el5_3 set to be updated
---> Package php-mysql.i386 0:5.1.6-23.2.el5_3 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
php i386 5.1.6-23.2.el5_3 updates 1.1 M
php-cli i386 5.1.6-23.2.el5_3 updates 2.1 M
php-common i386 5.1.6-23.2.el5_3 updates 151 k
php-mbstring i386 5.1.6-23.2.el5_3 updates 994 k
Updating for dependencies:
php-mysql i386 5.1.6-23.2.el5_3 updates 85 k
php-pdo i386 5.1.6-23.2.el5_3 updates 64 k
Transaction Summary
=============================================================================
Install 0 Package(s)
Update 6 Package(s)
Remove 0 Package(s)
Total download size: 4.5 M
Downloading Packages:
(1/6): php-cli-5.1.6-23.2 100% |=========================| 2.1 MB 00:07
(2/6): php-mysql-5.1.6-23 100% |=========================| 85 kB 00:00
(3/6): php-common-5.1.6-2 100% |=========================| 151 kB 00:00
(4/6): php-5.1.6-23.2.el5 100% |=========================| 1.1 MB 00:03
(5/6): php-pdo-5.1.6-23.2 100% |=========================| 64 kB 00:00
(6/6): php-mbstring-5.1.6 100% |=========================| 994 kB 00:03
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : php-common ####################### [ 1/12]
Updating : php-pdo ####################### [ 2/12]
Updating : php-cli ####################### [ 3/12]
Updating : php-mbstring ####################### [ 4/12]
Updating : php ####################### [ 5/12]
Updating : php-mysql ####################### [ 6/12]
Cleanup : php-mbstring ####################### [ 7/12]
Cleanup : php-pdo ####################### [ 8/12]
Cleanup : php ####################### [ 9/12]
Cleanup : php-common ####################### [10/12]
Cleanup : php-mysql ####################### [11/12]
Cleanup : php-cli ####################### [12/12]
Updated: php.i386 0:5.1.6-23.2.el5_3 php-cli.i386 0:5.1.6-23.2.el5_3 php-common.i386 0:5.1.6-23.2.el5_3 php-mbstring.i386 0:5.1.6-23.2.el5_3
Dependency Updated: php-mysql.i386 0:5.1.6-23.2.el5_3 php-pdo.i386 0:5.1.6-23.2.el5_3
Complete!
●httpd.confの修正
[root@host ~]# cd /etc/httpd/conf
[root@host conf]# cp -p httpd.conf httpd.conf.org
[root@host conf]# vi httpd.conf
変更箇所
[root@host conf]# diff httpd.conf httpd.conf.org
< ServerTokens Prod
> ServerTokens OS
< ServerAdmin xxxxxxxx@xxxxxx.xx.xx
> ServerAdmin root@localhost
< ServerName xxxxxxxxx.xxx:80
> #ServerName www.example.com:80
< ServerSignature Off
> ServerSignature On
< # AddDefaultCharset UTF-8
> AddDefaultCharset UTF-8
今のところはこんな感じです。
もう少し調べてよりよい設定に変更していきます。