How to customize the version of MySQL or MariaDB used when installing cPanel for the first time

Introduction

When installing cPanel, many default options are set, including the Database server version. If a version other than the default is desired, this must be configured before installing cPanel.

For example, if you'd like to use any version of MariaDB, it must be selected before you start the installation of cPanel, as you cannot convert from MySQL 8.0 to any version of MariaDB.

 

Procedure

On a brand new server that does not have cPanel installed, create the following file:

mkdir /root/cpanel_profile
touch /root/cpanel_profile/cpanel.config

You'll then add one of the following configurations to the file to specify your desired version of MySQL or MariaDB, then run the installer as you normally would.

You may select any version currently supported on your operating system.

Available Options

  • MySQL 8
    mysql-version=8.0
  • MariaDB 10.6
    mysql-version=10.6
  • MariaDB 10.5
    mysql-version=10.5
  • MariaDB 10.6
    mysql-version=10.6
  • MariaDB 10.11
    mysql-version=10.11

Please note, selecting a version that is not supported on your operating system will result in cPanel failing to install.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Modifying the htaccess file to use a custom php.ini file throughout your website

This guide provides instructions for modifying .htaccess to use a custom php.ini throughout your...

Customise the php.ini file settings in Code Editor

1. Log in to cPanel, if you haven’t already done so 2. If you haven’t already done so, create a...

Creating a new php.ini file

If you do not have a php.ini file in your public_html folder you can create one by following the...

My e-mail is going to the bulk or spam folder!

You can create an SPF record from cpanel > Email Authentication for your all domains that are...

I lost or forgot my cPanel or WHM password - how can I reset it?

Resetting your cPanel password and finding your cPanel username is easy and can be handled...