{"id":5761,"date":"2022-03-23T16:30:32","date_gmt":"2022-03-23T11:00:32","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=5761"},"modified":"2022-03-23T16:30:46","modified_gmt":"2022-03-23T11:00:46","slug":"how-to-install-the-apache-web-server-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-install-the-apache-web-server-on-ubuntu-18-04\/","title":{"rendered":"How To Install the Apache Web Server on Ubuntu 18.04"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">How To Install the Apache Web Server on Ubuntu 18.04<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Date-31-05-2020<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>STEP 1:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Update and Upgrade the apt tool to ensure we are working with the latest.<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color wp-block-paragraph\">sudo apt update<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>STEP 2:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;Install Apache and select&nbsp;<strong>Y<\/strong>&nbsp;when prompted.<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color wp-block-paragraph\">sudo apt install apache2<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>STEP 3:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before testing Apache, it\u2019s necessary to modify the firewall settings to allow outside access to the default web ports. Assuming that you followed the instructions in the prerequisites, you should have a UFW firewall configured to restrict access to your server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">During installation, Apache registers itself with UFW to provide a few application profiles that can be used to enable or disable access to Apache through the firewall.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">List the&nbsp;<code>ufw<\/code>&nbsp;application profiles by typing:<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color wp-block-paragraph\">sudo ufw app list<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As you can see, there are three profiles available for Apache:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Apache<\/strong>: This profile opens only port 80 (normal, unencrypted web traffic)<\/li><li><strong>Apache Full<\/strong>: This profile opens both port 80 (normal, unencrypted web traffic) and port 443 (TLS\/SSL encrypted traffic)<\/li><li><strong>Apache Secure<\/strong>: This profile opens only port 443 (TLS\/SSL encrypted traffic)<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">It is recommended that you enable the most restrictive profile that will still allow the traffic you\u2019ve configured. Since we haven\u2019t configured SSL for our server yet in this guide, we will only need to allow traffic on port 80,<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color wp-block-paragraph\">sudo ufw allow &#8216;Apache&#8217;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>STEP 3:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then check status of apache by,<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color wp-block-paragraph\">sudo systemctl status apache2<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>STEP 4:<\/strong><\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color wp-block-paragraph\">http:\/\/server ip<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You will see the apache default page, it shows that the apache installed successfully.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"738\" height=\"1024\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/06\/apachee-738x1024.png\" alt=\"\" class=\"wp-image-5764\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/06\/apachee-738x1024.png 738w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/06\/apachee-216x300.png 216w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/06\/apachee.png 745w\" sizes=\"(max-width: 738px) 100vw, 738px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How To Install the Apache Web Server on Ubuntu 18.04 Date-31-05-2020 STEP 1: Update and Upgrade the apt tool to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[159],"class_list":["post-5761","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-webserver","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1uV","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=5761"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5761\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=5761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=5761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=5761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}