{"id":2474,"date":"2023-09-10T11:42:02","date_gmt":"2023-09-10T09:42:02","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=2474"},"modified":"2023-09-10T11:42:04","modified_gmt":"2023-09-10T09:42:04","slug":"xampp-server-unter-linux-zum-testen","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/10\/xampp-server-unter-linux-zum-testen\/","title":{"rendered":"XAMPP &#8211; Server unter Linux zum Testen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Nicht jeder will sich gleich einen kompletten Webserver wie etwa\u00a0<a href=\"https:\/\/linux-bibel.at\/index.php\/2023\/09\/10\/apache-2-der-bekannteste-webserver-unter-linux\/\" data-type=\"post\" data-id=\"2466\" target=\"_blank\" rel=\"noreferrer noopener\">Apache<\/a>\u00a0unter Linux installieren. Braucht man einen Server nur zum Testen reicht auch XAMPP &#8211; hierbei handelt es sich um eine Software-Zusammenstellung vom Webserver Apache2, der Datenbank MariaDB, den Programmiersprachen Perl und PHP. Gestartet wird nur, was aktuell ben\u00f6tigt wird und wann es gebraucht wird.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Wichtig &#8211; bei XAMPP handelt es sich um keinen Server den man f\u00fcr reale Web-Services nutzt, die Software ist aus Sicherheitsgr\u00fcnden nur zum Testen gedacht.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">XAMPP installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sie finden diese Software unter&nbsp;<a href=\"https:\/\/www.apachefriends.org\/de\/index.html\" target=\"_blank\" rel=\"noreferrer noopener\">XAMPP<\/a>&nbsp;zum Download, hierbei handelt es sich um ein sich selbst extrahierendes komprimiertes Archiv. In meiner Version nennt sich die Datei &#8222;<strong>xampp-linux-x64-8.0.13-0-installer.run<\/strong>&#8222;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Diese Software wird nun als Erstes ausf\u00fchrbar gemacht, dies gelingt per Rechtsklick auf die Datei &#8222;<em>Eigenschaften \u2192 Berechtigungen<\/em>&#8222;:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-1024x576.jpg\" alt=\"\" class=\"wp-image-2475\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Alternativ erledigen Sie dies am\u00a0Terminal\u00a0mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod +x xampp-linux-x64-8.0.13-0-installer.run<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Die Version m\u00fcssen Sie nat\u00fcrlich durch die vorliegende ersetzen &#8211; einfach die ersten Zeichen eingeben und mit der\u00a0<strong><kbd>Tabulator<\/kbd><\/strong>-Taste vervollst\u00e4ndigen lassen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anschlie\u00dfend wird die Software als\u00a0Administrator\u00a0am Terminal installiert:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/xampp-linux-x64-8.0.13-0-installer.run<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-1-1024x576.jpg\" alt=\"\" class=\"wp-image-2476\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-1-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-1-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-1-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-1-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-1.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nun \u00f6ffnet sich der grafische Installer, klicken Sie einfach auf den Schalter &#8222;<strong>Next<\/strong>&#8222;:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-2-1024x576.jpg\" alt=\"\" class=\"wp-image-2477\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-2-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-2-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-2-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-2-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-2.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nun geht es darum, ob Sie auch die Entwicklerdateien installieren m\u00f6chten, in den meisten F\u00e4llen werden Sie diese nicht ben\u00f6tigen &#8211; Sie sollten diese also deaktivieren:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-3-1024x576.jpg\" alt=\"\" class=\"wp-image-2478\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-3-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-3-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-3-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-3-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-3.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Einige Klicks auf den Schalter &#8222;<strong>Next<\/strong>&#8220; und die Software wird installiert. Im letzten Fenster nach der Installation ist die Aktion &#8222;Launch XAMPP&#8220; aktiv, belassen Sie diese aktiv, startet die Verwaltung der Software beim Schlie\u00dfen dieses Fensters automatisch:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-4-1024x576.jpg\" alt=\"\" class=\"wp-image-2479\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-4-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-4-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-4-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-4-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-4.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">XAMPP nutzen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Grunds\u00e4tzlich l\u00e4sst sich die Software auf dem Terminal starten, dies gelingt mit administrativen Rechten mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/opt\/lampp\/lampp start<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/opt\/lampp\/lampp stop<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">wird der Server wieder gestoppt. M\u00f6chten Sie die Web-Umgebung mit grafischer Oberfl\u00e4che starten, gelingt dies mit administrativen Rechten am Terminal mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/opt\/lampp\/manager-linux-x64.run<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Hiermit erhalten Sie auch die M\u00f6glichkeit \u00fcber den Reiter &#8222;<em>Manage Servers<\/em>&#8220; auch nur einzelne Dienste (<em>Webserver, Datenbank und FTP-Server<\/em>) zu starten &#8211; siehe letztes Bild oben.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nun wollen Sie den Server nat\u00fcrlich testen, dies gelingt \u00fcber den Webbrowser mit der Adresse &#8222;<strong><a rel=\"noreferrer noopener\" href=\"http:\/\/localhost\/\" target=\"_blank\">http:\/\/localhost<\/a><\/strong>&#8222;:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-5-1024x576.jpg\" alt=\"\" class=\"wp-image-2480\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-5-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-5-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-5-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-5-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-5.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Dies ist so gesehen die Startseite, mittels &#8222;<strong><a rel=\"noreferrer noopener\" href=\"http:\/\/localhost\/phpmyadmin\/\" target=\"_blank\">http:\/\/localhost\/phpmyadmin\/<\/a><\/strong>&#8220; gelangen Sie an die Datenbank \u00fcber PhpMyAdmin:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-6-1024x576.jpg\" alt=\"\" class=\"wp-image-2481\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-6-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-6-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-6-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-6-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-6.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Um einen FTP-Zugang zu erm\u00f6glichen, f\u00fchren Sie nun folgenden Befehl mit administrativen Rechten am Terminal aus &#8211; hiermit erstellen Sie eine Gruppe namens &#8222;<strong>ftp<\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>groupadd ftp<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nun f\u00fcgen Sie den gew\u00fcnschten Nutzer zur neu erstellten Gruppe hinzu, in meinem Beispiel f\u00fcge ich &#8222;<strong>robert<\/strong>&#8220; zur Gruppe &#8222;<strong>ftp<\/strong>&#8220; hinzu:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>usermod -a -G ftp robert<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nun wechseln Sie in das Verzeichnis der Software:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/opt\/lampp\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nun geben Sie dem gew\u00fcnschten Nutzer &#8211; in diesem Beispiel &#8222;<strong>robert<\/strong>&#8220; die Rechte am Verzeichnis &#8222;<em>htdocs<\/em>&#8220; und vergeben die Zugriffsrechte:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chown robert htdocs\nchmod 775 htdocs<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt k\u00f6nnen Sie etwa FileZilla starten und auf den Server zugreifen, die n\u00f6tigen Daten:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Server: 127.0.0.1<\/li>\n\n\n\n<li>Nutzername: Ihr Nutzername<\/li>\n\n\n\n<li>Passwort: Ihr Passwort<\/li>\n\n\n\n<li>Port: 21<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-7-1024x576.jpg\" alt=\"\" class=\"wp-image-2482\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-7-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-7-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-7-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-7-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/xampp-7.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">M\u00f6chten Sie den Server tats\u00e4chlich in Ihrem lokalen Netzwerk nutzen, f\u00fchren Sie am Terminal mit administrativen Rechten folgenden Befehl aus:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/opt\/lampp\/lampp security<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mehr als im lokalen Netzwerk ohne Zugriff fremder Personen w\u00fcrde ich die Software jedoch absolut nicht nutzen. Wie schon beschrieben &#8211; es handelt sich um Software zum Testen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">M\u00f6chten Sie die Software wieder deinstallieren, f\u00fchren Sie am Terminal mit administrativen Rechten folgenden Befehl aus:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf \/opt\/lampp\/<\/code><\/pre>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"2474\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"2474\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Nicht jeder will sich gleich einen kompletten Webserver wie etwa\u00a0Apache\u00a0unter Linux installieren. Braucht man einen Server nur zum Testen reicht auch XAMPP &#8211; hierbei handelt es sich um eine Software-Zusammenstellung vom Webserver Apache2, der Datenbank MariaDB, den Programmiersprachen Perl und PHP. Gestartet wird nur, was aktuell ben\u00f6tigt wird und wann es gebraucht wird. Wichtig &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2480,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,308,307],"tags":[39,310,309],"class_list":["post-2474","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-netzwerk","category-server","category-webserver","tag-netzwerk","tag-server","tag-webserver"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/2474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=2474"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/2474\/revisions"}],"predecessor-version":[{"id":2483,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/2474\/revisions\/2483"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/2480"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=2474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=2474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=2474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}