{"id":22633,"date":"2017-06-22T08:51:48","date_gmt":"2017-06-22T13:51:48","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=22633"},"modified":"2022-06-03T03:42:07","modified_gmt":"2022-06-03T08:42:07","slug":"how-to-install-lamp-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/","title":{"rendered":"How to Install LAMP on Ubuntu 16.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"size-full wp-image-24143 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04.jpg\" alt=\"How to Install LAMP on Ubuntu 16.04\" width=\"1200\" height=\"600\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04.jpg 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04-768x384.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04-1024x512.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04-860x430.jpg 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04-680x340.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04-500x250.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04-400x200.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04-200x100.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04-50x25.jpg 50w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>We&#8217;ll show you How to Install LAMP on Ubuntu 16.04. LAMP (Linux, Apache, MySQL, PHP) is a combination of open source software, typically installed on a server used for hosting dynamic websites and web applications. It includes the Linux operating system, the Apache web server, MySQL for data storage and management and PHP for handling the dynamic content.\u00a0Installing LAMP on Ubuntu 16.04 is an easy task, just follow the steps below carefully.<\/p>\n<p><!--more--><\/p>\n<h3>Requirements<\/h3>\n<p>SSH access with root privileges to your server, as well as Ubuntu 16.04 is required for you to be able to complete all the steps in this tutorial.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69eb72d0d9f9e\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69eb72d0d9f9e\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#1-Login-via-SSH\" >1. Login via SSH<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#2-Update-your-system\" >2. Update your system<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#3-Install-Apache-on-Ubuntu-1604\" >3. Install Apache on Ubuntu 16.04<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#4-Install-MySQL-on-Ubuntu-1604\" >4. Install MySQL\u00a0on Ubuntu 16.04<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#5-Secure-MySQL-Installation\" >5. Secure MySQL Installation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#6-Install-PHP-7-on-Ubuntu-1604\" >6. Install PHP 7 on Ubuntu 16.04<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#7-Restart-Apache-Web-Server\" >7. Restart Apache Web Server<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-Login-via-SSH\"><\/span>1. Login via SSH<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre>ssh user@vps_IP<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"2-Update-your-system\"><\/span>2. Update your system<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before we start, let&#8217;s make sure your system is up-to-date by running the following command:<\/p>\n<pre>apt-get update &amp;&amp; apt-get upgrade<\/pre>\n<p>Always keep your system <a href=\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/\">updated<\/a>. You can also <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enable-automatic-updates-on-a-linux-vps\/\">set up automatic updates<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"3-Install-Apache-on-Ubuntu-1604\"><\/span>3. Install Apache on Ubuntu 16.04<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We will start with installing the Apache web server. Apache is considered as the most widely used web server software. It is fast, secure, reliable and can be easily customized depending on your needs.<\/p>\n<p>To install Apache on your |Ubuntu 16.04 server, run the following command:<\/p>\n<pre>apt-get install apache2<\/pre>\n<p>After the installation is complete, you should enable Apache to start automatically upon system boot. You can do that with the following command:<\/p>\n<pre>systemctl enable apache2<\/pre>\n<p>To verify that Apache is running, open your web browser and enter your server IP address, (e.g. http:\/\/111.222.333.444). If Apache is successfully installed you should see a message saying &#8220;It works!&#8221;.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"4-Install-MySQL-on-Ubuntu-1604\"><\/span>4. Install MySQL\u00a0on Ubuntu 16.04<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Next, we will <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-ubuntu-16-04\/\">install MySQL<\/a> on your server. MySQL is one of the most popular database management systems.<\/p>\n<p>To install MySQL on your system, type the following command and enter Y to continue:<\/p>\n<pre>apt-get install mysql-server<\/pre>\n<p>During the installation, you will be asked to enter a password for the MySQL root user. Make sure you enter a <a href=\"https:\/\/www.rosehosting.com\/blog\/generate-password-linux-command-line\/\">strong password<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"5-Secure-MySQL-Installation\"><\/span>5. Secure MySQL Installation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>After the installation is complete, in order to improve the security of your MySQL server, we recommend to do the MySQL secure installation by typing the following command:<\/p>\n<pre>mysql_secure_installation<\/pre>\n<p>First, you will be asked about setting up the validate password plugin.<\/p>\n<pre>Would you like to setup VALIDATE PASSWORD plugin?(Press y|Y for Yes, any other key for No) :<\/pre>\n<p>This plugin checks the strength of a password and allows the users to set only passwords which are secure enough.<\/p>\n<p>Whether to enable this or not is entirely up to you, but it&#8217;s always recommended to use strong passwords.<\/p>\n<p>If you choose &#8216;yes&#8217;, you will be asked to choose the level of the password validation policy:<\/p>\n<pre>There are three levels of password validation policy:\n\nLOW Length &gt;= 8\nMEDIUM Length &gt;= 8, numeric, mixed case, and special characters\nSTRONG Length &gt;= 8, numeric, mixed case, special characters and dictionary file\n\nPlease enter 0 = LOW, 1 = MEDIUM and 2 = STRONG:<\/pre>\n<p>Next, you will be asked to change the root password, but since we already created it during the MySQL installation, we can skip this step by pressing Enter.<\/p>\n<p>After this, you will get asked a couple of more questions and it is recommended that you answer &#8216;yes&#8217; to all of them:<\/p>\n<pre>Remove anonymous users? (Press y|Y for Yes, any other key for No) :\n\nDisallow root login remotely? (Press y|Y for Yes, any other key for No) :\n\nRemove test database and access to it? (Press y|Y for Yes, any other key for No) :\n\nReload privilege tables now? (Press y|Y for Yes, any other key for No) :\n<\/pre>\n<p>Again, we can enable MySQL to start on boot with the following command:<\/p>\n<pre>systemctl enable mysql<\/pre>\n<p>With this, your MySQL installation is now complete.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"6-Install-PHP-7-on-Ubuntu-1604\"><\/span>6. Install PHP 7 on Ubuntu 16.04<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The last step in this tutorial is to install PHP. PHP is a programming language mostly used for developing dynamic websites.<\/p>\n<p>We will also include some additional modules, in order to help PHP to connect to our Apache and MySQL.<\/p>\n<p>To do this, enter the following command:<\/p>\n<pre>apt-get install php7.0 libapache2-mod-php7.0 php7.0-mysql<\/pre>\n<p>Now we can test if PHP is working correctly by placing a file called info.php inside your web server root directory.<\/p>\n<p>To do this, type the following:<\/p>\n<p>nano \/var\/www\/html\/info.php<\/p>\n<p>Enter the following inside the file and save it:<\/p>\n<pre>&lt;?php\nphpinfo();\n?&gt;<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"7-Restart-Apache-Web-Server\"><\/span>7. Restart Apache Web Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>And finally, restart the Apache server by typing:<\/p>\n<pre>systemctl restart apache2<\/pre>\n<p>Now, if you navigate to this page: http:\/\/your_server_ip_address\/info.php in your web browser, you will see the following page showing your current PHP configuration:<\/p>\n<p><img decoding=\"async\" class=\" wp-image-24694 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/Installing-LAMP-on-Ubuntu-16.04.png\" alt=\"Installing LAMP on Ubuntu 16.04\" width=\"720\" height=\"619\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/Installing-LAMP-on-Ubuntu-16.04.png 956w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/Installing-LAMP-on-Ubuntu-16.04-150x129.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/Installing-LAMP-on-Ubuntu-16.04-300x258.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/Installing-LAMP-on-Ubuntu-16.04-768x660.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/Installing-LAMP-on-Ubuntu-16.04-860x739.png 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/Installing-LAMP-on-Ubuntu-16.04-680x585.png 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/Installing-LAMP-on-Ubuntu-16.04-500x430.png 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/Installing-LAMP-on-Ubuntu-16.04-400x344.png 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/Installing-LAMP-on-Ubuntu-16.04-200x172.png 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/Installing-LAMP-on-Ubuntu-16.04-50x43.png 50w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/p>\n<p>This means PHP is working properly. Additionally, you can install PHPMyAdmin. It will allow you to manage your MySQL databases through a web browser. You can check <a href=\"https:\/\/www.rosehosting.com\/blog\/install-phpmyadmin-on-ubuntu-16-04\/\">our phpMyAdmin tutorial<\/a> to see how you can install it on an Ubuntu 16.04 VPS.<\/p>\n<p>With this, you have completed the LAMP installation on Ubuntu 16.04. Congratulations!<\/p>\n<hr \/>\n<p>Of course, if you are one of our <a href=\"https:\/\/www.rosehosting.com\/lamp-hosting.html\">Lamp Stack Hosting<\/a> customers, you don\u2019t have to Install LAMP on Ubuntu 16.04, or to know how to install LAMP stack on Ubuntu 16.04, simply ask our admins, sit back and relax. Our admins will install LAMP on Ubuntu 16.04 for you immediately. Using Ubuntu 18.04? We have a detailed guide on <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noopener\">how to install LAMP on Ubuntu 18.04<\/a>, so make sure to check it out.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post, on how to install LAMP stack on Ubuntu 16.04, please share it with your friends on the social networks using the buttons below or simply leave a comment in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ll show you How to Install LAMP on Ubuntu 16.04. LAMP (Linux, Apache, MySQL, PHP) is a combination of open &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install LAMP on Ubuntu 16.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#more-22633\" aria-label=\"Read more about How to Install LAMP on Ubuntu 16.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":24143,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1702,1698,1712,1707],"tags":[37,39,50,59],"class_list":["post-22633","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases","category-ubuntu","category-web-frameworks","category-web-servers","tag-apache","tag-mysql","tag-php","tag-ubuntu","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install LAMP on Ubuntu 16.04<\/title>\n<meta name=\"description\" content=\"How to Install LAMP on Ubuntu 16.04. Installing LAMP on Ubuntu 16.04 is an easy task, just follow the steps below carefully. LAMP installation on a Ubuntu 16.04\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install LAMP on Ubuntu 16.04\" \/>\n<meta property=\"og:description\" content=\"How to Install LAMP on Ubuntu 16.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2017-06-22T13:51:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:42:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-on-ubuntu-16-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-on-ubuntu-16-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install LAMP on Ubuntu 16.04\",\"datePublished\":\"2017-06-22T13:51:48+00:00\",\"dateModified\":\"2022-06-03T08:42:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-on-ubuntu-16-04\\\/\"},\"wordCount\":771,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-on-ubuntu-16-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/How-to-Install-LAMP-on-Ubuntu-16.04.jpg\",\"keywords\":[\"apache\",\"mysql\",\"php\",\"ubuntu\"],\"articleSection\":[\"Databases\",\"Ubuntu\",\"Web Frameworks\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-on-ubuntu-16-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-on-ubuntu-16-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-on-ubuntu-16-04\\\/\",\"name\":\"How to Install LAMP on Ubuntu 16.04\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-on-ubuntu-16-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-on-ubuntu-16-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/How-to-Install-LAMP-on-Ubuntu-16.04.jpg\",\"datePublished\":\"2017-06-22T13:51:48+00:00\",\"dateModified\":\"2022-06-03T08:42:07+00:00\",\"description\":\"How to Install LAMP on Ubuntu 16.04. Installing LAMP on Ubuntu 16.04 is an easy task, just follow the steps below carefully. LAMP installation on a Ubuntu 16.04\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-on-ubuntu-16-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-on-ubuntu-16-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-on-ubuntu-16-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/How-to-Install-LAMP-on-Ubuntu-16.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/How-to-Install-LAMP-on-Ubuntu-16.04.jpg\",\"width\":1200,\"height\":600,\"caption\":\"How to Install LAMP on Ubuntu 16.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-on-ubuntu-16-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install LAMP on Ubuntu 16.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install LAMP on Ubuntu 16.04","description":"How to Install LAMP on Ubuntu 16.04. Installing LAMP on Ubuntu 16.04 is an easy task, just follow the steps below carefully. LAMP installation on a Ubuntu 16.04","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:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install LAMP on Ubuntu 16.04","og_description":"How to Install LAMP on Ubuntu 16.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2017-06-22T13:51:48+00:00","article_modified_time":"2022-06-03T08:42:07+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install LAMP on Ubuntu 16.04","datePublished":"2017-06-22T13:51:48+00:00","dateModified":"2022-06-03T08:42:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/"},"wordCount":771,"commentCount":5,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04.jpg","keywords":["apache","mysql","php","ubuntu"],"articleSection":["Databases","Ubuntu","Web Frameworks","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/","name":"How to Install LAMP on Ubuntu 16.04","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04.jpg","datePublished":"2017-06-22T13:51:48+00:00","dateModified":"2022-06-03T08:42:07+00:00","description":"How to Install LAMP on Ubuntu 16.04. Installing LAMP on Ubuntu 16.04 is an easy task, just follow the steps below carefully. LAMP installation on a Ubuntu 16.04","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-LAMP-on-Ubuntu-16.04.jpg","width":1200,"height":600,"caption":"How to Install LAMP on Ubuntu 16.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-on-ubuntu-16-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install LAMP on Ubuntu 16.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/22633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=22633"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/22633\/revisions"}],"predecessor-version":[{"id":37652,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/22633\/revisions\/37652"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/24143"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=22633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=22633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=22633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}