Rhel6.3 how to install apache using yum

Source: Internet
Author: User
This article describes how to install apache using yum in rhel6.3. For more information, see RHELApache.

1. install the httpd software package:

Yum install httpd

2. start the apache service:

[Root @ redhat Desktop] #/etc/init. d/httpd start

Starting httpd: [OK]

3. install the 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 can be modified temporarily)

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

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

7. configure the Apache configuration file: (open port 80)

8. configure the ssl configuration file: (add the two lines for encryption)

9. restart the apache service:

[Root @ redhat conf. d] #/etc/init. d/httpd restart

Stopping httpd: [OK]

Starting httpd: [OK]

[Root @ redhat conf. d] #

10. configure domain name resolution:/etc/hosts

Apache.example.com 192.168.0.1

Redhat.example.com 192.168.0.1

11 test successful:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.