{"id":5247,"date":"2015-03-23T10:33:53","date_gmt":"2015-03-23T17:33:53","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=5247"},"modified":"2021-06-16T16:32:54","modified_gmt":"2021-06-16T23:32:54","slug":"setting-up-a-lamp-server","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/setting-up-a-lamp-server\/","title":{"rendered":"Setting Up a LAMP Server"},"content":{"rendered":"<p>Now that we have Linux booted up on our computer, we can get programming. What happens if we want to create web pages? Well, we need to set-up our LAMP server. LAMP stands for <strong>L<\/strong>inux <strong>A<\/strong>pache <strong>M<\/strong>ySQL <strong>P<\/strong>HP. This blog post goes in conjunction with a <a href=\"http:\/\/www.instructables.com\/id\/Setting-up-a-Lamp-Server-on-Ubuntu\/\"><strong>relevant Instructable<\/strong><\/a> about setting up our LAMP server, so just like the <a href=\"https:\/\/digilent.com\/blog\/index.php\/dual-booting-windows-and-ubuntu\/\">previous blog post about dual-booting Ubuntu<\/a>, this is going to go over more of <em>why<\/em> we&#8217;re doing this. What the LAMP server will allow us to do it create a local host that will let us communicate with the Internet.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_5460\" aria-describedby=\"caption-attachment-5460\" style=\"width: 172px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/linux.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5460\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/linux-517x600.png\" alt=\"The Linux Logo (credit to Wikipedia)\" width=\"172\" height=\"200\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/linux-517x600.png 517w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/linux-883x1024.png 883w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/linux-194x225.png 194w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/linux.png 2000w\" sizes=\"auto, (max-width: 172px) 100vw, 172px\" \/><\/a><figcaption id=\"caption-attachment-5460\" class=\"wp-caption-text\">The Linux logo (image from Wikipedia).<\/figcaption><\/figure>\n<p><strong>1. Linux<\/strong><br \/>\nIf you&#8217;ve already booted Linux, then this step is done! This part is simply the operating system. If we wanted to set up a &#8220;LAMP&#8221; server on Windows, we would call it WAMP.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_5476\" aria-describedby=\"caption-attachment-5476\" style=\"width: 169px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/apache.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5476\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/apache.png\" alt=\"Apache Symbol\" width=\"169\" height=\"51\" \/><\/a><figcaption id=\"caption-attachment-5476\" class=\"wp-caption-text\">Apache symbol.<\/figcaption><\/figure>\n<p><strong>2. Apache<\/strong><br \/>\nAccording to Wikipedia, Apache &#8220;is the world&#8217;s most widely used web server software&#8221;. This will process requests via HTTP, and send web-pages to clients, such as a computer. Apache is really the &#8220;crux&#8221; of a LAMP server. Apache is what allows communication between the clients and the servers. This means Apache creates the server, without it, all the code is just on a local level. (We will see in a later blog post that we use the server to communicate with the internet.)<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_5486\" aria-describedby=\"caption-attachment-5486\" style=\"width: 400px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/Mysql.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5486\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/Mysql-600x310.png\" alt=\"MySQL Logo (credit to Wikipedia)\" width=\"400\" height=\"155\" \/><\/a><figcaption id=\"caption-attachment-5486\" class=\"wp-caption-text\">MySQL logo (image from Wikipedia).<\/figcaption><\/figure>\n<p><strong>3. MySQL<\/strong><br \/>\nMySQL stands for (My)<strong>S<\/strong>tructured <strong>Q<\/strong>uery <strong>L<\/strong>anguage, as an open-source relational database management system. What this really means is that MySQL is a database system that will help with storage of information on a server.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_5490\" aria-describedby=\"caption-attachment-5490\" style=\"width: 400px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/php.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5490\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/php-600x318.png\" alt=\"PHP Logo\" width=\"400\" height=\"212\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/php-600x318.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/php-1024x542.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/php-225x119.png 225w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/php-800x424.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/php.png 1280w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><figcaption id=\"caption-attachment-5490\" class=\"wp-caption-text\">PHP logo.<\/figcaption><\/figure>\n<p><strong>4. PHP<\/strong><\/p>\n<p>The last part of the LAMP server is PHP. PHP is a server-side scripting language, this is what we use to make our websites do stuff. Linux, Apache, and MySQL are more or less the back-end parts of the LAMP Server, but PHP is what we use to make everything come together.<\/p>\n<p>&nbsp;<\/p>\n<p>With these four\u00a0pieces of software, people will be able to create and test html pages. If we don&#8217;t use the LAMP Server, the html pages won&#8217;t be able to communicate with the Internet.<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-5247 jlk' data-task='like' data-post_id='5247' data-nonce='159a2ffc6d' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-5247 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-5247 jlk' data-task='unlike' data-post_id='5247' data-nonce='159a2ffc6d' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-5247 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-5247 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Now that we have Linux booted up on our computer, we can get programming. What happens if we want to create web pages? Well, we need to set-up our LAMP server. LAMP stands for Linux Apache MySQL PHP. This blog post goes in conjunction with a relevant Instructable about setting up our LAMP server, so just like the previous blog post about dual-booting Ubuntu, this is going to go over more of why we&#8217;re doing this. What the LAMP server will allow us to do it create a local host that will let us communicate with the Internet.<\/p>\n","protected":false},"author":29,"featured_media":5486,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1563],"tags":[],"ppma_author":[4478],"class_list":["post-5247","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guide"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/Mysql.png","authors":[{"term_id":4478,"user_id":29,"is_guest":0,"slug":"josh-woldstad","display_name":"Josh","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/166ab2302d3f5f5f33ecab52f79a1ab44277f4ef8f5073fe66cf54070f6cd419?s=96&d=mm&r=g","1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/5247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=5247"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/5247\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/5486"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=5247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=5247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=5247"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=5247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}