{"id":1629,"date":"2012-01-10T23:48:54","date_gmt":"2012-01-10T15:48:54","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=1629"},"modified":"2023-06-22T22:39:35","modified_gmt":"2023-06-22T22:39:35","slug":"how-to-install-httpd-on-centos-6-2","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-httpd-on-centos-6-2\/","title":{"rendered":"How to Install Httpd on CentOS 6.2"},"content":{"rendered":"<p>Apache HTTPD is a widely used web server renowned for its extensibility and utility across various types of websites. This tutorial will guide you through the process of installing Apache HTTPD on CentOS 6.2.<\/p>\n<p>This guide assumes that you have installed CentOS 6.2 with minimal installation type and have set up your local yum repository. However, if your server has a direct internet connection, you can use the internet CentOS yum repository.<\/p>\n<p>For more information on setting up a local yum repository from a CD-ROM\/DVD-ROM image on CentOS 6.2, you can visit <a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-setup-local-yum-repository-from-cd-romdvd-rom-image-on-centos-6-2\/\">this tutorial<\/a>.<\/p>\n<h2>Step 1: Install Apache HTTPD<\/h2>\n<p>To install Apache HTTPD, you will need to use the following command:<\/p>\n<pre># yum install httpd<\/pre>\n<p>This command will trigger the yum package manager to install the Apache HTTPD package. The system will then load the plugins and determine the fastest mirrors to download the package from your repository.<\/p>\n<h2>Step 2: Resolve Dependencies<\/h2>\n<p>During the installation process, the system will resolve dependencies. These dependencies include httpd-tools, libaprutil-1.so.0, libapr-1.so.0, apr-util-ldap, and \/etc\/mime.types. The system will automatically process these dependencies and run a transaction check.<\/p>\n<h2>Step 3: Install Dependencies<\/h2>\n<p>The system will then install the dependencies. These include apr, apr-util, apr-util-ldap, httpd-tools, and mailcap. The system will resolve these dependencies and provide a summary of the transaction.<\/p>\n<h2>Step 4: Confirm Installation<\/h2>\n<p>The system will then ask for your confirmation to proceed with the installation. You can confirm by typing &#8216;y&#8217; and pressing enter. The system will then download the packages, run rpm_check_debug, and perform a transaction test. If the transaction test is successful, the system will proceed with the transaction.<\/p>\n<h2>Step 5: Complete Installation<\/h2>\n<p>The system will then install the packages. Once the installation is complete, the system will provide a summary of the installed packages.<\/p>\n<h2>Complete System Response<\/h2>\n<pre>\r\n[root@centos6 ~]# yum install httpd\r\nLoaded plugins: fastestmirror\r\nDetermining fastest mirrors\r\nCentOS6.2-Repository                                                        | 1.3 kB     00:00 ...\r\nCentOS6.2-Repository\/primary                                                | 1.2 MB     00:00 ...\r\nCentOS6.2-Repository                                                                     3042\/3042\r\nSetting up Install Process\r\nResolving Dependencies\r\n--> Running transaction check\r\n---> Package httpd.i686 0:2.2.15-15.el6.centos will be installed\r\n--> Processing Dependency: httpd-tools = 2.2.15-15.el6.centos for package: httpd-2.2.15-15.el6.centos.i686\r\n--> Processing Dependency: libaprutil-1.so.0 for package: httpd-2.2.15-15.el6.centos.i686\r\n--> Processing Dependency: libapr-1.so.0 for package: httpd-2.2.15-15.el6.centos.i686\r\n--> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-15.el6.centos.i686\r\n--> Processing Dependency: \/etc\/mime.types for package: httpd-2.2.15-15.el6.centos.i686\r\n--> Running transaction check\r\n---> Package apr.i686 0:1.3.9-3.el6_1.2 will be installed\r\n---> Package apr-util.i686 0:1.3.9-3.el6_0.1 will be installed\r\n---> Package apr-util-ldap.i686 0:1.3.9-3.el6_0.1 will be installed\r\n---> Package httpd-tools.i686 0:2.2.15-15.el6.centos will be installed\r\n---> Package mailcap.noarch 0:2.1.31-2.el6 will be installed\r\n--> Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n===================================================================================================\r\n Package              Arch          Version                      Repository                   Size\r\n===================================================================================================\r\nInstalling:\r\n httpd                i686          2.2.15-15.el6.centos         CentOS6.2-Repository        818 k\r\nInstalling for dependencies:\r\n apr                  i686          1.3.9-3.el6_1.2              CentOS6.2-Repository        129 k\r\n apr-util             i686          1.3.9-3.el6_0.1              CentOS6.2-Repository         89 k\r\n apr-util-ldap        i686          1.3.9-3.el6_0.1              CentOS6.2-Repository         15 k\r\n httpd-tools          i686          2.2.15-15.el6.centos         CentOS6.2-Repository         70 k\r\n mailcap              noarch        2.1.31-2.el6                 CentOS6.2-Repository         27 k\r\n\r\nTransaction Summary\r\n===================================================================================================\r\nInstall       6 Package(s)\r\n\r\nTotal download size: 1.1 M\r\nInstalled size: 3.4 M\r\nIs this ok [y\/N]: y\r\nDownloading Packages:\r\n---------------------------------------------------------------------------------------------------\r\nTotal                                                              3.8 MB\/s | 1.1 MB     00:00\r\nRunning rpm_check_debug\r\nRunning Transaction Test\r\nTransaction Test Succeeded\r\nRunning Transaction\r\nWarning: RPMDB altered outside of yum.\r\n  Installing : mailcap-2.1.31-2.el6.noarch                                                     1\/6\r\n  Installing : apr-1.3.9-3.el6_1.2.i686                                                        2\/6\r\n  Installing : apr-util-1.3.9-3.el6_0.1.i686                                                   3\/6\r\n  Installing : httpd-tools-2.2.15-15.el6.centos.i686                                           4\/6\r\n  Installing : apr-util-ldap-1.3.9-3.el6_0.1.i686                                              5\/6\r\n  Installing : httpd-2.2.15-15.el6.centos.i686                                                 6\/6\r\n\r\nInstalled:\r\n  httpd.i686 0:2.2.15-15.el6.centos\r\n\r\nDependency Installed:\r\n  apr.i686 0:1.3.9-3.el6_1.2                     apr-util.i686 0:1.3.9-3.el6_0.1\r\n  apr-util-ldap.i686 0:1.3.9-3.el6_0.1           httpd-tools.i686 0:2.2.15-15.el6.centos\r\n  mailcap.noarch 0:2.1.31-2.el6\r\n\r\nComplete!\r\n<\/pre>\n<h2>Commands Mentioned<\/h2>\n<ul>\n<li><span class=\"fw-bold\"># yum install httpd<\/span> \u2013 This command installs the Apache HTTPD package using the yum package manager.<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>Installing Apache HTTPD on CentOS 6.2 is a straightforward process that involves using the yum package manager to install the httpd package and its dependencies.<\/p>\n<p>This tutorial has guided you through each step of the process, from initiating the installation to resolving dependencies and confirming the installation. By following these steps, you can successfully install Apache HTTPD on your CentOS 6.2 system and start serving web pages.<\/p>\n<p>Remember, this is just the beginning of your journey with Apache HTTPD. There are many more features and configurations to explore to get the most out of this powerful web server.<\/p>\n<p>This tutorial is part of a series of tutorials on the <a href=\"https:\/\/webhostinggeeks.com\/best\/web-server\/\">best web servers<\/a>, including <a href=\"https:\/\/webhostinggeeks.com\/blog\/apache-http-server-explained\/\">Apache<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/nginx-server-explained\/\">Nginx<\/a> and <a href=\"https:\/\/webhostinggeeks.com\/blog\/litespeed-web-server-explained\/\">LiteSpeed<\/a>. You can also learn more about different types of hosting, such as <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-dedicated-server-hosting\/\">dedicated server<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-vps-hosting\/\">VPS server<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-cloud-hosting\/\">cloud hosting<\/a>, and <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-shared-hosting\/\">shared hosting<\/a>.<\/p>\n<h2>FAQ<\/h2>\n<ol itemscope itemtype=\"https:\/\/schema.org\/FAQPage\">\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is Apache HTTPD?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">Apache HTTPD is a widely used, open-source web server software developed and maintained by the Apache Software Foundation. It is known for its power, flexibility, and wide range of features, making it suitable for many different types of websites.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is CentOS?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">CentOS, which stands for Community Enterprise Operating System, is a free, open-source platform that is functionally compatible with its upstream source, Red Hat Enterprise Linux (RHEL). It is one of the most popular Linux distributions for web servers.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is a yum repository?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">A yum repository is a directory of RPM package files and metadata readable by the yum package manager. Yum repositories allow for the installation of software on CentOS and other Linux distributions.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What are dependencies in the context of software installation?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">Dependencies are additional software packages that a software package requires to run correctly. These could be libraries, compilers, or other software. During the installation process, these dependencies are often installed automatically.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is the purpose of the &#8216;yum install httpd&#8217; command?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">The &#8216;yum install httpd&#8217; command is used to install the Apache HTTPD web server on a CentOS system. The &#8216;yum&#8217; part of the command refers to the package manager used by CentOS, and &#8216;httpd&#8217; is the package name for the Apache HTTPD web server.<\/span>\n            <\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Apache HTTPD is a widely used web server renowned for its extensibility and utility across various types of websites. This tutorial will guide you through the process of installing Apache&#8230;<\/p>\n","protected":false},"author":6,"featured_media":1554,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1103,2055],"tags":[1199,1244,1253,1473,1975,1536],"class_list":["post-1629","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","category-centos","tag-apache","tag-centos","tag-centos-6-2","tag-httpd","tag-install","tag-linux"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=1629"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1629\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/1554"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=1629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=1629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=1629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}