APACHE Server Configuration
Install http
[root@master /]# yum install httpd
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.i686 0:2.2.15-9.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
httpd i686 2.2.15-9.el6 sabitha 814 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 814 k
Installed size: 2.8 M
Is this ok [y/N]: y
Downloading Packages:
httpd-2.2.15-9.el6.i686.rpm | 814 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : httpd-2.2.15-9.el6.i686 1/1
duration: 96(ms)
Installed products updated.
Installed:
httpd.i686 0:2.2.15-9.el6
Complete!
[root@master /]#
[root@master /]# yum install httpd
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.i686 0:2.2.15-9.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
httpd i686 2.2.15-9.el6 sabitha 814 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 814 k
Installed size: 2.8 M
Is this ok [y/N]: y
Downloading Packages:
httpd-2.2.15-9.el6.i686.rpm | 814 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : httpd-2.2.15-9.el6.i686 1/1
duration: 96(ms)
Installed products updated.
Installed:
httpd.i686 0:2.2.15-9.el6
Complete!
[root@master /]#
Configuration files path
[root@master httpd]# ls
conf conf.d logs modules run
[root@master httpd]# pwd
/etc/httpd
[root@master httpd]# ls
conf conf.d logs modules run
[root@master httpd]# cd conf
[root@master conf]# ls
httpd.conf magic
[root@master conf]#
[root@master conf]# service httpd status
httpd is stopped
[root@master conf]# service httpd start
Starting httpd: [ OK ]
[root@master conf]# chkconfig httpd on
[root@master conf]#
Checking from browser
http://192.168.0.10
Place sample html page
[root@master conf]# cd /var/www/html/
[root@master html]# ls
[root@master html]# vi index.html
[root@master html]# cat index.html
<h1>Welcome sabitha Apache</h1>
[root@master html]#
service httpd reload
No comments:
Post a Comment