{"id":16959,"date":"2026-03-24T08:08:21","date_gmt":"2026-03-24T08:08:21","guid":{"rendered":"https:\/\/cloudmatika.co.id\/?p=16959"},"modified":"2026-07-14T11:24:52","modified_gmt":"2026-07-14T11:24:52","slug":"easy-guide-to-installing-lamp-on-ubuntu","status":"publish","type":"post","link":"https:\/\/cloudmatika.co.id\/en\/blog-details\/easy-guide-to-installing-lamp-on-ubuntu\/","title":{"rendered":"How to Easily Install LAMP on Ubuntu"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"16959\" class=\"elementor elementor-16959\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8cb1b95 e-flex e-con-boxed e-con e-parent\" data-id=\"8cb1b95\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c0378b6 elementor-widget elementor-widget-text-editor\" data-id=\"c0378b6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><b><i>LAMP<\/i><\/b> is an acronym for Linux, Apache, MySQL, and Perl\/PHP\/Python. It is a free software package used to run a complete application.<\/p><p>The components of LAMP are:<\/p><ul><li aria-level=\"1\"><b>L<\/b>inux \u2013 operating system<\/li><li aria-level=\"1\"><b>A<\/b>pache HTTP Server \u2013 web server<\/li><li aria-level=\"1\"><b>M<\/b>ariaDB or <b>M<\/b>ySQL \u2013 database system<\/li><li aria-level=\"1\"><b>P<\/b>HP or <b>P<\/b>erl or <b>P<\/b>ython \u2013 programming language used<\/li><\/ul><p>Here is an easy way to install LAMP on Ubuntu:<\/p><ol><li aria-level=\"1\">Log in to your Ubuntu VPS\/Server as \u201c<b>root<\/b>\u201d or a user with the necessary permissions to install all Web Server requirements (To log in, you can use <b>Putty<\/b> on Windows or access the terminal on Linux)<\/li><li aria-level=\"1\">Once you are in the <b>Terminal<\/b> on Ubuntu Linux, please run the apt-get update command first to streamline the <i>LAMP<\/i> installation process. Type the following command: <b><i>sudo apt-get update<\/i><\/b><\/li><li aria-level=\"1\">After the apt-get update is complete, next install <b><i>Apache2<\/i><\/b> as the Web Server by typing the following command: <b><i>sudo apt-get install -y apache2<\/i><\/b><\/li><\/ol><p>*The -y parameter indicates a \u201cy\u201d (yes) response to every Yes\/No prompt<\/p><ol><li aria-level=\"1\">After the Apache2 installation is complete, you can check it via a browser by typing your VPS\u2019s IP address. For example, if your VPS IP is 192.168.1.2, you can type http:\/\/192.168.1.2 into your browser, which will display the <i>Apache2<\/i> page.<\/li><li aria-level=\"1\">The next step is to install <b><i>MariaDB. <\/i><\/b>MariaDB is a database platform created by the MySQL developers. Since MySQL was acquired by Oracle, its developers have shifted to creating a new database platform that offers many advantages over MySQL.<\/li><li aria-level=\"1\">Since MariaDB is a continuation project created by the MySQL developers, all MySQL commands and syntax are fully compatible with MariaDB.<\/li><li aria-level=\"1\">To install <b><i>MariaDB<\/i><\/b> on Ubuntu, type the following command: <b><i>sudo apt-get install -y mariadb-server mariadb-client<\/i><\/b><\/li><li aria-level=\"1\">After installing MariaDB, start MariaDB by typing the following command: <b><i>sudo service mysql start<\/i><\/b><\/li><li aria-level=\"1\">Then, check the MariaDB status by typing the following command: <b><i>sudo service mysql status<\/i><\/b><\/li><li aria-level=\"1\">Next, to secure <i>MySQL<\/i>, type the following command: <b><i>sudo mysql_secure_installation<\/i><\/b><\/li><li aria-level=\"1\">Next, we\u2019ll install <b><i>PHP7<\/i><\/b> on Ubuntu using the following command: <b><i>sudo apt-get install -y php libapache2-mod-php php-mcrypt php-mysql<\/i><\/b><\/li><li aria-level=\"1\">Once the installation is complete, please restart <i>Apache<\/i> by typing the following command: <b><i>sudo service apache2 restart<\/i><\/b><\/li><li aria-level=\"1\">You have successfully installed <b><i>LAMP<\/i><\/b> on your Ubuntu VPS\/Server, and by default, your website is located in the <b>\/var\/www\/<\/b> directory<\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>LAMP is an acronym for Linux, Apache, MySQL, and Perl\/PHP\/Python. It is a free software package used to run a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":28109,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[62],"tags":[],"class_list":["post-16959","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-support"],"_links":{"self":[{"href":"https:\/\/cloudmatika.co.id\/en\/wp-json\/wp\/v2\/posts\/16959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudmatika.co.id\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudmatika.co.id\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudmatika.co.id\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudmatika.co.id\/en\/wp-json\/wp\/v2\/comments?post=16959"}],"version-history":[{"count":12,"href":"https:\/\/cloudmatika.co.id\/en\/wp-json\/wp\/v2\/posts\/16959\/revisions"}],"predecessor-version":[{"id":28117,"href":"https:\/\/cloudmatika.co.id\/en\/wp-json\/wp\/v2\/posts\/16959\/revisions\/28117"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudmatika.co.id\/en\/wp-json\/wp\/v2\/media\/28109"}],"wp:attachment":[{"href":"https:\/\/cloudmatika.co.id\/en\/wp-json\/wp\/v2\/media?parent=16959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudmatika.co.id\/en\/wp-json\/wp\/v2\/categories?post=16959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudmatika.co.id\/en\/wp-json\/wp\/v2\/tags?post=16959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}