{"id":763,"date":"2023-04-25T22:33:52","date_gmt":"2023-04-26T01:33:52","guid":{"rendered":"https:\/\/freeshell.de\/~felipe\/blog\/?p=763"},"modified":"2024-06-09T15:44:46","modified_gmt":"2024-06-09T18:44:46","slug":"installing-apache2-on-arch-linux","status":"publish","type":"post","link":"https:\/\/freeshell.de\/~felipe\/blog\/04\/2023\/linux\/installing-apache2-on-arch-linux\/","title":{"rendered":"Installing Apache2 on Arch Linux"},"content":{"rendered":"\n<p>Free and open source Apache is one of the most popular servers in the world.<br \/>It is based on a focused architecture and supports all major operating systems, Linux, Windows, macOS and Solaris.<br \/>Apache is customizable and can be integrated with other, It offers many features, including load balancing , URL tracking, automatic indexing , robust support, and more.<\/p>\n\n\n\n<p>I&#8217;ll make it simple:<\/p>\n\n\n\n<p><em>Let&#8217;s do the update:<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pacman -Syu<\/code><\/pre>\n\n\n\n<p>On Debian is very simple:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install apache2<\/code><\/pre>\n\n\n\n<p>On Arch Linux:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pacman -S apache<\/code><\/pre>\n\n\n\n<p>Then we can create the symbolic link, to boot apache on the start.<br \/>and we use these commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl start httpd\nsystemctl enable httpd\n<\/code><\/pre>\n\n\n\n<p>We can check the status:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status httpd<\/code><\/pre>\n\n\n\n<p>Apache. You can create it in the Apache default root directory using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/srv\/http\/index.html\n<\/code><\/pre>\n\n\n\n<p>Let&#8217;s just add some html code in a file:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;html>\n &lt;title>APACHE2 - ARCH LINUX&lt;\/title>\n  &lt;body>\n   &lt;h2>APACHE2 - ARCH LINUX&lt;\/h2>\n  &lt;\/body>\n&lt;\/html>\n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Free and open source Apache is one of the most popular servers in the world.It is based on a focused architecture and supports all major operating systems, Linux, Windows, macOS and Solaris.Apache is customizable and can be integrated with other, It offers many features, including load balancing , URL tracking, automatic indexing , robust support, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71,74,70],"tags":[66,73,67],"class_list":["post-763","post","type-post","status-publish","format-standard","hentry","category-arch","category-debian","category-linux","tag-arch","tag-debian","tag-linux"],"_links":{"self":[{"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/posts\/763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/comments?post=763"}],"version-history":[{"count":2,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/posts\/763\/revisions"}],"predecessor-version":[{"id":790,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/posts\/763\/revisions\/790"}],"wp:attachment":[{"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/media?parent=763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/categories?post=763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/tags?post=763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}