{"id":852,"date":"2018-11-14T21:12:16","date_gmt":"2018-11-14T21:12:16","guid":{"rendered":"https:\/\/draculaservers.com\/tutorials\/?p=852"},"modified":"2024-01-18T13:54:28","modified_gmt":"2024-01-18T13:54:28","slug":"install-lamp-stack-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/","title":{"rendered":"How to Install LAMP (Apache, MySQL, PHP) Stack on Ubuntu 18.04"},"content":{"rendered":"<h2 id=\"overview\">Overview<\/h2>\r\n<p><strong>LAMP Stack<\/strong> is a group of very popular open-source software, that when used together enable us to host dynamic websites and web apps. <strong>LAMP<\/strong> is actually an acronym that stands for:<br \/><code>Linux<\/code> &#8211; in this case, it is our Ubuntu 18.04 machine<br \/><code>Apache<\/code> &#8211; the most popular web server, that will serve content to our visitors<br \/><code>MySQL\/MariaDB<\/code> &#8211; one of the most popular database management systems which will allow to manage and store our data in databases<br \/><code>PHP<\/code> &#8211; the popular and powerful server scripting language that will dynamically process our pages<\/p>\r\n<p>In this tutorial we&#8217;ll install <strong>LAMP Stack<\/strong> on an Ubuntu 18.04 machine.<\/p>\r\n<h2 id=\"prerequisites\">Prerequisites<\/h2>\r\n<p>Update your package index to make sure we have access to the latest software releases:<\/p>\r\n<pre><code>$ sudo apt update<\/code><\/pre>\r\n<h2 id=\"step-1-install-apache\">Step 1 \u2013 Install Apache<\/h2>\r\n<pre><code>$ sudo apt install apache2<\/code><\/pre>\r\n<blockquote class=\"note\">\r\n<p><small>After you run the command, <code>apt<\/code> will show you what packages it will install, how much disk space it they&#8217;ll take up, and ask you to confirm. To proceed, type <code>Y<\/code> and press <code>Enter<\/code>.<\/small><\/p>\r\n<\/blockquote>\r\n<p>With Apache2 is installed, you can use the following commands to <code>stop<\/code>, <code>start<\/code> and <code>enable<\/code> the Apache2 service to always start up when the server boots.<\/p>\r\n<pre><code>sudo systemctl stop apache2.service\r\nsudo systemctl start apache2.service\r\nsudo systemctl enable apache2.service<\/code><\/pre>\r\n<p>You can also check if Apache is up and running on your machine by visiting your server&#8217;s IP address in your browser ( example: <code>http:\/\/XX.XXX.XX.XX<\/code> ).<\/p>\r\n<p>You should be seeing Apache&#8217;s default page on Ubuntu:<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-874\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/default_apache_ubuntu.png\" alt=\"apache_ubuntu_default_page\" width=\"1342\" height=\"657\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/default_apache_ubuntu.png 1342w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/default_apache_ubuntu-300x147.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/default_apache_ubuntu-1024x501.png 1024w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/default_apache_ubuntu-768x376.png 768w\" sizes=\"auto, (max-width: 1342px) 100vw, 1342px\" \/><\/p>\r\n<h2 id=\"step-2-install-mysql-mariadb\">Step 2 \u2013 Install MySQL\/MariaDB<\/h2>\r\n<pre><code>$ sudo apt install mysql-server<\/code><\/pre>\r\n<p>You can opt to install MariaDB instead of MySQL, and after you can follow the same instructions as you would with MySQL.<\/p>\r\n<pre><code>$ sudo apt install mariadb-server<\/code><\/pre>\r\n<blockquote class=\"note\">\r\n<p><small>After running the command to install MySQL or MariaDB, <code>apt<\/code> will show you again what packages it will need to install, how much disk space they&#8217;ll take up, and ask you to confirm. Type <code>Y<\/code> and press <code>Enter<\/code> to confirm and continue with the installation.<\/small><\/p>\r\n<\/blockquote>\r\n<p>MySQL comes with a script that helps in securing the installation by removing some dangerous defaults. To start the script, run the following command:<\/p>\r\n<pre><code>$ sudo mysql_secure_installation<\/code><\/pre>\r\n<p>First, it will ask you if you&#8217;d like to enable <code>VALIDATE PASSWORD PLUGIN<\/code>.<\/p>\r\n<blockquote class=\"note\">\r\n<p><small>If you enable this, then depending on the type of validation you choose (<code>LOW<\/code>, <code>MEDIUM<\/code> or <code>STRONG<\/code>), MySQL will return errors if your password does not meet the specified criteria for the policy you&#8217;ve chosen. This may conflict with other software packages, so it is up to you to decide. In our tutorial, we will choose <code><span style=\"color: #f44336;\">Y<\/span><\/code>.<\/small><\/p>\r\n<\/blockquote>\r\n<p>We&#8217;ll choose <code><span style=\"color: #f44336;\">1<\/span><\/code>. We recommend you choose what level of complexity you prefer between <code>MEDIUM<\/code> and <code>STRONG<\/code>.<\/p>\r\n<pre><code>There are three levels of password validation policy:\r\n\r\nLOW    Length &gt;= 8\r\nMEDIUM Length &gt;= 8, numeric, mixed case, and special characters\r\nSTRONG Length &gt;= 8, numeric, mixed case, special characters and dictionary file\r\n\r\nPlease enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 1\r\nPlease set the password for root here.<\/code><\/pre>\r\n<p><code>New password: <span style=\"color: #f44336;\">Enter password<\/span><\/code><br \/><code>Re-enter new password: <span style=\"color: #f44336;\">Repeat password<\/span><\/code><\/p>\r\n<p>You&#8217;ll also be prompted to answer some questions to remove\/keep some defaults. We recommend you answer them as follows:<\/p>\r\n<p><code>Remove anonymous users? [Y\/n]: <span style=\"color: #f44336;\">Y<\/span><\/code><br \/><code>Disallow root login remotely? [Y\/n]: <span style=\"color: #f44336;\">Y<\/span><\/code><br \/><code>Remove test database and access to it? [Y\/n]: <span style=\"color: #f44336;\">Y<\/span><\/code><br \/><code>Reload privilege tables now? [Y\/n]: <span style=\"color: #f44336;\">Y<\/span><\/code><\/p>\r\n<p>To make sure MySQL is properly installed, let&#8217;s test it out by running the following command, and entering the password you just created at the prompt:<\/p>\r\n<pre><code>$ sudo mysql -u root -p<\/code><\/pre>\r\n<p>To exit just run:<\/p>\r\n<pre><code>exit;<\/code><\/pre>\r\n<h2 id=\"step-3-install-php\">Step 3 \u2013 Install PHP<\/h2>\r\n<p>Ubuntu 18.04 comes with the latest PHP installed, which is version 7.2. You can install PHP, the Apache PHP module, and a few other PHP related modules by running the following commands:<\/p>\r\n<pre><code>$ sudo apt install php libapache2-mod-php php-common php-mbstring php-xmlrpc php-soap php-gd php-xml php-intl php-mysql php-cli php-zip php-curl<\/code><\/pre>\r\n<p>Test the PHP version:<\/p>\r\n<div class=\"showyourterms regular nostatusbar\" data-title=\"root@draculaservers\">\n<div class=\"command\" data-action=\"command\" data-delay=\"10000\" data-speed=\"50\">php&nbsp;-vPHP&nbsp;7.2.10-0ubuntu0.18.04.1&nbsp;(cli)&nbsp;(built:&nbsp;Sep&nbsp;13&nbsp;2018&nbsp;13:45:02)&nbsp;(&nbsp;NTS&nbsp;)Copyright&nbsp;(c)&nbsp;1997-2018&nbsp;The&nbsp;PHP&nbsp;GroupZend&nbsp;Engine&nbsp;v3.2.0,&nbsp;Copyright&nbsp;(c)&nbsp;1998-2018&nbsp;Zend&nbsp;Technologies\u00a0\u00a0\u00a0\u00a0with&nbsp;Zend&nbsp;OPcache&nbsp;v7.2.10-0ubuntu0.18.04.1,&nbsp;Copyright&nbsp;(c)&nbsp;1999-2018,&nbsp;by&nbsp;Zend&nbsp;Technologies<\/div>   <\/div>\r\n<p>Now that all the PHP packages are installed, restart Apache to make sure the changes are implemented:<\/p>\r\n<pre><code>$ sudo systemctl restart apache2<\/code><\/pre>\r\n<p>To check that PHP is up and running with Apache, you can create a simple PHP file in the Apache2 root directory, which is <code>\/var\/www\/html\/<\/code>.<\/p>\r\n<p>To create this file run the following commands:<\/p>\r\n<pre><code>$ sudo nano \/var\/www\/html\/phpinfo.php<\/code><\/pre>\r\n<p>And add the following line to the file:<\/p>\r\n<pre>&lt;?php phpinfo(); ?&gt;<\/pre>\r\n<p>Save the file and exit the editor when you&#8217;re finished.<\/p>\r\n<p>Now visit <code>http:\/\/your_ip\/phpinfo.php<\/code>, and you should see the default PHP test page:<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-873\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/apache_phpinfo-e1542323609268.png\" alt=\"apache_ubuntu_phpinfo\" width=\"1211\" height=\"634\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/apache_phpinfo-e1542323609268.png 1211w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/apache_phpinfo-e1542323609268-300x157.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/apache_phpinfo-e1542323609268-1024x536.png 1024w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/apache_phpinfo-e1542323609268-768x402.png 768w\" sizes=\"auto, (max-width: 1211px) 100vw, 1211px\" \/><\/p>\r\n<h2 id=\"conclusion\">Conclusion<\/h2>\r\n<p>Congratulations. If everything went well then you&#8217;ve successfully installed LAMP Stack on your Ubuntu 18.04 machine.<\/p>\r\n<p>If you&#8217;re ready to host your app and need a high performance budget server, then check out our <a href=\"https:\/\/draculaservers.com\/kvm.php\">Linux KVM VPS<\/a>. They start at 1GB RAM &amp; 10GB SSD at only $9.99\/mo.<\/p>\r\n\r\n<p>&nbsp;<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Overview LAMP Stack is a group of very popular open-source software, that when used together enable us to host dynamic websites and web apps. LAMP is actually an acronym that stands for:Linux &#8211; in this case, it is our Ubuntu 18.04 machineApache &#8211; the most popular web server, that will serve content to our visitorsMySQL\/MariaDB [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":878,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,6,2],"tags":[],"class_list":["post-852","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-getting-started","category-hosting","category-linux-basics"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"featured_image_urls_v2":{"full":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu.png",1024,512,false],"thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu-150x150.png",150,150,true],"medium":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu-300x150.png",300,150,true],"medium_large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu-768x384.png",768,384,true],"large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu.png",1024,512,false],"1536x1536":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu.png",1024,512,false],"2048x2048":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu.png",1024,512,false],"pk-small":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu-80x80.png",80,80,true],"pk-thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu-300x225.png",300,225,true]},"post_excerpt_stackable_v2":"<p>Overview LAMP Stack is a group of very popular open-source software, that when used together enable us to host dynamic websites and web apps. LAMP is actually an acronym that stands for:Linux &#8211; in this case, it is our Ubuntu 18.04 machineApache &#8211; the most popular web server, that will serve content to our visitorsMySQL\/MariaDB &#8211; one of the most popular database management systems which will allow to manage and store our data in databasesPHP &#8211; the popular and powerful server scripting language that will dynamically process our pages In this tutorial we&#8217;ll install LAMP Stack on an Ubuntu 18.04&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/draculaservers.com\/tutorials\/category\/getting-started\/\" rel=\"category tag\">Getting Started<\/a>, <a href=\"https:\/\/draculaservers.com\/tutorials\/category\/hosting\/\" rel=\"category tag\">Hosting<\/a>, <a href=\"https:\/\/draculaservers.com\/tutorials\/category\/linux-basics\/\" rel=\"category tag\">Linux Basics<\/a>","author_info_v2":{"name":"Vlad","url":"https:\/\/draculaservers.com\/tutorials\/author\/vlad\/"},"comments_num_v2":"0 comments","yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Install LAMP Stack on Ubuntu 18.04 for Dynamic Web Hosting<\/title>\n<meta name=\"description\" content=\"Follow this tutorial to install LAMP Stack on your Ubuntu 18.04 machine, creating an environment to host dynamic websites and web applications effortlessly.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install LAMP Stack on Ubuntu 18.04 for Dynamic Web Hosting\" \/>\n<meta property=\"og:description\" content=\"Follow this tutorial to install LAMP Stack on your Ubuntu 18.04 machine, creating an environment to host dynamic websites and web applications effortlessly.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Dracula Servers Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-14T21:12:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-18T13:54:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Vlad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vlad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/install-lamp-stack-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/install-lamp-stack-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"Vlad\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/931f7fa8b2126ace6edfb82775e0ec0e\"},\"headline\":\"How to Install LAMP (Apache, MySQL, PHP) Stack on Ubuntu 18.04\",\"datePublished\":\"2018-11-14T21:12:16+00:00\",\"dateModified\":\"2024-01-18T13:54:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/install-lamp-stack-ubuntu-18-04\\\/\"},\"wordCount\":632,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/install-lamp-stack-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/LAMP-Ubuntu.png\",\"articleSection\":[\"Getting Started\",\"Hosting\",\"Linux Basics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/install-lamp-stack-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/install-lamp-stack-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/install-lamp-stack-ubuntu-18-04\\\/\",\"name\":\"Install LAMP Stack on Ubuntu 18.04 for Dynamic Web Hosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/install-lamp-stack-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/install-lamp-stack-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/LAMP-Ubuntu.png\",\"datePublished\":\"2018-11-14T21:12:16+00:00\",\"dateModified\":\"2024-01-18T13:54:28+00:00\",\"description\":\"Follow this tutorial to install LAMP Stack on your Ubuntu 18.04 machine, creating an environment to host dynamic websites and web applications effortlessly.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/install-lamp-stack-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/install-lamp-stack-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/install-lamp-stack-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/LAMP-Ubuntu.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/LAMP-Ubuntu.png\",\"width\":1024,\"height\":512,\"caption\":\"lamp_stack_ubuntu_featured\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/install-lamp-stack-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install LAMP (Apache, MySQL, PHP) Stack on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"name\":\"Dracula Servers Tutorials\",\"description\":\"Dedicated Servers\",\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\",\"name\":\"Dracula Servers\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"width\":1625,\"height\":200,\"caption\":\"Dracula Servers\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/931f7fa8b2126ace6edfb82775e0ec0e\",\"name\":\"Vlad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g\",\"caption\":\"Vlad\"},\"description\":\"Tech Support\",\"sameAs\":[\"https:\\\/\\\/draculaservers.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install LAMP Stack on Ubuntu 18.04 for Dynamic Web Hosting","description":"Follow this tutorial to install LAMP Stack on your Ubuntu 18.04 machine, creating an environment to host dynamic websites and web applications effortlessly.","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:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"Install LAMP Stack on Ubuntu 18.04 for Dynamic Web Hosting","og_description":"Follow this tutorial to install LAMP Stack on your Ubuntu 18.04 machine, creating an environment to host dynamic websites and web applications effortlessly.","og_url":"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/","og_site_name":"Dracula Servers Tutorials","article_published_time":"2018-11-14T21:12:16+00:00","article_modified_time":"2024-01-18T13:54:28+00:00","og_image":[{"width":1024,"height":512,"url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu.png","type":"image\/png"}],"author":"Vlad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vlad","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/"},"author":{"name":"Vlad","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/931f7fa8b2126ace6edfb82775e0ec0e"},"headline":"How to Install LAMP (Apache, MySQL, PHP) Stack on Ubuntu 18.04","datePublished":"2018-11-14T21:12:16+00:00","dateModified":"2024-01-18T13:54:28+00:00","mainEntityOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/"},"wordCount":632,"commentCount":0,"publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu.png","articleSection":["Getting Started","Hosting","Linux Basics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/","url":"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/","name":"Install LAMP Stack on Ubuntu 18.04 for Dynamic Web Hosting","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu.png","datePublished":"2018-11-14T21:12:16+00:00","dateModified":"2024-01-18T13:54:28+00:00","description":"Follow this tutorial to install LAMP Stack on your Ubuntu 18.04 machine, creating an environment to host dynamic websites and web applications effortlessly.","breadcrumb":{"@id":"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/#primaryimage","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/11\/LAMP-Ubuntu.png","width":1024,"height":512,"caption":"lamp_stack_ubuntu_featured"},{"@type":"BreadcrumbList","@id":"https:\/\/draculaservers.com\/tutorials\/install-lamp-stack-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/draculaservers.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to Install LAMP (Apache, MySQL, PHP) Stack on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/draculaservers.com\/tutorials\/#website","url":"https:\/\/draculaservers.com\/tutorials\/","name":"Dracula Servers Tutorials","description":"Dedicated Servers","publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/draculaservers.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/draculaservers.com\/tutorials\/#organization","name":"Dracula Servers","url":"https:\/\/draculaservers.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","width":1625,"height":200,"caption":"Dracula Servers"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/931f7fa8b2126ace6edfb82775e0ec0e","name":"Vlad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g","caption":"Vlad"},"description":"Tech Support","sameAs":["https:\/\/draculaservers.com"]}]}},"_links":{"self":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/comments?post=852"}],"version-history":[{"count":3,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/852\/revisions"}],"predecessor-version":[{"id":2702,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/852\/revisions\/2702"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media\/878"}],"wp:attachment":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media?parent=852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/categories?post=852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/tags?post=852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}