(2/2) HTTP Repository

DESCRIPTION:

The apache HTTP server is the most widely used web server. It provides many additional features including dynamically loadable modules and extensive integration with other popular software. Apache HTTP server is configured by placing directives in plain text configuration files.

PREREQUISITIES:

CentOS iso image file
HTTP Package

REQUIRED SOFTWARE:

httpd-2.2.15-60.e16.CentOS.6.x86_64.
httpd-manual-2.2.15-60.e16.centos.6.noarch
httpd-tools-2.2.15-60.e16.centos.6.x86_64

CONFIGURATION FILE:

Apache HTTP webserver is configured by placing directives in plain text configuration files.
The main configuration file is usually httpd.conf , but the server configuration file the HTTP configuration file is “ /etc/httpd/conf/httpd.conf ”

STEPS OF CONFIGURATION:

STEP 1: Edit the server configuration file using vi editor.
Vim /etc/httpd/conf/httpd.conf
VirtualHost *:80
ServerAdmin :xyz@email.com
DocumentRoot: /var/www/html
ServerName :www.abc.com
/VirtualHost

STEP 2: Mount disk to /media
Mount /dev/sr0 /media/

STEP 3: Create a directory under /var/www/html
Mkdir /var/www/html/CentOS/

STEP 4: Copy the dvd content to /var/www/html
Cp –av /mnt/* /var/www/html/CentOS/

STEP 5: Edit /etc/yum.repos.d/CentOS/

[Base]
Name =CentOS6
Baseurl=http://192.168.1.21
Enabled=1
Gpgkey =http://192.168.1.21/CentOS/RPM-GPG-KEY-CentOS-6
Gpgcheck=1

STEP 6: Start the HTTP service

Service httpd start

Be the first to comment on "(2/2) HTTP Repository"

Leave a comment

Your email address will not be published.


*