How to install and configure Apache

  
on rhel6.3

rhel is the Linux system of Red Hat, and yum is the shell front-end package manager under its system. The following small series will introduce to everyone how is rhel6.3 Use yum to install Apache, let's learn together.

1. Install the httpd package:

Yum install httpd

2. Start the apache service:

[root@redhat Desktop]# /etc/Init.d/httpd start

Starting httpd: [ OK ]

3, install mod-ssl package

[root@redhat Desktop]# yum install mod_ssl – y

4, create a /date/www/html directory, and modify the security context:

Chcon –t httpd_sys_content_t /date/-R (l temporary modification will do)

5, add an apache executable file under /date/www/html:

6. Add an executable file under /var/www/html

7, Configuring Apache configuration file :( note open port 80)

8, ssl configuration profile :( Note that encryption is added 2 lines)
Previous Next total 12 2 pages

Copyright © Windows knowledge All Rights Reserved