Setting up a web server with Apache, PHP and MariaDB

This page contains some quick notes of how one can setup a web server with Apache, PHP and MariaDB.

Server provider is Hetzner Cloud.

Initial security settings

Add new user

adduser toby

Grant administrator privileges

usermod -aG sudo toby

Don't prompt for sudo password when already logged in

sudo visudo

Add to bottom of the file:

hjorslev | Sun, 02/09/2020 - 15:26