{"id":436,"date":"2018-12-30T21:52:53","date_gmt":"2018-12-30T20:52:53","guid":{"rendered":"http:\/\/linuxboxen2.dk\/?p=436"},"modified":"2018-12-30T21:52:53","modified_gmt":"2018-12-30T20:52:53","slug":"apache-lamp-install-hvordan","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=436","title":{"rendered":"Apache\/lamp install hvordan ?"},"content":{"rendered":"<h3><strong>Til Ubuntu 18.04 LTS server.<\/strong><\/h3>\n<h3><strong>Her vil jeg forklare hvordan man installere Apache web server.<\/strong><\/h3>\n<p>I denne guide vil jeg beskrive hvordan man ops\u00e6tter en basal webserver, i Debian, med MySQL og PHP underst\u00f8ttelse. Dette er ogs\u00e5 kaldet en LAMP Server \u2013 Linux Apache MySQL PHP.<\/p>\n<p>F\u00f8rst skal alle de dele som skal bruges af webserveren for at virke. Den er apache php samt et modul til apache som hedder libapache2-mod-php samt mysql server og client.<\/p>\n<p>S\u00e5 virker det med de flest hjemmeside systemer som wordpress samt drupal og sikkert flere.<\/p>\n<pre>$ sudo apt-get install apache2 php5 mysql-server php5-mysql libapache2-mod-php<\/pre>\n<p>For at aktivere php5 for apache skal du k\u00f8re denne kommando.<\/p>\n<pre>$ sudo a2enmod php5<\/pre>\n<p>Under installationen skal du indtaste et password for root brugeren p\u00e5 din MySQL server. Efter installationen skal du restart apache2.<\/p>\n<pre>$ service apache2 restart\n<\/pre>\n<pre>$ sudo nano \/var\/www\/html\/info.php\n<\/pre>\n<p>Tryk nu ctrl+X. og Y og du har gemt filen.<\/p>\n<p>Her skal du indtaste denne tekst. Med den kan du teste om det hele virker.<\/p>\n<p>\u00c5ben en webbrowser og skriv din ip http:\/\/ipadresse\/info.php<\/p>\n<p>Du skal nu gerne have en side som ligner denne her.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1845 size-full aligncenter\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/uploads\/2020\/01\/lamp-stack-details.png\" alt=\"\" width=\"800\" height=\"434\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>For at se hvilken ip adresse serveren har kan du install curl og skrive.<\/p>\n<pre>$ curl https:\/\/icanhazip.com\/<\/pre>\n<p>Apache root bibliotek er normal \/var\/www p\u00e5 Ubuntu servere.<\/p>\n<p>https:\/\/www.linuxboxen.dk\/let-encrypt-ssl-certifikater\/<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_436\" class=\"pvc_stats all  \" data-element-id=\"436\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Til Ubuntu 18.04 LTS server. Her vil jeg forklare hvordan man installere Apache web server. I denne guide vil jeg beskrive hvordan man ops\u00e6tter en basal webserver, i Debian, med MySQL og PHP underst\u00f8ttelse. Dette er ogs\u00e5 kaldet en LAMP Server \u2013 Linux Apache MySQL PHP. F\u00f8rst skal alle de dele som skal bruges af [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_436\" class=\"pvc_stats all  \" data-element-id=\"436\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-436","post","type-post","status-publish","format-standard","hentry","category-tips"],"a3_pvc":{"activated":true,"total_views":19,"today_views":0},"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=436"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/436\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}