{"id":3557,"date":"2012-07-16T23:07:53","date_gmt":"2012-07-16T15:07:53","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=3557"},"modified":"2023-04-28T09:49:02","modified_gmt":"2023-04-28T09:49:02","slug":"how-to-install-httpd-on-centos-6-3","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-httpd-on-centos-6-3\/","title":{"rendered":"How to Install Httpd on CentOS 6.3"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignleft  wp-image-2030 lazyload\" title=\"apache\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/02\/apache-300x225.jpg\" alt=\"\" width=\"180\" height=\"135\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/02\/apache-300x225.jpg 300w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/02\/apache.jpg 640w\" data-sizes=\"(max-width: 180px) 100vw, 180px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 180px; --smush-placeholder-aspect-ratio: 180\/135;\" \/>This post will show you the quick steps to install apache httpd on linux CentOS 6.3 server. Apache httpd is one of the most popular web servers and has a lot of features that make it very extensible and useful for many different types of websites.<\/p>\n<p>1. Install httpd using yum command :<\/p>\n<pre>[root@centos63 ~]# yum install httpd -y<\/pre>\n<p>Examples :<\/p>\n<pre>[root@centos63 ~]# yum install httpd -y\nLoaded plugins: fastestmirror, presto\nLoading mirror speeds from cached hostfile\n * base: mirrors.hostemo.com\n * extras: mirrors.hostemo.com\n * updates: mirrors.hostemo.com\nSetting up Install Process\nResolving Dependencies\n--&gt; Running transaction check\n---&gt; Package httpd.i686 0:2.2.15-15.el6.centos.1 will be installed\n--&gt; Processing Dependency: httpd-tools = 2.2.15-15.el6.centos.1 for package: httpd-2.2.15-15.el6.centos.1.i686\n--&gt; Processing Dependency: libaprutil-1.so.0 for package: httpd-2.2.15-15.el6.centos.1.i686\n--&gt; Processing Dependency: libapr-1.so.0 for package: httpd-2.2.15-15.el6.centos.1.i686\n--&gt; Processing Dependency: apr-util-ldap for package: httpd-2.2.15-15.el6.centos.1.i686\n--&gt; Processing Dependency: \/etc\/mime.types for package: httpd-2.2.15-15.el6.centos.1.i686\n--&gt; Running transaction check\n---&gt; Package apr.i686 0:1.3.9-5.el6_2 will be installed\n---&gt; Package apr-util.i686 0:1.3.9-3.el6_0.1 will be installed\n---&gt; Package apr-util-ldap.i686 0:1.3.9-3.el6_0.1 will be installed\n---&gt; Package httpd-tools.i686 0:2.2.15-15.el6.centos.1 will be installed\n---&gt; Package mailcap.noarch 0:2.1.31-2.el6 will be installed\n--&gt; Finished Dependency Resolution\n\nDependencies Resolved\n\n====================================================================================================\n Package                 Arch             Version                           Repository         Size\n====================================================================================================\nInstalling:\n httpd                   i686             2.2.15-15.el6.centos.1            base              819 k\nInstalling for dependencies:\n apr                     i686             1.3.9-5.el6_2                     updates           129 k\n apr-util                i686             1.3.9-3.el6_0.1                   base               89 k\n apr-util-ldap           i686             1.3.9-3.el6_0.1                   base               15 k\n httpd-tools             i686             2.2.15-15.el6.centos.1            base               70 k\n mailcap                 noarch           2.1.31-2.el6                      base               27 k\n\nTransaction Summary\n====================================================================================================\nInstall       6 Package(s)\n\nTotal download size: 1.1 M\nInstalled size: 3.4 M\nDownloading Packages:\nSetting up and reading Presto delta metadata\nhttp:\/\/mirrors.hostemo.com\/CentOS\/6.3\/updates\/i386\/repodata\/1dbb6d68b2b39e2eab5888b04cfa0f20a86cb7c4ee54420384eaf8fa0f3d326d-prestodelta.xml.gz: [Errno 14] PYCURL ERROR 22 - \"The requested URL returned error: 404\"\nTrying other mirror.\nupdates\/prestodelta                                                          |  18 kB     00:00\nProcessing delta metadata\nPackage(s) data still to download: 1.1 M\n(1\/6): apr-1.3.9-5.el6_2.i686.rpm                                            | 129 kB     00:00\n(2\/6): apr-util-1.3.9-3.el6_0.1.i686.rpm                                     |  89 kB     00:00\n(3\/6): apr-util-ldap-1.3.9-3.el6_0.1.i686.rpm                                |  15 kB     00:00\n(4\/6): httpd-2.2.15-15.el6.centos.1.i686.rpm                                 | 819 kB     00:07\n(5\/6): httpd-tools-2.2.15-15.el6.centos.1.i686.rpm                           |  70 kB     00:00\n(6\/6): mailcap-2.1.31-2.el6.noarch.rpm                                       |  27 kB     00:00\n----------------------------------------------------------------------------------------------------\nTotal                                                               104 kB\/s | 1.1 MB     00:11\nwarning: rpmts_HdrFromFdno: Header V3 RSA\/SHA256 Signature, key ID c105b9de: NOKEY\nRetrieving key from file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-6\nImporting GPG key 0xC105B9DE:\n Userid : CentOS-6 Key (CentOS 6 Official Signing Key) \n Package: centos-release-6-3.el6.centos.9.i686 (@anaconda-CentOS-201207051201.i386\/6.3)\n From   : \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-6\nRunning rpm_check_debug\nRunning Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n  Installing : apr-1.3.9-5.el6_2.i686                                                           1\/6\n  Installing : mailcap-2.1.31-2.el6.noarch                                                      2\/6\n  Installing : apr-util-1.3.9-3.el6_0.1.i686                                                    3\/6\n  Installing : apr-util-ldap-1.3.9-3.el6_0.1.i686                                               4\/6\n  Installing : httpd-tools-2.2.15-15.el6.centos.1.i686                                          5\/6\n  Installing : httpd-2.2.15-15.el6.centos.1.i686                                                6\/6\n  Verifying  : apr-util-1.3.9-3.el6_0.1.i686                                                    1\/6\n  Verifying  : httpd-2.2.15-15.el6.centos.1.i686                                                2\/6\n  Verifying  : apr-1.3.9-5.el6_2.i686                                                           3\/6\n  Verifying  : apr-util-ldap-1.3.9-3.el6_0.1.i686                                               4\/6\n  Verifying  : httpd-tools-2.2.15-15.el6.centos.1.i686                                          5\/6\n  Verifying  : mailcap-2.1.31-2.el6.noarch                                                      6\/6\n\nInstalled:\n  httpd.i686 0:2.2.15-15.el6.centos.1\n\nDependency Installed:\n  apr.i686 0:1.3.9-5.el6_2                       apr-util.i686 0:1.3.9-3.el6_0.1\n  apr-util-ldap.i686 0:1.3.9-3.el6_0.1           httpd-tools.i686 0:2.2.15-15.el6.centos.1\n  mailcap.noarch 0:2.1.31-2.el6\n\nComplete!<\/pre>\n<p>2. Check httpd status :<\/p>\n<pre>[root@centos63 ~]# \/etc\/init.d\/httpd status\nhttpd is stopped<\/pre>\n<p>3. Start httpd service :<\/p>\n<pre>[root@centos63 ~]# \/etc\/init.d\/httpd start<\/pre>\n<p>Examples<\/p>\n<pre>[root@centos63 ~]# \/etc\/init.d\/httpd start\nStarting httpd: httpd: apr_sockaddr_info_get() failed for centos63.ehowstuff.local\nhttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName\n                                                           [  OK  ]<\/pre>\n<p>4. To remove above warning when starting httpd, follow the following steps. Go to line 276, change ServerName as below :<\/p>\n<pre>ServerName centos63.ehowstuff.local:80<\/pre>\n<p>5. Stop httpd service :<\/p>\n<pre>[root@centos63 ~]# \/etc\/init.d\/httpd stop\nStopping httpd:                                            [  OK  ]<\/pre>\n<p>6. Restart httpd service :<\/p>\n<pre>[root@centos63 ~]# \/etc\/init.d\/httpd restart\nStopping httpd:                                            [  OK  ]\nStarting httpd:                                            [  OK  ]<\/pre>\n<p>7. Make httpd start at boot :<\/p>\n<pre>[root@centos63 ~]# chkconfig httpd on<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This post will show you the quick steps to install apache httpd on linux CentOS 6.3 server. Apache httpd is one of the most popular web servers and has a&#8230;<\/p>\n","protected":false},"author":6,"featured_media":2030,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1103,2055],"tags":[1199,1244,1254,1473,1975,1536],"class_list":["post-3557","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","category-centos","tag-apache","tag-centos","tag-centos-6-3","tag-httpd","tag-install","tag-linux"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3557","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=3557"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3557\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/2030"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=3557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=3557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=3557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}