MariaDB for DirectAdmin using RPMs
Contents
If you any issues with installing MariaDB through yum
, then give this a shot.
It's very straight forward to install MariaDB with DirectAdmin.
Note:
Only do this if you are having issues such as:
Starting httpd: httpd: Syntax error on line 18 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so into server: libmysqlclient.so.18: cannot open shared object file: No such file or directory
OR:
Starting httpd: httpd: Syntax error on line 18 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: undefined symbol: client_errors
RPM Installation
There is a quick and easy guide on how to install MariaDB via RPMs here, https://kb.askmonty.org/en/installing-mariadb-with-the-rpm-tool/ .
Necessary Edits
We do not want DirectAdmin's custombuild to remove/overwrite our MariaDB installation whenever an update is performed. To rectify this, we are going to disable the automatic MySQL installation.
Now open up /usr/local/directadmin/custombuild/options.conf
You want to change:
mysql_inst=yes
To:
mysql_inst=no
Note:
You will be responsible any further updates for MariaDN.