To install MariaDB on Cpanel Server, go to
WHM > Software > MySQL/MariaDB Upgrade
Then select MairaDB, in this case, i selected MariaDB 10, which is somewhat similar to MySQL 5.6.
Select desired version of MySQL/MriaDB. Click Next. On Next page, you get some warning, read it, if you are OK with it, click the check boxes on left side, click continue. It is always better have a copy of all your MySQL databases before doing this. Better copy the MySQL DB folder itself, this way you can recover if anything went wrong. In this case, this is a new server, so i don’t have to worry about MySQL backups.
Next select how you want to do the upgrade. You can choose any of the options, it won’t make much difference.
Now cpanel will start installing MySQL/MariaDB, compile PHP modules, so it work with newer version of MySQL.
After installation, verify MySQL version
root@server46 [~]# mysql --version mysql Ver 15.1 Distrib 10.0.22-MariaDB, for Linux (x86_64) using readline 5.1 root@server46 [~]#