{"id":34888,"date":"2023-12-04T16:00:30","date_gmt":"2023-12-04T16:00:30","guid":{"rendered":"https:\/\/airoserver.com\/?p=34888"},"modified":"2023-12-04T07:30:22","modified_gmt":"2023-12-04T07:30:22","slug":"installing-and-configuring-apache-on-ubuntu","status":"publish","type":"post","link":"https:\/\/airoserver.com\/de\/airoserver\/installation-und-konfiguration-von-apache-unter-ubuntu\/","title":{"rendered":"Installieren und Konfigurieren von Apache unter Ubuntu"},"content":{"rendered":"<h3><strong>Unterschiede zwischen Apache auf Ubuntu und RedHat basierten Distributionen<\/strong><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-34836 size-full\" src=\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/12\/Article-2.jpg\" alt=\"Apache\" width=\"1024\" height=\"550\" srcset=\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/12\/Article-2.jpg 1024w, https:\/\/airoserver.com\/wp-content\/uploads\/2023\/12\/Article-2-300x161.jpg 300w, https:\/\/airoserver.com\/wp-content\/uploads\/2023\/12\/Article-2-768x413.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Der Grund, warum wir angeben m\u00fcssen, welche Linux-Distribution wir f\u00fcr die Installation von Apache verwenden, ist, dass der Prozess der Installation und Konfiguration dieses Webservers in jeder Distribution anders ist. In Ubuntu beispielsweise wird der Apache-Webserver \u00fcber das apache2-Paket installiert. In Redhat-basierten Distributionen wird dieser Webserver mit dem httpd-Paket installiert. Ein weiterer Unterschied besteht darin, dass die Apache-Konfigurationsdatei in jeder Distribution anders ist. In Ubuntu zum Beispiel befinden sich die Einstellungen in <strong>\/etc\/apache2\/apache2.conf und \/etc\/apache2\/sites-available<\/strong>. Bei Red Hat Base-Betriebssystemen sind die Webserver-Einstellungen in <strong>\/etc\/httpd\/conf\/httpd.conf.<\/strong><\/p>\n<h3><strong>Wie man Apache unter Ubuntu installiert<\/strong><\/h3>\n<p>Es gibt verschiedene M\u00f6glichkeiten, es unter Ubuntu zu installieren. Wenn Sie nur die Originalsoftware wollen, \u00f6ffnen Sie ein Terminal und geben Sie den folgenden Befehl ein.<\/p>\n<p><strong>sudo apt-get install apache2 -y<\/strong><\/p>\n<p>Nachdem Sie diesen Befehl ausgef\u00fchrt haben, wird er auf dem Server installiert. Um die Verf\u00fcgbarkeit des Apache-Dienstes sicherzustellen, k\u00f6nnen Sie den folgenden Befehl verwenden.<\/p>\n<p><strong>sudo systemctl enable apache2.<\/strong><\/p>\n<p>Apache kann auf Red Hat Base-Betriebssystemen mit dem folgenden Befehl installiert werden.<\/p>\n<p><strong>apt httpd installieren<\/strong><\/p>\n<p>Geben Sie in Ihrem Browser die Adresse http:\/\/SERVER_IP ein (geben Sie anstelle von SERVER IP die IP-Adresse Ihres Servers ein).<\/p>\n<p>Anhand der Apache-Begr\u00fc\u00dfungsseite k\u00f6nnen Sie die korrekte Installation dieses Webservers auf dem Server best\u00e4tigen.<\/p>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-34835 size-full\" src=\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/12\/Article-3.jpg\" alt=\"Apache\" width=\"683\" height=\"900\" srcset=\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/12\/Article-3.jpg 683w, https:\/\/airoserver.com\/wp-content\/uploads\/2023\/12\/Article-3-228x300.jpg 228w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/h3>\n<p>Um auf die von Apache angezeigte Seitendatei zuzugreifen, sehen Sie sich die Adresse \/var\/www\/html an.<\/p>\n<p>Auf diese Weise werden die Einstellungen f\u00fcr diese Seite in der Datei index.html vorgenommen.<\/p>\n<h3><strong>Wie man eine Website mit Apache erstellt<\/strong><\/h3>\n<p>Jetzt wollen wir einen virtuellen Host f\u00fcr ihn erstellen, damit wir diesen Server f\u00fcr mehrere Websites nutzen k\u00f6nnen. Als N\u00e4chstes werden wir einen Test-Host erstellen. Im ersten Schritt erstellen wir mit dem folgenden Befehl ein Verzeichnis f\u00fcr den Testhost.<\/p>\n<p><strong>sudo mkdir -p \/var\/www\/html\/test<\/strong><\/p>\n<p>Dann setzen wir mit diesem Befehl die Eigentumsrechte an dem Verzeichnis.<\/p>\n<p><strong>sudo chown -R $USER:$USER \/var\/www\/html\/test<\/strong><\/p>\n<p>Abschlie\u00dfend wird der erforderliche Zugriff mit dem folgenden Befehl eingerichtet.<\/p>\n<p><strong>sudo chmod -R 755 \/var\/www\/html\/test<\/strong><\/p>\n<p>Wir \u00fcbertragen die neue Datei index.html in den neuen Host-Ordner.<\/p>\n<p><strong>sudo cp \/var\/www\/html\/index.html \/var\/www\/html\/test<\/strong><\/p>\n<p>Nun m\u00fcssen wir diese Einstellungen in eine Datei f\u00fcr den Apache aufnehmen, damit er wei\u00df, wo sich die Dateien dieser Hosts befinden. Wir erstellen eine Datei unter \/etc\/apache\/sites-available.<\/p>\n<p><strong>sudo nano \/etc\/apache2\/sites-available\/test.conf<\/strong><\/p>\n<p>Geben Sie die folgenden Einstellungen in die Datei ein.<\/p>\n<p><strong>ServerAdmin admin@example.com<\/strong><\/p>\n<p><strong>ServerName beispiel.de<\/strong><\/p>\n<p><strong>ServerAlias www.example.com<\/strong><\/p>\n<p><strong>DokumentRoot \/var\/www\/html\/test<\/strong><\/p>\n<p><strong>Fehlerprotokoll ${APACHE_LOG_DIR}\/error.log<\/strong><\/p>\n<p><strong>CustomLog ${APACHE_LOG_DIR}\/access.log kombiniert<\/strong><\/p>\n<p>Schlie\u00dflich wird Ihr Host erstellt und Sie k\u00f6nnen Ihre Website hosten.<\/p>","protected":false},"excerpt":{"rendered":"<p>Differences between Apache on Ubuntu and RedHat based distributions The reason why we need to specify which Linux distribution we are using to install Apache is that the process of installing and configuring this web server is different in each one. For example, in Ubuntu, the Apache web server is install through the apache2 package. [&hellip;]<\/p>","protected":false},"author":26,"featured_media":34837,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[179,1],"tags":[],"class_list":["post-34888","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-airoserver","category-blog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Installing and configuring Apache on Ubuntu - Airoserver | Cloud Hosting Solutions<\/title>\n<meta name=\"description\" content=\"We need to specify the Linux distribution we installed Apache the process of installing and configuring this web server varies in each one.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/airoserver.com\/de\/airoserver\/installation-und-konfiguration-von-apache-unter-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing and configuring Apache on Ubuntu - Airoserver | Cloud Hosting Solutions\" \/>\n<meta property=\"og:description\" content=\"We need to specify the Linux distribution we installed Apache the process of installing and configuring this web server varies in each one.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/airoserver.com\/de\/airoserver\/installation-und-konfiguration-von-apache-unter-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"Airoserver | Cloud Hosting Solutions\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-04T16:00:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-04T07:30:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/12\/Article-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Codinoob\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Codinoob\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/\"},\"author\":{\"name\":\"Codinoob\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/98c9f3c9d2d2baaf929d2c4a53462e97\"},\"headline\":\"Installing and configuring Apache on Ubuntu\",\"datePublished\":\"2023-12-04T16:00:30+00:00\",\"dateModified\":\"2023-12-04T07:30:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/\"},\"wordCount\":478,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/airoserver.com\/#organization\"},\"articleSection\":[\"AiroServer\",\"Blog\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/\",\"url\":\"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/\",\"name\":\"Installing and configuring Apache on Ubuntu - Airoserver | Cloud Hosting Solutions\",\"isPartOf\":{\"@id\":\"https:\/\/airoserver.com\/#website\"},\"datePublished\":\"2023-12-04T16:00:30+00:00\",\"dateModified\":\"2023-12-04T07:30:22+00:00\",\"description\":\"We need to specify the Linux distribution we installed Apache the process of installing and configuring this web server varies in each one.\",\"breadcrumb\":{\"@id\":\"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/airoserver.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installing and configuring Apache on Ubuntu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/airoserver.com\/#website\",\"url\":\"https:\/\/airoserver.com\/\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"description\":\"Cloud server | Dedicated server | Domain | Hosting| SSL | Virtual server | Airoserver\",\"publisher\":{\"@id\":\"https:\/\/airoserver.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/airoserver.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/airoserver.com\/#organization\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"url\":\"https:\/\/airoserver.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png\",\"contentUrl\":\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png\",\"width\":925,\"height\":880,\"caption\":\"Airoserver | Cloud Hosting Solutions\"},\"image\":{\"@id\":\"https:\/\/airoserver.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/98c9f3c9d2d2baaf929d2c4a53462e97\",\"name\":\"Codinoob\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/016ea0daadd857a2718a67b0e8afc43ac449be1b2c2945db2414893811a00a97?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/016ea0daadd857a2718a67b0e8afc43ac449be1b2c2945db2414893811a00a97?s=96&d=mm&r=g\",\"caption\":\"Codinoob\"},\"sameAs\":[\"http:\/\/codinoob.ir\"],\"url\":\"https:\/\/airoserver.com\/de\/author\/codinoob\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installing and configuring Apache on Ubuntu - Airoserver | Cloud Hosting Solutions","description":"We need to specify the Linux distribution we installed Apache the process of installing and configuring this web server varies in each one.","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:\/\/airoserver.com\/de\/airoserver\/installation-und-konfiguration-von-apache-unter-ubuntu\/","og_locale":"de_DE","og_type":"article","og_title":"Installing and configuring Apache on Ubuntu - Airoserver | Cloud Hosting Solutions","og_description":"We need to specify the Linux distribution we installed Apache the process of installing and configuring this web server varies in each one.","og_url":"https:\/\/airoserver.com\/de\/airoserver\/installation-und-konfiguration-von-apache-unter-ubuntu\/","og_site_name":"Airoserver | Cloud Hosting Solutions","article_published_time":"2023-12-04T16:00:30+00:00","article_modified_time":"2023-12-04T07:30:22+00:00","og_image":[{"width":1024,"height":550,"url":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/12\/Article-1.jpg","type":"image\/jpeg"}],"author":"Codinoob","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Codinoob","Gesch\u00e4tzte Lesezeit":"3\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/#article","isPartOf":{"@id":"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/"},"author":{"name":"Codinoob","@id":"https:\/\/airoserver.com\/#\/schema\/person\/98c9f3c9d2d2baaf929d2c4a53462e97"},"headline":"Installing and configuring Apache on Ubuntu","datePublished":"2023-12-04T16:00:30+00:00","dateModified":"2023-12-04T07:30:22+00:00","mainEntityOfPage":{"@id":"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/"},"wordCount":478,"commentCount":0,"publisher":{"@id":"https:\/\/airoserver.com\/#organization"},"articleSection":["AiroServer","Blog"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/","url":"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/","name":"Installing and configuring Apache on Ubuntu - Airoserver | Cloud Hosting Solutions","isPartOf":{"@id":"https:\/\/airoserver.com\/#website"},"datePublished":"2023-12-04T16:00:30+00:00","dateModified":"2023-12-04T07:30:22+00:00","description":"We need to specify the Linux distribution we installed Apache the process of installing and configuring this web server varies in each one.","breadcrumb":{"@id":"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/airoserver.com\/airoserver\/installing-and-configuring-apache-on-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/airoserver.com\/"},{"@type":"ListItem","position":2,"name":"Installing and configuring Apache on Ubuntu"}]},{"@type":"WebSite","@id":"https:\/\/airoserver.com\/#website","url":"https:\/\/airoserver.com\/","name":"Airoserver | Cloud Hosting Solutions","description":"Cloud server | Dedicated server | Domain | Hosting| SSL | Virtual server | Airoserver","publisher":{"@id":"https:\/\/airoserver.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/airoserver.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/airoserver.com\/#organization","name":"Airoserver | Cloud Hosting Solutions","url":"https:\/\/airoserver.com\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/airoserver.com\/#\/schema\/logo\/image\/","url":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png","contentUrl":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png","width":925,"height":880,"caption":"Airoserver | Cloud Hosting Solutions"},"image":{"@id":"https:\/\/airoserver.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/airoserver.com\/#\/schema\/person\/98c9f3c9d2d2baaf929d2c4a53462e97","name":"Codinoob","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/airoserver.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/016ea0daadd857a2718a67b0e8afc43ac449be1b2c2945db2414893811a00a97?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/016ea0daadd857a2718a67b0e8afc43ac449be1b2c2945db2414893811a00a97?s=96&d=mm&r=g","caption":"Codinoob"},"sameAs":["http:\/\/codinoob.ir"],"url":"https:\/\/airoserver.com\/de\/author\/codinoob\/"}]}},"_links":{"self":[{"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/posts\/34888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/users\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/comments?post=34888"}],"version-history":[{"count":0,"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/posts\/34888\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/media\/34837"}],"wp:attachment":[{"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/media?parent=34888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/categories?post=34888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/tags?post=34888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}