{"id":2808,"date":"2019-05-03T08:48:21","date_gmt":"2019-05-03T05:48:21","guid":{"rendered":"https:\/\/kifarunix.com\/?p=2808"},"modified":"2019-05-05T19:52:42","modified_gmt":"2019-05-05T16:52:42","slug":"install-apache-on-fedora-30","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-apache-on-fedora-30\/","title":{"rendered":"Install Apache on Fedora 30"},"content":{"rendered":"\n<p>In this guide, we are going to learn how to install Apache on Fedora 30. Fedora 30 has just been released with a <a rel=\"noreferrer noopener\" aria-label=\"whole lot new features (opens in a new tab)\" href=\"https:\/\/computingforgeeks.com\/fedora-30-released\/\" target=\"_blank\">whole lot new features<\/a>. If you would like to use Fedora 30 server to host your web sites using Apache Web server, follow through this guide to get Apache installed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Apache on Fedora 30<\/h2>\n\n\n\n<p>Apache web server is provided by the <strong>httpd<\/strong> package on Fedora 30. It can be installed by executing the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install httpd<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Fedora Modular 30 - x86_64 - Updates                                                                                    26 kB\/s |  49 kB     00:01    \nFedora 30 - x86_64 - Updates                                                                                            28 kB\/s |  42 kB     00:01    \nFedora 30 - x86_64 - Updates                                                                                           156 kB\/s | 1.7 MB     00:11    \nDependencies resolved.\n=======================================================================================================================================================\n Package                                    Architecture                   Version                               Repository                       Size\n=======================================================================================================================================================\nInstalling:\n httpd                                      x86_64                         2.4.39-3.fc30                         updates                         1.3 M\nInstalling dependencies:\n fedora-logos-httpd                         noarch                         30.0.2-1.fc30                         updates                          15 k\n httpd-filesystem                           noarch                         2.4.39-3.fc30                         updates                          15 k\n httpd-tools                                x86_64                         2.4.39-3.fc30                         updates                          76 k\n apr                                        x86_64                         1.6.5-3.fc30                          fedora                          106 k\n apr-util                                   x86_64                         1.6.1-10.fc30                         fedora                           90 k\n mod_http2                                  x86_64                         1.14.1-1.fc30                         fedora                          144 k\nInstalling weak dependencies:\n apr-util-bdb                               x86_64                         1.6.1-10.fc30                         fedora                           12 k\n apr-util-openssl                           x86_64                         1.6.1-10.fc30                         fedora                           14 k\n\nTransaction Summary\n=======================================================================================================================================================\nInstall  9 Packages\n\nTotal download size: 1.8 M\nInstalled size: 6.2 M\nIs this ok [y\/N]: y\nDownloading Packages:\n(1\/9): fedora-logos-httpd-30.0.2-1.fc30.noarch.rpm                                                                      38 kB\/s |  15 kB     00:00    \n(2\/9): httpd-filesystem-2.4.39-3.fc30.noarch.rpm                                                                        36 kB\/s |  15 kB     00:00    \n(3\/9): httpd-tools-2.4.39-3.fc30.x86_64.rpm                                                                             66 kB\/s |  76 kB     00:01    \n(4\/9): apr-1.6.5-3.fc30.x86_64.rpm                                                                                      66 kB\/s | 106 kB     00:01    \n(5\/9): apr-util-bdb-1.6.1-10.fc30.x86_64.rpm                                                                            46 kB\/s |  12 kB     00:00    \n(6\/9): apr-util-openssl-1.6.1-10.fc30.x86_64.rpm                                                                        53 kB\/s |  14 kB     00:00    \n(7\/9): apr-util-1.6.1-10.fc30.x86_64.rpm                                                                                71 kB\/s |  90 kB     00:01    \n(8\/9): mod_http2-1.14.1-1.fc30.x86_64.rpm                                                                               94 kB\/s | 144 kB     00:01    \n(9\/9): httpd-2.4.39-3.fc30.x86_64.rpm                                                                                   83 kB\/s | 1.3 MB     00:16    \n-------------------------------------------------------------------------------------------------------------------------------------------------------\nTotal                                                                                                                   93 kB\/s | 1.8 MB     00:19     \nRunning transaction check\nTransaction check succeeded.\nRunning transaction test\nTransaction test succeeded.\nRunning transaction\n  Preparing        :                                                                                                                               1\/1 \n  Installing       : apr-1.6.5-3.fc30.x86_64                                                                                                       1\/9 \n  Installing       : apr-util-bdb-1.6.1-10.fc30.x86_64                                                                                             2\/9 \n  Installing       : apr-util-openssl-1.6.1-10.fc30.x86_64                                                                                         3\/9 \n  Installing       : apr-util-1.6.1-10.fc30.x86_64                                                                                                 4\/9 \n  Installing       : httpd-tools-2.4.39-3.fc30.x86_64                                                                                              5\/9 \n  Running scriptlet: httpd-filesystem-2.4.39-3.fc30.noarch                                                                                         6\/9 \n  Installing       : httpd-filesystem-2.4.39-3.fc30.noarch                                                                                         6\/9 \n  Installing       : fedora-logos-httpd-30.0.2-1.fc30.noarch                                                                                       7\/9 \n  Installing       : mod_http2-1.14.1-1.fc30.x86_64                                                                                                8\/9 \n  Installing       : httpd-2.4.39-3.fc30.x86_64                                                                                                    9\/9 \n  Running scriptlet: httpd-2.4.39-3.fc30.x86_64                                                                                                    9\/9 \n  Verifying        : fedora-logos-httpd-30.0.2-1.fc30.noarch                                                                                       1\/9 \n  Verifying        : httpd-2.4.39-3.fc30.x86_64                                                                                                    2\/9 \n  Verifying        : httpd-filesystem-2.4.39-3.fc30.noarch                                                                                         3\/9 \n  Verifying        : httpd-tools-2.4.39-3.fc30.x86_64                                                                                              4\/9 \n  Verifying        : apr-1.6.5-3.fc30.x86_64                                                                                                       5\/9 \n  Verifying        : apr-util-1.6.1-10.fc30.x86_64                                                                                                 6\/9 \n  Verifying        : apr-util-bdb-1.6.1-10.fc30.x86_64                                                                                             7\/9 \n  Verifying        : apr-util-openssl-1.6.1-10.fc30.x86_64                                                                                         8\/9 \n  Verifying        : mod_http2-1.14.1-1.fc30.x86_64                                                                                                9\/9 \n\nInstalled:\n  httpd-2.4.39-3.fc30.x86_64                         apr-util-bdb-1.6.1-10.fc30.x86_64                apr-util-openssl-1.6.1-10.fc30.x86_64           \n  fedora-logos-httpd-30.0.2-1.fc30.noarch            httpd-filesystem-2.4.39-3.fc30.noarch            httpd-tools-2.4.39-3.fc30.x86_64                \n  apr-1.6.5-3.fc30.x86_64                            apr-util-1.6.1-10.fc30.x86_64                    mod_http2-1.14.1-1.fc30.x86_64                  \n\nComplete!<\/code><\/pre>\n\n\n\n<p>The install of Apache on Fedora 30 is complete. Next, proceed to do some basics to verify that it is actually working.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Allow Apache HTTP service on Firewall<\/h3>\n\n\n\n<p>Firewalld is running by default on Fedora 30.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>firewall-cmd --state\nrunning<\/code><\/pre>\n\n\n\n<p>Therefore, if firewalld is running, you need to allow HTTP service through it to allow external access to the web server.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>firewall-cmd --add-port=80\/tcp --permanent<\/code><\/pre>\n\n\n\n<p>Reload Firewalld<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>firewall-cmd --reload<\/code><\/pre>\n\n\n\n<p>If you plan on configuring HTTPS, then you can open port 443 on firewalld as shown below;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>firewall-cmd --add-port=80\/tcp --permanent<\/code><\/pre>\n\n\n\n<p>To verify the Apache HTTP port is opened on Firewalld;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>firewall-cmd --list-ports | grep 80\n80\/tcp<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Running Apache web server<\/h3>\n\n\n\n<p>To start and enable Apache to run on system boot;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl start httpd\nsystemctl enable httpd<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Verify Apache Web server<\/h3>\n\n\n\n<p>Apache ships with a default test page which you can use to verify if Apache is ready to serve the web content. It is accessed via the URL, <strong>http:\/\/&lt;hostname or web-server-host-IP&gt;<\/strong>. Hence, if everything is fine, when you access the URL above via the browser, you should land on Fedora Apache test page.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"577\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/apache-test-page.png\" alt=\"\" class=\"wp-image-2810\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/apache-test-page.png 1280w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/05\/apache-test-page-768x346.png 768w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Well that is how easy it is to install Apache on Fedora 30. You are good to go. You might<\/p>\n\n\n\n<p>As one of the steps of hardening Apache Web server, consider removing the test page. See how to remove Apache Test Page by following the link below;<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/remove-apache-test-page-on-fedora-30-29\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Remove Apache Test Page on Fedora 30\/29<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we are going to learn how to install Apache on Fedora 30. Fedora 30 has just been released with a whole lot<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[254,253],"tags":[255,924],"class_list":["post-2808","post","type-post","status-publish","format-standard","hentry","category-apache","category-web-servers","tag-apache2","tag-fedora-30","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2808"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=2808"}],"version-history":[{"count":5,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2808\/revisions"}],"predecessor-version":[{"id":2841,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2808\/revisions\/2841"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=2808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=2808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=2808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}