{"id":28932,"date":"2018-10-26T04:52:39","date_gmt":"2018-10-26T09:52:39","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=28932"},"modified":"2025-05-15T05:58:11","modified_gmt":"2025-05-15T10:58:11","slug":"how-to-install-apache-on-centos","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/","title":{"rendered":"How to Install Apache on CentOS (with Screenshots)"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><figure id=\"attachment_28994\" aria-describedby=\"caption-attachment-28994\" style=\"width: 732px\" class=\"wp-caption alignnone\"><img decoding=\"async\" class=\"size-full wp-image-28994\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Install-Apache-on-CentOS.jpg\" alt=\"How to Install Apache on CentOS \" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Install-Apache-on-CentOS.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Install-Apache-on-CentOS-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Install-Apache-on-CentOS-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><figcaption id=\"caption-attachment-28994\" class=\"wp-caption-text\">How to Install Apache on CentOS<\/figcaption><\/figure>\n<p>If you&#8217;ve just got a shiny new VPS or dedicated server to play with, chances are that you want to use it as a web server &#8211; and that means Apache. Each Linux flavor has a slightly different Apache configuration and usage, so it&#8217;s important to know which one you want to use. In this tutorial, We&#8217;ll show you<strong> how to install Apache on CentOS<\/strong> and access basic files on it.<!--more--><\/p>\n<p>There&#8217;s a lot of stuff to do <i>after<\/i> the installation like setting up the DNS entries and configuring the virtual hosts etc, but for now, let&#8217;s just get Apache up and running.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f66622c92d4\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f66622c92d4\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#Directly-Accessing-the-Server-with-the-IP-Address\" >Directly Accessing the Server with the IP Address<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#Step-1-Installing-the-httpd-Package\" >Step 1: Installing the httpd Package<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#Step-2-Starting-the-httpd-Service\" >Step 2: Starting the httpd Service<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#Step-3-Maybe-Open-Port-80-from-Your-Firewall\" >Step 3: (Maybe) Open Port 80 from Your Firewall<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#Step-4-Testing-Apache\" >Step 4: Testing Apache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#Step-5-Accessing-a-Page\" >Step 5: Accessing a Page<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#Step-5-Further-Configuration\" >Step 5: Further Configuration<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"western\"><span class=\"ez-toc-section\" id=\"Directly-Accessing-the-Server-with-the-IP-Address\"><\/span>Directly Accessing the Server with the IP Address<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you don&#8217;t have a package on your system that listens to port 80 on your server, you&#8217;ll just get a message saying that the &#8220;Site can&#8217;t be reached&#8221;. To check, first find your IP address by running the following command:<\/p>\n<pre>ifconfig<\/pre>\n<p>This should give you an output like this:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28940\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Apache-installation-on-CentOS.jpg\" alt=\"\" width=\"650\" height=\"375\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Apache-installation-on-CentOS.jpg 650w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Apache-installation-on-CentOS-150x87.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Apache-installation-on-CentOS-300x173.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>The numbers in red in the screenshot above represent the IP address for your server. Plugging this into the browser before installing Apache, I get nothing as shown here:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28934\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Site-Cant-Be-Reached-No-Apache.jpg\" alt=\"installing apache on centos\" width=\"650\" height=\"620\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Site-Cant-Be-Reached-No-Apache.jpg 650w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Site-Cant-Be-Reached-No-Apache-150x143.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Site-Cant-Be-Reached-No-Apache-300x286.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>This is because there&#8217;s nothing attached to port 80 on my system. Port 80 is the default port on which all browsers make their HTTP requests. HTTPS requests, on the other hand, go to port no 442. After we finish installing Apache on our server, the above screenshot will look very different!<\/p>\n<h2 class=\"western\"><span class=\"ez-toc-section\" id=\"Step-1-Installing-the-httpd-Package\"><\/span>Step 1: Installing the httpd Package<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>On CentOS, the <a href=\"https:\/\/cyberpanel.net\/blog\/what-is-apache-server-how-it-works\/\" target=\"_blank\" rel=\"noopener\">Apache server<\/a> goes by the &#8220;httpd&#8221; package name. On Ubuntu, the package is called &#8220;apache2&#8221;. It doesn&#8217;t need the extended &#8220;epel-release&#8221; repository, and can be installed directly from the base packages with the following command:<\/p>\n<pre>sudo yum install httpd<\/pre>\n<p>This will run through the installation process and ask for confirmation like this:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28935\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Yum-Install-HTTPD.jpg\" alt=\"install apache on centos\" width=\"650\" height=\"446\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Yum-Install-HTTPD.jpg 650w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Yum-Install-HTTPD-150x103.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Yum-Install-HTTPD-300x206.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>You can see here that it&#8217;s not large. Just one file, and three dependencies with a total of 31M.<\/p>\n<h2 class=\"western\"><span class=\"ez-toc-section\" id=\"Step-2-Starting-the-httpd-Service\"><\/span>Step 2: Starting the httpd Service<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now that we have httpd installed, we need to start the service. For this, make sure that you have sudo access or are root, and type in the following command:<\/p>\n<pre>sudo systemctl start httpd<\/pre>\n<p>Provide your admin password, and the httpd service will start. You can check the status of the service by typing the following:<\/p>\n<pre>systemctl status httpd<\/pre>\n<p>This will give you a response like this if everything is working great:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28936\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/httpd-enabled-and-running.jpg\" alt=\"httpd enabled and running\" width=\"650\" height=\"434\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/httpd-enabled-and-running.jpg 650w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/httpd-enabled-and-running-150x100.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/httpd-enabled-and-running-300x200.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>Note the green &#8220;active (running)&#8221; message. Not that we know httpd is functioning, it&#8217;s time to test it out!<\/p>\n<h2 class=\"western\"><span class=\"ez-toc-section\" id=\"Step-3-Maybe-Open-Port-80-from-Your-Firewall\"><\/span>Step 3: (Maybe) Open Port 80 from Your Firewall<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Depending on whether or not you&#8217;ve installed a firewall yet, you need to ensure that port 80 is opened for incoming connections. There are many firewall programs out there, but my personal favorite is ConfigServer Security &amp; Firewall (CSF).<\/p>\n<p>If you haven&#8217;t installed a firewall yet, you can skip this step, but when you <i>do<\/i> have one, don&#8217;t forget open port 80 (and 443 for HTTPS) so that you can continue to use Apache.<\/p>\n<h2 class=\"western\"><span class=\"ez-toc-section\" id=\"Step-4-Testing-Apache\"><\/span>Step 4: Testing Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We&#8217;ve already done the hard work. Open a browser and visit your IP address as you did before. If everything works, you should see a page like this:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28937\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Apache-Installed-and-Accessible-from-IP.jpg\" alt=\"Apache Installed and Accessible from IP\" width=\"742\" height=\"573\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Apache-Installed-and-Accessible-from-IP.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Apache-Installed-and-Accessible-from-IP-150x116.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Apache-Installed-and-Accessible-from-IP-300x232.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>That&#8217;s it! You&#8217;ve successfully installed Apache on your CentOS server, and got it to work!<\/p>\n<h2 class=\"western\"><span class=\"ez-toc-section\" id=\"Step-5-Accessing-a-Page\"><\/span>Step 5: Accessing a Page<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>By default, the directory on which Apache checks for files is:<\/p>\n<p>\/var\/www\/html<\/p>\n<p>We can test this. For example, we created a file called &#8220;basic_html.html&#8221; with skeleton HTML code and placed it in \/var\/www\/html.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28941\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/install-apache-centos.jpg\" alt=\"install apache centos\" width=\"650\" height=\"263\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/install-apache-centos.jpg 650w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/install-apache-centos-150x61.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/install-apache-centos-300x121.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>We can access it directly like this:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28938\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Accessing-Basic-HTML-on-Apache.jpg\" alt=\"Accessing Basic HTML on Apache\" width=\"650\" height=\"238\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Accessing-Basic-HTML-on-Apache.jpg 650w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Accessing-Basic-HTML-on-Apache-150x55.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Accessing-Basic-HTML-on-Apache-300x110.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>As you can see, it&#8217;s picked up and displayed.<\/p>\n<h2 class=\"western\"><span class=\"ez-toc-section\" id=\"Step-5-Further-Configuration\"><\/span>Step 5: Further Configuration<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Of course, there&#8217;s still a lot to be done. DNS configuration to point your own domain(s) to the server, configuring the virtual host&#8217;s file etc. We&#8217;ll look at all of that in future articles!<\/p>\n<hr \/>\n<p>If you use one of our fully managed <a href=\"https:\/\/www.rosehosting.com\/linux-vps-hosting\/\">Linux VPS hosting<\/a> services, you don&#8217;t have to do any of the above. Simply ask our dedicated admin team and they will gladly take care of all the server work for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve just got a shiny new VPS or dedicated server to play with, chances are that you want to &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Apache on CentOS (with Screenshots)\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#more-28932\" aria-label=\"Read more about How to Install Apache on CentOS (with Screenshots)\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":28994,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1707],"tags":[],"class_list":["post-28932","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-web-servers","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Apache on CentOS (with Screenshots) | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install Apache on CentOS (with Screenshots) | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Apache on CentOS (with Screenshots)\" \/>\n<meta property=\"og:description\" content=\"How to Install Apache on CentOS (with Screenshots) | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-26T09:52:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-15T10:58:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Install-Apache-on-CentOS.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-on-centos\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-on-centos\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Apache on CentOS (with Screenshots)\",\"datePublished\":\"2018-10-26T09:52:39+00:00\",\"dateModified\":\"2025-05-15T10:58:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-on-centos\\\/\"},\"wordCount\":706,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-on-centos\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/How-to-Install-Apache-on-CentOS.jpg\",\"articleSection\":[\"Tutorials\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-on-centos\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-on-centos\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-on-centos\\\/\",\"name\":\"How to Install Apache on CentOS (with Screenshots) | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-on-centos\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-on-centos\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/How-to-Install-Apache-on-CentOS.jpg\",\"datePublished\":\"2018-10-26T09:52:39+00:00\",\"dateModified\":\"2025-05-15T10:58:11+00:00\",\"description\":\"How to Install Apache on CentOS (with Screenshots) | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-on-centos\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-on-centos\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-on-centos\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/How-to-Install-Apache-on-CentOS.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/How-to-Install-Apache-on-CentOS.jpg\",\"width\":742,\"height\":372,\"caption\":\"How to Install Apache on CentOS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-on-centos\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Apache on CentOS (with Screenshots)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Apache on CentOS (with Screenshots) | RoseHosting","description":"How to Install Apache on CentOS (with Screenshots) | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Apache on CentOS (with Screenshots)","og_description":"How to Install Apache on CentOS (with Screenshots) | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-10-26T09:52:39+00:00","article_modified_time":"2025-05-15T10:58:11+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Install-Apache-on-CentOS.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Apache on CentOS (with Screenshots)","datePublished":"2018-10-26T09:52:39+00:00","dateModified":"2025-05-15T10:58:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/"},"wordCount":706,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Install-Apache-on-CentOS.jpg","articleSection":["Tutorials","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/","name":"How to Install Apache on CentOS (with Screenshots) | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Install-Apache-on-CentOS.jpg","datePublished":"2018-10-26T09:52:39+00:00","dateModified":"2025-05-15T10:58:11+00:00","description":"How to Install Apache on CentOS (with Screenshots) | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Install-Apache-on-CentOS.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Install-Apache-on-CentOS.jpg","width":742,"height":372,"caption":"How to Install Apache on CentOS"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-on-centos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Apache on CentOS (with Screenshots)"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/28932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=28932"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/28932\/revisions"}],"predecessor-version":[{"id":50458,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/28932\/revisions\/50458"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/28994"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=28932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=28932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=28932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}