ssh root@IP_Address -p Port_number<\/pre>\nReplace ‘root’ with the name of your account if you’re not using the root user. You can check whether you have the proper Debian version installed on your server with the following command:<\/p>\n
$ lsb_release -a<\/pre>\nYou should get this output:<\/p>\n
Distributor ID: Debian\r\nDescription: Debian GNU\/Linux 9.9 (Stretch)\r\nRelease: 9.9\r\nCodename: stretch\r\n<\/pre>\nThen, run the following command to make sure that all installed packages on the server are updated to their latest available versions:<\/p>\n
$ apt update && apt upgrade<\/pre>\nInstall the needed packages.<\/p>\n
$ apt install -y zip unzip curl wget git<\/pre>\nWith that out of the way, we can start installing the packages that we\u2019ll need.<\/p>\n
<\/span>Step 2: Install MariaDB<\/span><\/h2>\nWe will use MariaDB as a database engine. We can install the MariaDB server from the Debian 9 base repository using the following command:<\/p>\n
$ apt-get install mariadb-server mariadb-server-core<\/pre>\nIf desired, you can further improve the security of your MariaDB server by running a command that will go through a few questions.<\/p>\n
$ mysql_secure_installation<\/pre>\nFor the password, just press your [Enter] key, as no password is set by default. We suggest answering every question with the character \u2018Y\u2019 for yes.<\/p>\n
Again, we can enable MariaDB to start on boot with the following command:<\/p>\n
$ systemctl enable mariadb<\/pre>\nThat\u2019s it \u2013 MariaDB has been installed, set to start on server boot, and made more secure.<\/p>\n