Database Tuning
The slow log first. Not a 32 GB template on a 2 GB VPS.
Buffer pool sized to the RAM that is left after PHP. A query that is missing an index is not fixed by a larger box.
MariaDB and MySQL are separate pages if the daemon will not start. Here the daemon is up and a query is slow.
