{"id":19982,"date":"2023-07-31T07:40:24","date_gmt":"2023-07-31T07:40:24","guid":{"rendered":"https:\/\/linuxways.net\/?p=19982"},"modified":"2023-07-31T07:40:24","modified_gmt":"2023-07-31T07:40:24","slug":"how-to-install-apache-on-debian-12","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-install-apache-on-debian-12\/","title":{"rendered":"How to Install Apache on Debian 12"},"content":{"rendered":"<p>Apache is an HTTP Server, which is also referred to as Apache. It is one of the most known, common, and widely used web servers globally by web developers and web engineers. This platform is an open-source platform as any number of software are developed and then maintained by Apache Software Foundation. This Apache server is known for having great performance, stability, and flexibility, which makes it the primary choice to host websites and applications.<\/p>\n<p>Apache is and can be compatible with many hardware configurations and numerous operating systems.It can run and easily be installed on Windows, MacOS, Unix, and systems. We can configure each installation as per the available capabilities of our hardware.<\/p>\n<h3><strong>Update Debian 12<\/strong><\/h3>\n<p>Updating our Debian will allow us to have everything latest and will also make sure that we can install our Apache server easily.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt update<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"572\" class=\"wp-image-19983\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-1.png 750w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-1-300x229.png 300w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/strong><\/p>\n<h3><strong>Install Apache<\/strong><\/h3>\n<p>The installation of Apache is really simple. We need to run a simple command.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span>apt <span class=\"kw2\">install<\/span> apache2<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"545\" class=\"wp-image-19984\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-2.png 734w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-2-300x223.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/p>\n<h3><strong>Start and enable Apache Service<\/strong><\/h3>\n<p>After installing it, we need to start the Apache service in our Debian 12.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span>systemctl start apache2<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"733\" height=\"550\" class=\"wp-image-19985\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-3.png 733w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-3-300x225.png 300w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/strong><\/p>\n<p>After starting it, we need to enable it as well. For that, we have a command. Upon execution of the following command, we might be prompted to enter our password.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span>systemctl <span class=\"kw3\">enable<\/span> <span class=\"re5\">--now<\/span> apache2<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"727\" height=\"543\" class=\"wp-image-19986\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-4.png 727w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-4-300x224.png 300w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/strong><\/p>\n<h3><strong>Confirm the Installation<\/strong><\/h3>\n<p>To confirm if Apache got installed or not, we need to open our web browser and access the localhost like this; <a href=\"http:\/\/localhost\/\">http:\/\/localhost\/<\/a> and hit enter.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1278\" height=\"734\" class=\"wp-image-19987\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-5.png 1278w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-5-300x172.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-5-1024x588.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-5-768x441.png 768w\" sizes=\"auto, (max-width: 1278px) 100vw, 1278px\" \/><\/p>\n<p>Here we can see, our Apache server is accessible and working. We can start creating web applications and deploying them with the help of an Apache server.<\/p>\n<h3><strong>Uninstall Apache<\/strong><\/h3>\n<p>To uninstall our Apache, there are simple ways. We just need to follow one command in our terminal.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">apt-get remove<\/span> apache2<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"727\" height=\"549\" class=\"wp-image-19988\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-6.png 727w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-6-300x227.png 300w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/strong><\/p>\n<p>After that, lets remove unnecessary packages from Debian as well<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">apt-get autoremove<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"550\" class=\"wp-image-19989\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-7.png 734w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19982-7-300x225.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>The Apache Server installation process is one of the simplest ones when we talk about the installation of any web-based server, service or tool.<\/p>\n<p>With the help of this tool, we can manage, create, and deploy our web-based content over the internet. The good thing about this platform is, we can set it up on almost every platform.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>The Apache Server is an open-source and free web server software. It was developed and maintained by Apache Software Foundation.<\/p>","protected":false},"author":110,"featured_media":20004,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-19982","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/19982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=19982"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/19982\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/20004"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=19982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=19982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=19982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}