1.Webサーバインストール
# yum -y install httpd Setting up Install Process Setting up Repos base 100% |=========================| 1.1 kB 00:00 updates-released 100% |=========================| 951 B 00:00 Reading repository metadata in from local files base : ################################################## 2622/2622 primary.xml.gz 100% |=========================| 349 kB 00:00 MD Read : ################################################## 888/888 updates-re: ################################################## 888/888 Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package httpd.i386 0:2.0.52-3.1 set to be updated --> Running transaction check --> Processing Dependency: httpd-suexec for package: httpd --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Package httpd-suexec.i386 0:2.0.52-3.1 set to be updated --> Running transaction check Dependencies Resolved Transaction Listing: Install: httpd.i386 0:2.0.52-3.1 - updates-released Performing the following to resolve dependencies: Install: httpd-suexec.i386 0:2.0.52-3.1 - updates-released Total download size: 905 k Downloading Packages: Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: httpd 100 % done 1/2 Installing: httpd-suexec 100 % done 2/2 Installed: httpd.i386 0:2.0.52-3.1 Dependency Installed: httpd-suexec.i386 0:2.0.52-3.1 Complete! # yum -y install php Setting up Install Process Setting up Repos base 100% |=========================| 1.1 kB 00:00 updates-released 100% |=========================| 951 B 00:00 Reading repository metadata in from local files base : ################################################## 2622/2622 updates-re: ################################################## 888/888 Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package php.i386 0:4.3.11-2.4 set to be updated --> Running transaction check --> Processing Dependency: php-pear for package: php --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Package php-pear.i386 0:4.3.11-2.4 set to be updated --> Running transaction check Dependencies Resolved Transaction Listing: Install: php.i386 0:4.3.11-2.4 - updates-released Performing the following to resolve dependencies: Install: php-pear.i386 0:4.3.11-2.4 - updates-released Total download size: 1.6 M Downloading Packages: Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: php-pear 100 % done 1/2 Installing: php 100 % done 2/2 Installed: php.i386 0:4.3.11-2.4 Dependency Installed: php-pear.i386 0:4.3.11-2.4 Complete! # yum clean packages Cleaning up Packages 4 packages removed |
2.Webサーバ設定
|
3.Webサーバの起動
# /etc/init.d/httpd start httpd を起動中: [ OK ] |
4.Webサーバの自動起動設定
# chkconfig httpd on # chkconfig --list httpd httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off |
Copyright (C) 2005 ataru