Installing Apache2, php, mariadb and so forth. $ sudo apt install apache2 libapache2-mod-php mariadb-server php-mysql. This will install Apache2, php, mariadb, and some dependencies, in addition to php bindings for accessing mysql. By default, Ubuntu will use unix socket authentication for MariaDB …

Ubuntu VPS Hosting via How do I install and set up Apache 2.