{"id":3356,"date":"2019-07-17T21:31:09","date_gmt":"2019-07-17T18:31:09","guid":{"rendered":"https:\/\/kifarunix.com\/?p=3356"},"modified":"2019-07-17T21:31:10","modified_gmt":"2019-07-17T18:31:10","slug":"install-lamp-stack-with-mariadb-10-on-debian-10-buster","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-lamp-stack-with-mariadb-10-on-debian-10-buster\/","title":{"rendered":"Install LAMP Stack with MariaDB 10 on Debian 10 Buster"},"content":{"rendered":"\n<p>This guide will demonstrate how to install LAMP stack with MariaDB 10 on Debian 10 Buster. LAMP stack is a representation of web services attacks and it stands for; the\u00a0Linux\u00a0OS, <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/httpd.apache.org\/\" target=\"_blank\">Apache HTTP Server<\/a>, <a rel=\"noreferrer noopener\" aria-label=\"MySQL (opens in a new tab)\" href=\"https:\/\/www.mysql.com\/\" target=\"_blank\">MySQL<\/a>\/<a rel=\"noreferrer noopener\" aria-label=\"MariaDB (opens in a new tab)\" href=\"https:\/\/mariadb.org\/\" target=\"_blank\">MariaDB<\/a>\u00a0relational database management system\u00a0(RDBMS), and the\u00a0<a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/php.net\/\" target=\"_blank\">PHP<\/a>\u00a0programming language.\u00a0They can all be bundled together on a server for running web services.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install LAMP Stack with MariaDB 10 on Debian 10 Buster<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Perform System Update<\/h3>\n\n\n\n<p>To begin with, update and upgrade your system packages, which is the Linux OS component of the stuck. In this case, it is your Debian 10 Buster.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update\napt upgrade<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install Apache Web server<\/h3>\n\n\n\n<p>Once the system update is done, proceed to install Apache, the web server. Apache is available on the default Debian 10 Buster repos and can be installed by running the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install apache2<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Running Apache Web server<\/h4>\n\n\n\n<p>Once the installation is done, Apache is set to run by default. Check the status.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl status apache2<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\u25cf apache2.service - The Apache HTTP Server\n   Loaded: loaded (\/lib\/systemd\/system\/apache2.service; enabled; vendor pre\n   Active: active (running) since Wed 2019-06-19 15:56:54 EDT; 1min 37s ago\n     Docs: https:\/\/httpd.apache.org\/docs\/2.4\/\n Main PID: 1205 (apache2)\n    Tasks: 55 (limit: 2359)\n   Memory: 9.0M\n   CGroup: \/system.slice\/apache2.service\n           \u251c\u25001205 \/usr\/sbin\/apache2 -k start\n           \u251c\u25001207 \/usr\/sbin\/apache2 -k start\n           \u2514\u25001208 \/usr\/sbin\/apache2 -k start<\/code><\/pre>\n\n\n\n<p>It is also set to run on system boot by default.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl is-enabled apache2\nenabled<\/code><\/pre>\n\n\n\n<p>You can verify that Apache is ready to serve web requests by navigating the web browser and entering the server address as <strong>http:\/\/&lt;server-IP&gt;<\/strong>. You should be welcomed by Apache2 Deabian Test page.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/06\/apache-2debian-10-test-page.png\"><img loading=\"lazy\" decoding=\"async\" width=\"806\" height=\"648\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/06\/apache-2debian-10-test-page.png\" alt=\"install LAMP stack on Debian 10\" class=\"wp-image-3367\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/06\/apache-2debian-10-test-page.png 806w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/06\/apache-2debian-10-test-page-768x617.png 768w\" sizes=\"(max-width: 806px) 100vw, 806px\" \/><\/a><\/figure>\n\n\n\n<p>Note that if UFW is running, you need to Allow Apache through it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code><code>ufw allow in \u201cWWW Full\u201d<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install MySQL\/MariaDB on Debian 10 Buster<\/h3>\n\n\n\n<p>In this guide, we are using MariaDB 10.4. See how to install MariaDB 10.4 on Debian 10 Buster by following the link below;<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-mariadb-10-on-debian-10-buster\/\" target=\"_blank\">Install MariaDB 10 on Debian 10 Buster<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install PHP 7.3 on Debian 10 Buster<\/h3>\n\n\n\n<p>PHP 7.3 is available on the default Debian 10 Buster repos. Hence, execute the command below to install PHP and PHP Apache and MySQL\/MariaDB extensions.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install php libapache2-mod-php php-mysql<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Test PHP Processing<\/h3>\n\n\n\n<p>To test PHP processing, create a PHP test page under the Apache web root directory, usually, <strong>\/var\/www\/html<\/strong>, with the following content.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/var\/www\/html\/test.php<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code><code>&lt;?php phpinfo();<\/code><\/pre>\n\n\n\n<p>To test PHP processing, navigate to the browser and enter the address;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>http:\/\/&lt;server-IP>\/test.php<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/debian-10-buster-php-test.png\"><img loading=\"lazy\" decoding=\"async\" width=\"936\" height=\"677\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/debian-10-buster-php-test.png\" alt=\"Install LAMP Stack with MariaDB 10 on Debian 10 Buster\" class=\"wp-image-3669\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/debian-10-buster-php-test.png 936w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/debian-10-buster-php-test-768x555.png 768w\" sizes=\"(max-width: 936px) 100vw, 936px\" \/><\/a><\/figure>\n\n\n\n<p>Once you have confirmed that all is well, remove the PHP test page.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>rm -rf \/var\/www\/html\/test.php<\/code><\/pre>\n\n\n\n<p>Well, that is all on how to install LAMP Stack with MariaDB 10 on Debian 10 Buster.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Related Tutorials;<\/h3>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-lamp-stack-on-fedora-30\/\" target=\"_blank\">Install LAMP Stack on Fedora 30<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-lamp-stack-on-debian-9\/\" target=\"_blank\">Install LAMP Stack on Debian 9<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/how-to-install-lamp-linux-apache-mysql-php-stack-on-fedora-28-29\/\" target=\"_blank\">How To Install LAMP (Linux, Apache, MySQL, PHP) Stack on Fedora 28\/29<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/how-to-install-lamp-stack-apachemariadb-php-7-2-on-ubuntu-18-04-lts\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">How to Install LAMP Stack (Apache,MariaDB, PHP 7.2) on Ubuntu 18.04 LTS<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide will demonstrate how to install LAMP stack with MariaDB 10 on Debian 10 Buster. LAMP stack is a representation of web services attacks<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[299,121,201,928],"tags":[1039,204,1024],"class_list":["post-3356","post","type-post","status-publish","format-standard","hentry","category-database","category-howtos","category-lamp-stack","category-mariadb","tag-debian-10-buster","tag-lamp-stack","tag-mariadb-10-4","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3356"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=3356"}],"version-history":[{"count":3,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3356\/revisions"}],"predecessor-version":[{"id":3670,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3356\/revisions\/3670"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=3356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=3356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=3356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}