Installing Apache 1

This is an example to build Web Server. Install Apache for it. In addition to do it, Install PHP and SSL because there are often used with Web Server. And it’s also neccessary to configure router so that TCP and UDP packets to 80 and 443 can pass through
[root@www ~]#
yum -y install httpd php php-mbstring php-pear mod_ssl

Loading “installonlyn” plugin
Loading “fastestmirror” plugin
Setting up Install Process
Setting up repositories
base

100% |=========================| 1.1 kB 00:00

updates

100% |=========================|

951 B 00:00

addons

100% |=========================|

951 B 00:00

extras

100% |=========================| 1.1 kB 00:00

Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for php to pack into transaction set.
php-5.1.6-7.el5.i386.rpm

100% |====================| 17 kB 00:00

—> Package php.i386 0:5.1.6-7.el5 set to be updated
—> Downloading header for httpd to pack into transaction set.
httpd-2.2.3-6.el5.centos.

100% |====================| 54 kB 00:00

—> Package httpd.i386 0:2.2.3-6.el5.centos.1 set to be updated
—> Downloading header for php-mbstring to pack into transaction set.
php-mbstring-5.1.6-7.el5.

100% |====================| 16 kB 00:00

—> Package php-mbstring.i386 0:5.1.6-7.el5 set to be updated
—> Downloading header for mod_ssl to pack into transaction set.
mod_ssl-2.2.3-6.el5.cento

100% |====================| 11 kB 00:00

—> Package mod_ssl.i386 1:2.2.3-6.el5.centos.1 set to be updated
—> Downloading header for php-pear to pack into transaction set.
php-pear-1.4.9-4.noarch.r

100% |====================| 20 kB 00:00

—> Package php-pear.noarch 1:1.4.9-4 set to be updated
–> Running transaction check
–> Processing Dependency: php-cli = 5.1.6-7.el5 for package: php
–> Processing Dependency: libnal.so.1 for package: mod_ssl
–> Processing Dependency: libdistcache.so.1 for package: mod_ssl
–> Processing Dependency: php-cli for package: php-pear
–> Processing Dependency: php-common = 5.1.6-7.el5 for package: php
–> Processing Dependency: php-common = 5.1.6-7.el5 for package: php-mbstring
–> Restarting Dependency Resolution with new changes.
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for distcache to pack into transaction set.
distcache-1.4.5-14.1.i386

100% |====================| 8.8 kB 00:00

—> Package distcache.i386 0:1.4.5-14.1 set to be updated
—> Downloading header for php-common to pack into transaction set.
php-common-5.1.6-7.el5.i3

100% |=====================| 19 kB 00:00

—> Package php-common.i386 0:5.1.6-7.el5 set to be updated
—> Downloading header for php-cli to pack into transaction set.
php-cli-5.1.6-7.el5.i386.

100% |=====================| 17 kB 00:00

—> Package php-cli.i386 0:5.1.6-7.el5 set to be updated
–> Running transaction check

Dependencies Resolved

===========================================================
Package

Arch

Version

Repository

Size

===========================================================
Installing:
httpd

i386

2.2.3-6.el5.centos.1

base

1.1 M

mod_ssl

i386

1:2.2.3-6.el5.centos.1

base

84 k

php

i386

5.1.6-7.el5

updates

1.2 M

php-mbstring

i386

5.1.6-7.el51

updates

966 k

php-pear

noarch

1:1.4.9-4

base

355 k

Installing for dependencies:
distcache

i386

1.4.5-14.1

base

119 k

php-cli

i386

5.1.6-7.el5

updates

2.2 M

php-common

i386

5.1.6-7.el5

updates

139 k

Transaction Summary
===========================================================
Install

8 Package(s)

Update

0 Package(s)

Remove

0 Package(s)

Total download size: 6.2 M
Downloading Packages:
(1/8): distcache-1.4.5-14

100% |====================| 119 kB 00:00

(2/8): php-pear-1.4.9-4.n

100% |====================| 355 kB 00:00

(3/8): mod_ssl-2.2.3-6.el

100% |====================|

84 kB 00:00

(4/8): php-mbstring-5.1.6

100% |====================| 966 kB 00:00

(5/8): php-common-5.1.6-7

100% |====================| 139 kB 00:00

(6/8): php-cli-5.1.6-7.el

100% |====================|

2.2 MB 00:00

(7/8): php-5.1.6-7.el5.i3

100% |====================|

1.2 MB 00:00

(8/8): httpd-2.2.3-6.el5.

100% |====================|

1.1 MB 00:00

Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing:   php-common

#################################### [1/8]

Installing:   php-cli

#################################### [2/8]

Installing:   httpd

#################################### [3/8]

Installing:   php

#################################### [4/8]

Installing:   distcache

#################################### [5/8]

Installing:   php-pear

#################################### [6/8]

Installing:   mod_ssl

#################################### [7/8]

Installing:   php-mbstring

#################################### [8/8]

Installed: httpd.i386 0:2.2.3-6.el5.centos.1 mod_ssl.i386 1:2.2.3-6.el5.centos.1 php.i386 0:5.1.6-7.el5 php-mbstring.i386 0:5.1.6-7.el5 php-pear.noarch 1:1.4.9-4
Dependency Installed: distcache.i386 0:1.4.5-14.1 php-cli.i386 0:5.1.6-7.el5 php-common.i386 0:5.1.6-7.el5
Complete!
[root@www ~]#
[root@www ~]#

rm -f /etc/httpd/conf.d/welcome.conf

[root@www ~]#
[root@www ~]#

rm -f /var/www/error/noindex.html

[root@www ~]#

ln -s /usr/bin/perl /usr/local/bin/perl

[root@www ~]#

Gửi phản hồi

Mời bạn điền thông tin vào ô dưới đây hoặc kích vào một biểu tượng để đăng nhập:

WordPress.com Logo

Bạn đang bình luận bằng tài khoản WordPress.com Log Out / Thay đổi )

Twitter picture

Bạn đang bình luận bằng tài khoản Twitter Log Out / Thay đổi )

Facebook photo

Bạn đang bình luận bằng tài khoản Facebook Log Out / Thay đổi )

Google+ photo

Bạn đang bình luận bằng tài khoản Google+ Log Out / Thay đổi )

Connecting to %s

%d bloggers like this: