{"id":515,"date":"2018-05-22T09:39:15","date_gmt":"2018-05-22T09:39:15","guid":{"rendered":"https:\/\/www.dewlance.com\/kb\/?p=515"},"modified":"2022-08-16T10:18:42","modified_gmt":"2022-08-16T10:18:42","slug":"how-to-install-and-configure-apache-webserver-on-ubuntu-16","status":"publish","type":"post","link":"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16","title":{"rendered":"How to install and configure Apache webserver on Ubuntu 16 &#8211; in 2026"},"content":{"rendered":"<p>The most widely-used web server is what we use the term Apache HTTP. The reasons for being so beneficial include having numerous strong features such as robust media support, dynamically loadable modules, and substantial integration with other well-liked and amateur software.<br \/>\nThis guide is created to help you install an Apache web server on the Ubuntu 16 server.<\/p>\n<p>&nbsp;<\/p>\n<h4>Prerequisites<\/h4>\n<p>First of all, configure a frequent, continual, and non-root user with sudo privileges on the server. Moreover, non-vital and less essential ports should be blocked, so you need to configure a basic firewall. Consider learning firewall configuration before moving ahead. If you\u2019re not aware of how to configure a regular user account and have no knowledge of setting up the firewall, please learn the primary server set up guide before reading this article.<br \/>\nAfter having the account established and available, start with logging in your non-root user.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-517\" src=\"https:\/\/www.dewlance.com\/kb\/wp-content\/uploads\/2018\/05\/how-to-install-apache-webserver-on-ubuntu-16-simple-command.png\" alt=\"\" width=\"550\" height=\"608\" srcset=\"https:\/\/www.dewlance.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-apache-webserver-on-ubuntu-16-simple-command.png 550w, https:\/\/www.dewlance.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-apache-webserver-on-ubuntu-16-simple-command-181x200.png 181w, https:\/\/www.dewlance.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-apache-webserver-on-ubuntu-16-simple-command-271x300.png 271w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h5><strong>Steps to follow<\/strong><\/h5>\n<p>&nbsp;<\/p>\n<h4>Step 1: Installing Apache<\/h4>\n<p>No extra things are needed to install Apache as it\u2019s available in Ubuntu\u2019s default store Just use the conventional tool created to manage things. Reflection the latest upstream changes are required and you can avail this by updating the local package. Afterward, the next step is to install the Apache2 package. Just confirm the installation and make sure all depended and required components have been installed.<\/p>\n<pre>sudo apt-get update\r\nsudo apt-get install apache2<\/pre>\n<h4><\/h4>\n<p>&nbsp;<\/p>\n<h4>Step 2: Adjusting the Firewall<\/h4>\n<p>Modifying the firewall is essential since you need to permit access to the web ports. So, make sure you have done necessary editing before testing Apache. Just keep in mind the guidelines in the prerequisites and configure a UFW firewall because it\u2019s essential to limit or stop access to the server.<\/p>\n<pre>sudo ufw allow 'Apache Full'\r\nsudo ufw status<\/pre>\n<p>Status should show \u201cActve\u201d.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4>Step 3: Checking the web server<\/h4>\n<p>Once you have finished the installation process, Ubuntu 16 will run Apache. Access the Apache landing page and check whether the program is running or not. You\u2019re not limited to accessing apache landing pages because there are two other options either to check this: your server\u2019s domain name and the IP address.<br \/>\nIn case of not setting up a domain name, use server\u2019s public IP address, alternatively. Figuring out IP address is not complicated as you may need a few command lines using some ways.<\/p>\n<pre>sudo systemctl status apache2<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4>Step 4: Managing the Apache Process<\/h4>\n<p>After having the web server up and active, there are a few primary administration commands. Now, you have to check stopping, starting, and stopping then starting the web server.<\/p>\n<p>Type these words to stop the web server:<\/p>\n<pre>sudo systemctl stop apache2<\/pre>\n<p>&nbsp;<\/p>\n<p>Once it stops, type to start it again<\/p>\n<pre>sudo systemctl start apache2<\/pre>\n<p>&nbsp;<\/p>\n<p>You will need typing these words for stopping then starting the web server<\/p>\n<pre>sudo systemctl restart apache2<\/pre>\n<h4><\/h4>\n<p><strong>Now you can access it by accessing your IP in Browser.<\/strong> For example http:\/\/$ip-here\u00a0 (Replace $ip-here with your VPS\/Server IP.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4>Conclusion<\/h4>\n<p>Congratulations. You have successfully installed the web server. There are several things to explore the type of content as well as you can benefit from the technologies to have greater and richer experience.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The most widely-used web server is what we use the term Apache HTTP. The reasons for being so beneficial include having numerous strong features such as robust media support, dynamically loadable modules, and substantial integration with other well-liked and amateur software. This guide is created to help you install an Apache web server on the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[706],"tags":[],"class_list":["post-515","post","type-post","status-publish","format-standard","hentry","category-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install and configure Apache webserver on Ubuntu 16 - in 2026 - Web Hosting Blog - Dewlance<\/title>\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.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install and configure Apache webserver on Ubuntu 16 - in 2026 - Web Hosting Blog - Dewlance\" \/>\n<meta property=\"og:description\" content=\"The most widely-used web server is what we use the term Apache HTTP. The reasons for being so beneficial include having numerous strong features such as robust media support, dynamically loadable modules, and substantial integration with other well-liked and amateur software. This guide is created to help you install an Apache web server on the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting Blog - Dewlance\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dewlance.hosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-22T09:39:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-16T10:18:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dewlance.com\/kb\/wp-content\/uploads\/2018\/05\/how-to-install-apache-webserver-on-ubuntu-16-simple-command.png\" \/>\n<meta name=\"author\" content=\"K.S\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dewlance\" \/>\n<meta name=\"twitter:site\" content=\"@dewlance\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"K.S\" \/>\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.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16\"},\"author\":{\"name\":\"K.S\",\"@id\":\"https:\/\/www.dewlance.com\/blog\/#\/schema\/person\/0fe2f240cf5589599b50b9385ee53694\"},\"headline\":\"How to install and configure Apache webserver on Ubuntu 16 &#8211; in 2026\",\"datePublished\":\"2018-05-22T09:39:15+00:00\",\"dateModified\":\"2022-08-16T10:18:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16\"},\"wordCount\":515,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.dewlance.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dewlance.com\/kb\/wp-content\/uploads\/2018\/05\/how-to-install-apache-webserver-on-ubuntu-16-simple-command.png\",\"articleSection\":[\"VPS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16\",\"url\":\"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16\",\"name\":\"How to install and configure Apache webserver on Ubuntu 16 - in 2026 - Web Hosting Blog - Dewlance\",\"isPartOf\":{\"@id\":\"https:\/\/www.dewlance.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dewlance.com\/kb\/wp-content\/uploads\/2018\/05\/how-to-install-apache-webserver-on-ubuntu-16-simple-command.png\",\"datePublished\":\"2018-05-22T09:39:15+00:00\",\"dateModified\":\"2022-08-16T10:18:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#primaryimage\",\"url\":\"https:\/\/www.dewlance.com\/kb\/wp-content\/uploads\/2018\/05\/how-to-install-apache-webserver-on-ubuntu-16-simple-command.png\",\"contentUrl\":\"https:\/\/www.dewlance.com\/kb\/wp-content\/uploads\/2018\/05\/how-to-install-apache-webserver-on-ubuntu-16-simple-command.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.dewlance.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install and configure Apache webserver on Ubuntu 16 &#8211; in 2022\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dewlance.com\/blog\/#website\",\"url\":\"https:\/\/www.dewlance.com\/blog\/\",\"name\":\"Web Hosting Blog - Dewlance\",\"description\":\"Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.dewlance.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dewlance.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.dewlance.com\/blog\/#organization\",\"name\":\"Dewlance\",\"url\":\"https:\/\/www.dewlance.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dewlance.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.dewlance.com\/blog\/wp-content\/uploads\/2022\/08\/logo.png\",\"contentUrl\":\"https:\/\/www.dewlance.com\/blog\/wp-content\/uploads\/2022\/08\/logo.png\",\"width\":274,\"height\":89,\"caption\":\"Dewlance\"},\"image\":{\"@id\":\"https:\/\/www.dewlance.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/dewlance.hosting\/\",\"https:\/\/x.com\/dewlance\",\"https:\/\/www.youtube.com\/user\/dewlances\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dewlance.com\/blog\/#\/schema\/person\/0fe2f240cf5589599b50b9385ee53694\",\"name\":\"K.S\",\"url\":\"https:\/\/www.dewlance.com\/blog\/author\/dewlancevpsxen\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install and configure Apache webserver on Ubuntu 16 - in 2026 - Web Hosting Blog - Dewlance","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.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16","og_locale":"en_US","og_type":"article","og_title":"How to install and configure Apache webserver on Ubuntu 16 - in 2026 - Web Hosting Blog - Dewlance","og_description":"The most widely-used web server is what we use the term Apache HTTP. The reasons for being so beneficial include having numerous strong features such as robust media support, dynamically loadable modules, and substantial integration with other well-liked and amateur software. This guide is created to help you install an Apache web server on the [&hellip;]","og_url":"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16","og_site_name":"Web Hosting Blog - Dewlance","article_publisher":"https:\/\/www.facebook.com\/dewlance.hosting\/","article_published_time":"2018-05-22T09:39:15+00:00","article_modified_time":"2022-08-16T10:18:42+00:00","og_image":[{"url":"https:\/\/www.dewlance.com\/kb\/wp-content\/uploads\/2018\/05\/how-to-install-apache-webserver-on-ubuntu-16-simple-command.png","type":"","width":"","height":""}],"author":"K.S","twitter_card":"summary_large_image","twitter_creator":"@dewlance","twitter_site":"@dewlance","twitter_misc":{"Written by":"K.S","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#article","isPartOf":{"@id":"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16"},"author":{"name":"K.S","@id":"https:\/\/www.dewlance.com\/blog\/#\/schema\/person\/0fe2f240cf5589599b50b9385ee53694"},"headline":"How to install and configure Apache webserver on Ubuntu 16 &#8211; in 2026","datePublished":"2018-05-22T09:39:15+00:00","dateModified":"2022-08-16T10:18:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16"},"wordCount":515,"commentCount":0,"publisher":{"@id":"https:\/\/www.dewlance.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#primaryimage"},"thumbnailUrl":"https:\/\/www.dewlance.com\/kb\/wp-content\/uploads\/2018\/05\/how-to-install-apache-webserver-on-ubuntu-16-simple-command.png","articleSection":["VPS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16","url":"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16","name":"How to install and configure Apache webserver on Ubuntu 16 - in 2026 - Web Hosting Blog - Dewlance","isPartOf":{"@id":"https:\/\/www.dewlance.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#primaryimage"},"image":{"@id":"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#primaryimage"},"thumbnailUrl":"https:\/\/www.dewlance.com\/kb\/wp-content\/uploads\/2018\/05\/how-to-install-apache-webserver-on-ubuntu-16-simple-command.png","datePublished":"2018-05-22T09:39:15+00:00","dateModified":"2022-08-16T10:18:42+00:00","breadcrumb":{"@id":"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#primaryimage","url":"https:\/\/www.dewlance.com\/kb\/wp-content\/uploads\/2018\/05\/how-to-install-apache-webserver-on-ubuntu-16-simple-command.png","contentUrl":"https:\/\/www.dewlance.com\/kb\/wp-content\/uploads\/2018\/05\/how-to-install-apache-webserver-on-ubuntu-16-simple-command.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dewlance.com\/blog\/how-to-install-and-configure-apache-webserver-on-ubuntu-16#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dewlance.com\/blog"},{"@type":"ListItem","position":2,"name":"How to install and configure Apache webserver on Ubuntu 16 &#8211; in 2022"}]},{"@type":"WebSite","@id":"https:\/\/www.dewlance.com\/blog\/#website","url":"https:\/\/www.dewlance.com\/blog\/","name":"Web Hosting Blog - Dewlance","description":"Tutorials","publisher":{"@id":"https:\/\/www.dewlance.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dewlance.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dewlance.com\/blog\/#organization","name":"Dewlance","url":"https:\/\/www.dewlance.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dewlance.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dewlance.com\/blog\/wp-content\/uploads\/2022\/08\/logo.png","contentUrl":"https:\/\/www.dewlance.com\/blog\/wp-content\/uploads\/2022\/08\/logo.png","width":274,"height":89,"caption":"Dewlance"},"image":{"@id":"https:\/\/www.dewlance.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dewlance.hosting\/","https:\/\/x.com\/dewlance","https:\/\/www.youtube.com\/user\/dewlances\/"]},{"@type":"Person","@id":"https:\/\/www.dewlance.com\/blog\/#\/schema\/person\/0fe2f240cf5589599b50b9385ee53694","name":"K.S","url":"https:\/\/www.dewlance.com\/blog\/author\/dewlancevpsxen"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dewlance.com\/blog\/wp-json\/wp\/v2\/posts\/515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dewlance.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dewlance.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dewlance.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dewlance.com\/blog\/wp-json\/wp\/v2\/comments?post=515"}],"version-history":[{"count":7,"href":"https:\/\/www.dewlance.com\/blog\/wp-json\/wp\/v2\/posts\/515\/revisions"}],"predecessor-version":[{"id":759,"href":"https:\/\/www.dewlance.com\/blog\/wp-json\/wp\/v2\/posts\/515\/revisions\/759"}],"wp:attachment":[{"href":"https:\/\/www.dewlance.com\/blog\/wp-json\/wp\/v2\/media?parent=515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dewlance.com\/blog\/wp-json\/wp\/v2\/categories?post=515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dewlance.com\/blog\/wp-json\/wp\/v2\/tags?post=515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}