{"id":645,"date":"2016-02-03T17:11:43","date_gmt":"2016-02-03T15:11:43","guid":{"rendered":"http:\/\/www.systemcodegeeks.com\/?p=645"},"modified":"2018-06-01T14:13:03","modified_gmt":"2018-06-01T11:13:03","slug":"how-to-install-the-apache-web-server","status":"publish","type":"post","link":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/","title":{"rendered":"How to install the Apache web server (CentOS \/ Ubuntu Linux Installation)"},"content":{"rendered":"<p><em>In this post, we feature a comprehensive Tutorial on How to install Apache web server. This article is part of our Academy Course titled <a href=\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/apache-http-server-tutorial\/\">Apache HTTP Server Tutorial<\/a>.<\/em><\/p>\n<p>In this course, we provide a compilation of Apache HTTP Server tutorials that will help you get started with this web server. We cover a wide range of topics, from installing the server and performing a basic configuration, to configuring Virtual Hosts and SSL support. With our straightforward tutorials, you will be able to get your own projects up and running in minimum time. Check it out <a href=\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/apache-http-server-tutorial\/\">here<\/a>!<\/p>\n<p>In this example we will show how to install the Apache web server in CentOS 7.2 and Ubuntu 14.04.3 using the command line. According to <a href=\"http:\/\/news.netcraft.com\/\" target=\"_blank\" rel=\"noopener\">recent reports<\/a>, Apache continues to keep the lead in the number of websites and Internet-facing machines when compared to other web servers, such as Microsoft&#8217;s IIS or Nginx.<\/p>\n<p>Such has been the case for a long time, and that is why the skill of knowing how to install, configure, and leverage Apache is on the rise everywhere.<\/p>\n<p>In other words, by acquiring Apache skills you will learn how to use the number one server on the Internet.<br \/>\n[ulp id=&#8217;euI76dOod8fb2P3K&#8217;]<\/p>\n<h2>1. Installing Apache and utilities<\/h2>\n<p>Perhaps the first thing that we need to note is that the package that includes Apache has different names in CentOS (<strong>httpd<\/strong>) and Ubuntu (<strong>apache2<\/strong>). The good news is that in both cases, the package is included in the repositories that are configured when the operating system is installed. For that reason, you do not need to make any modifications to the repositories in order to install Apache.<\/p>\n<p>In addition, we will install an extra package named <strong>apache2-utils<\/strong> and <strong>httpd-tools<\/strong> in Ubuntu and CentOS, respectively. This package includes tools that will be useful to benchmark Apache, manage basic and digest authentication to web pages, and resolve IP addresses to host names in the logs, among other things.<\/p>\n<p>However, before you proceed please keep in mind that installing packages require administrative privileges, so you will need to run the following commands either as <strong>root<\/strong> (in CentOS) or using <strong>sudo<\/strong> (in Ubuntu). With that in mind, let us proceed with the installation.<\/p>\n<p>In CentOS, type<\/p>\n<pre class=\"brush:bash\">yum update &amp;&amp; yum install httpd httpd-tools -y\r\n<\/pre>\n<p>and press Enter.<\/p>\n<p>In Ubuntu, do<\/p>\n<pre class=\"brush:bash\">sudo apt-get update &amp;&amp; apt-get install apache2 apache2-utils -y\r\n<\/pre>\n<p>The package management system (<strong>yum<\/strong> or <strong>apt-get<\/strong>) will take care of installing all necessary dependencies required by the web server.<\/p>\n<h2>2. Checking running status of Apache<\/h2>\n<p>Once the installation completes, we need to check whether the web server has been automatically started. Typically, that is the case in Ubuntu but not in CentOS.<\/p>\n<p>To check the running status of Apache in Ubuntu, type<\/p>\n<pre class=\"brush:bash\">service apache2 status<\/pre>\n<p>In Fig. 1 you can see the expected output when the web server is running. Otherwise, if it is stopped (as we forced it to using<\/p>\n<pre class=\"brush:bash\">sudo service apache2 stop<\/pre>\n<p>which is also shown in the image) you will need to run<\/p>\n<pre class=\"brush:bash\">sudo service apache2 start<\/pre>\n<p>to restart it. By now, you can safely ignore the <strong>AH00558<\/strong> error message as it refers to an aspect of the web server configuration that we will cover in the next tutorial of the Apache series.<\/p>\n<figure id=\"attachment_653\" aria-describedby=\"caption-attachment-653\" style=\"width: 663px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/01part1.jpg\" rel=\"attachment wp-att-653\"><img decoding=\"async\" class=\"wp-image-653 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/01part1.jpg\" alt=\"install Apache web server Checking the running status of Apache in Ubuntu\" width=\"663\" height=\"230\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/01part1.jpg 663w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/01part1-300x104.jpg 300w\" sizes=\"(max-width: 663px) 100vw, 663px\" \/><\/a><figcaption id=\"caption-attachment-653\" class=\"wp-caption-text\">Figure1: Checking the running status of Apache in Ubuntu<\/figcaption><\/figure>\n<p>In CentOS, you will use <strong>systemctl<\/strong> (the system and service manager tool) to verify the status of Apache:<\/p>\n<pre class=\"brush:bash\">systemctl status httpd<\/pre>\n<p>Fig. 2 shows the expected output when the web server is running and when it is not.<\/p>\n<figure id=\"attachment_659\" aria-describedby=\"caption-attachment-659\" style=\"width: 477px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/02part1.jpg\" rel=\"attachment wp-att-659\"><img decoding=\"async\" class=\"wp-image-659 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/02part1.jpg\" alt=\"Figure 2: install Apache web server- Using systemctl to check Apache's status in CentOS\" width=\"477\" height=\"284\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/02part1.jpg 477w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/02part1-300x179.jpg 300w\" sizes=\"(max-width: 477px) 100vw, 477px\" \/><\/a><figcaption id=\"caption-attachment-659\" class=\"wp-caption-text\">Figure 2: Using systemctl to check Apache&#8217;s status in CentOS<\/figcaption><\/figure>\n<p>Last but not least, we need to ensure that the web server is started automatically the next time the system boots. In Ubuntu, the installation process by default will configure it to start after a reboot whereas in CentOS, you will need to start it by hand:<\/p>\n<pre class=\"brush:bash\">systemctl start httpd<\/pre>\n<p>and enable it for future reboots:<\/p>\n<pre class=\"brush:bash\">systemctl enable httpd<\/pre>\n<p>This ensures that Apache will be started by <strong>systemd<\/strong> each time the machine boots.<\/p>\n<p>In Ubuntu, you can also get more information about Apache (web traffic statistics, server load and uptime, percentage of CPU usage, number of requests currently being processed, to name a few examples) using<\/p>\n<pre class=\"brush:bash\">apachectl status<\/pre>\n<p>In CentOS this command is aliased to<\/p>\n<pre class=\"brush:bash\">systemctl status httpd<\/pre>\n<p>so you will not get more details than those shown in Fig. 2).<\/p>\n<h2>3. Serving your first website with Apache<\/h2>\n<p>After you have successfully installed Apache and got it running, it is time to look into serving web pages. Although we will discuss this further in later articles, you need to know that Apache not only is used as a standalone server (that is, to store a single website or application), but also to run several sites (also known as <strong>virtual hosts<\/strong>) at the same time.<\/p>\n<p>For the time being, it is sufficient to indicate the place where the web server stores pages and see how it returns them upon a request performed by a client &#8211; all in the context of a standalone server. To see Apache in action for the first time, launch a web browser and point it to the IP address of the machine where Apache is running, as shown in Fig. 3 (192.168.0.29 is a CentOS and 192.168.0.30 is Ubuntu).<\/p>\n<figure id=\"attachment_661\" aria-describedby=\"caption-attachment-661\" style=\"width: 345px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/03part1.jpg\" rel=\"attachment wp-att-661\"><img decoding=\"async\" class=\"wp-image-661 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/03part1.jpg\" alt=\"Figure 3:install Apache web server- Apache test page in CentOS and Ubuntu\" width=\"345\" height=\"426\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/03part1.jpg 345w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/03part1-243x300.jpg 243w\" sizes=\"(max-width: 345px) 100vw, 345px\" \/><\/a><figcaption id=\"caption-attachment-661\" class=\"wp-caption-text\">Figure 3: Apache test page in CentOS and Ubuntu<\/figcaption><\/figure>\n<div class=\"tip\">\n<p>If you cannot see the test page after starting Apache in CentOS and your web browser says it can&#8217;t establish a connection to the web server, please check the following:<\/p>\n<ol>\n<li>Did you misspell the IP address in the browser&#8217;s URL bar?<\/li>\n<li>Is firewalld, the default firewall in CentOS 7 allowing http traffic?<\/li>\n<\/ol>\n<p>You can check #2 as follows:<\/p>\n<p>Type<\/p>\n<pre class=\"brush:bash\">firewall-cmd --add-services=http<\/pre>\n<p>then<\/p>\n<pre class=\"brush:bash\">firewall-cmd --add-services=http --permanent<\/pre>\n<p>and hit Enter. Then try to access the web server by IP as explained earlier.<\/p>\n<\/div>\n<p>To replace this default test page by one of ours, create a simple html file and save it as index.html in \/var\/www\/html. You can use the following example if you want:<\/p>\n<pre class=\"brush:xml\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n\t&lt;head&gt;\r\n\t&lt;meta charset=utf-8 \/&gt;\r\n\t\t&lt;title&gt;Your first page served by Apache&lt;\/title&gt;\r\n\t&lt;\/head&gt;\r\n\t&lt;body&gt;\r\n&lt;h1&gt;Check out the Apache series in SystemCodeGeeks.com!&lt;\/h1&gt;\r\n\t\t&lt;img src=\"http:\/\/systemcodegeeks.javacodegeeks.netdna-cdn.com\/wp-content\/uploads\/2016\/01\/SystemCodeGeeks-logo.png\" \/&gt;\r\n\t&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>The result can be seen in Fig. 4:<\/p>\n<figure id=\"attachment_674\" aria-describedby=\"caption-attachment-674\" style=\"width: 511px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/04part1-1.jpg\" rel=\"attachment wp-att-674\"><img decoding=\"async\" class=\"wp-image-674 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/04part1-1.jpg\" alt=\"Figure 4: install Apache web server- Your first web page served by Apache\" width=\"511\" height=\"345\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/04part1-1.jpg 511w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/04part1-1-300x203.jpg 300w\" sizes=\"(max-width: 511px) 100vw, 511px\" \/><\/a><figcaption id=\"caption-attachment-674\" class=\"wp-caption-text\">Figure 4: Your first web page served by Apache<\/figcaption><\/figure>\n<p>Next, feel free to create other subdirectories under \/var\/www\/html and more html pages, and hyperlinks between them.<\/p>\n<p>Congratulations! You have already taken your first step towards mastering Apache.<\/p>\n<h2>4. Wrapping up<\/h2>\n<p>In this tutorial we have explained how to install Apache, the most used server used by websites and Internet-facing computers, in CentOS 7 and Ubuntu 14.04. In addition, we showed you how to replace the default test page with a custom one.<\/p>\n<p>In the next articles of this series, we will discuss in greater depth the capabilities of Apache. Stay tuned.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, we feature a comprehensive Tutorial on How to install Apache web server. This article is part of our Academy Course titled Apache HTTP Server Tutorial. In this course, we provide a compilation of Apache HTTP Server tutorials that will help you get started with this web server. We cover a wide range &hellip;<\/p>\n","protected":false},"author":15,"featured_media":184,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-645","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install the Apache web server (CentOS \/ Ubuntu Linux Installation) - System Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Interested to learn more about How to install Apache web server? Then check our latest example which describes the process of the Apache Web Server Installation. Straightforward and simple. Check it out!\" \/>\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.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install the Apache web server (CentOS \/ Ubuntu Linux Installation) - System Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Interested to learn more about How to install Apache web server? Then check our latest example which describes the process of the Apache Web Server Installation. Straightforward and simple. Check it out!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/\" \/>\n<meta property=\"og:site_name\" content=\"System Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/systemcodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/gacanepa\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-03T15:11:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-06-01T11:13:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Gabriel Canepa\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@gacanepa\" \/>\n<meta name=\"twitter:site\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gabriel Canepa\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/\"},\"author\":{\"name\":\"Gabriel Canepa\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/967da353d0f1a1de21c9504942625a5f\"},\"headline\":\"How to install the Apache web server (CentOS \/ Ubuntu Linux Installation)\",\"datePublished\":\"2016-02-03T15:11:43+00:00\",\"dateModified\":\"2018-06-01T11:13:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/\"},\"wordCount\":1095,\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg\",\"articleSection\":[\"Apache\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/\",\"name\":\"How to install the Apache web server (CentOS \/ Ubuntu Linux Installation) - System Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg\",\"datePublished\":\"2016-02-03T15:11:43+00:00\",\"dateModified\":\"2018-06-01T11:13:03+00:00\",\"description\":\"Interested to learn more about How to install Apache web server? Then check our latest example which describes the process of the Apache Web Server Installation. Straightforward and simple. Check it out!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/#primaryimage\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.systemcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web Servers\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/web-servers\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Apache\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/web-servers\/apache\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to install the Apache web server (CentOS \/ Ubuntu Linux Installation)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"name\":\"System Code Geeks\",\"description\":\"Operating System Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/systemcodegeeks\",\"https:\/\/x.com\/systemcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/967da353d0f1a1de21c9504942625a5f\",\"name\":\"Gabriel Canepa\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/27b3ea2a3fb1de4ed1c8694a1465c099a86586d8b833a0d852a26d76d750df9f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/27b3ea2a3fb1de4ed1c8694a1465c099a86586d8b833a0d852a26d76d750df9f?s=96&d=mm&r=g\",\"caption\":\"Gabriel Canepa\"},\"description\":\"Gabriel Canepa is a Linux Foundation Certified System Administrator (LFCS-1500-0576-0100) and web developer from Villa Mercedes, San Luis, Argentina. He works for a worldwide leading consumer product company and takes great pleasure in using FOSS tools to increase productivity in all areas of his daily work. When he's not typing commands or writing code or articles, he enjoys telling bedtime stories with his wife to his two little daughters and playing with them, the great pleasure of his life.\",\"sameAs\":[\"http:\/\/www.gabrielcanepa.com.ar\/\",\"https:\/\/www.facebook.com\/gacanepa\",\"https:\/\/ar.linkedin.com\/in\/gacanepa\",\"https:\/\/x.com\/gacanepa\"],\"url\":\"https:\/\/www.systemcodegeeks.com\/author\/gabriel-canepa\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install the Apache web server (CentOS \/ Ubuntu Linux Installation) - System Code Geeks - 2026","description":"Interested to learn more about How to install Apache web server? Then check our latest example which describes the process of the Apache Web Server Installation. Straightforward and simple. Check it out!","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.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/","og_locale":"en_US","og_type":"article","og_title":"How to install the Apache web server (CentOS \/ Ubuntu Linux Installation) - System Code Geeks - 2026","og_description":"Interested to learn more about How to install Apache web server? Then check our latest example which describes the process of the Apache Web Server Installation. Straightforward and simple. Check it out!","og_url":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/","og_site_name":"System Code Geeks","article_publisher":"https:\/\/www.facebook.com\/systemcodegeeks","article_author":"https:\/\/www.facebook.com\/gacanepa","article_published_time":"2016-02-03T15:11:43+00:00","article_modified_time":"2018-06-01T11:13:03+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg","type":"image\/jpeg"}],"author":"Gabriel Canepa","twitter_card":"summary_large_image","twitter_creator":"@gacanepa","twitter_site":"@systemcodegeeks","twitter_misc":{"Written by":"Gabriel Canepa","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/#article","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/"},"author":{"name":"Gabriel Canepa","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/967da353d0f1a1de21c9504942625a5f"},"headline":"How to install the Apache web server (CentOS \/ Ubuntu Linux Installation)","datePublished":"2016-02-03T15:11:43+00:00","dateModified":"2018-06-01T11:13:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/"},"wordCount":1095,"publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg","articleSection":["Apache"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/","url":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/","name":"How to install the Apache web server (CentOS \/ Ubuntu Linux Installation) - System Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/#primaryimage"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg","datePublished":"2016-02-03T15:11:43+00:00","dateModified":"2018-06-01T11:13:03+00:00","description":"Interested to learn more about How to install Apache web server? Then check our latest example which describes the process of the Apache Web Server Installation. Straightforward and simple. Check it out!","breadcrumb":{"@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/#primaryimage","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/how-to-install-the-apache-web-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.systemcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Web Servers","item":"https:\/\/www.systemcodegeeks.com\/category\/web-servers\/"},{"@type":"ListItem","position":3,"name":"Apache","item":"https:\/\/www.systemcodegeeks.com\/category\/web-servers\/apache\/"},{"@type":"ListItem","position":4,"name":"How to install the Apache web server (CentOS \/ Ubuntu Linux Installation)"}]},{"@type":"WebSite","@id":"https:\/\/www.systemcodegeeks.com\/#website","url":"https:\/\/www.systemcodegeeks.com\/","name":"System Code Geeks","description":"Operating System Developers Resource Center","publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.systemcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.systemcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/systemcodegeeks","https:\/\/x.com\/systemcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/967da353d0f1a1de21c9504942625a5f","name":"Gabriel Canepa","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/27b3ea2a3fb1de4ed1c8694a1465c099a86586d8b833a0d852a26d76d750df9f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/27b3ea2a3fb1de4ed1c8694a1465c099a86586d8b833a0d852a26d76d750df9f?s=96&d=mm&r=g","caption":"Gabriel Canepa"},"description":"Gabriel Canepa is a Linux Foundation Certified System Administrator (LFCS-1500-0576-0100) and web developer from Villa Mercedes, San Luis, Argentina. He works for a worldwide leading consumer product company and takes great pleasure in using FOSS tools to increase productivity in all areas of his daily work. When he's not typing commands or writing code or articles, he enjoys telling bedtime stories with his wife to his two little daughters and playing with them, the great pleasure of his life.","sameAs":["http:\/\/www.gabrielcanepa.com.ar\/","https:\/\/www.facebook.com\/gacanepa","https:\/\/ar.linkedin.com\/in\/gacanepa","https:\/\/x.com\/gacanepa"],"url":"https:\/\/www.systemcodegeeks.com\/author\/gabriel-canepa\/"}]}},"_links":{"self":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/comments?post=645"}],"version-history":[{"count":0,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/645\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media\/184"}],"wp:attachment":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media?parent=645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/categories?post=645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/tags?post=645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}