Preconfiguring cPanel Installation with Desired MySQL Version – cpanel profile install mariadb
Introduction In order to ensure that your desired version of MySQL is installed right from the beginning, it is possible to preconfigure a cPanel installation. By following a simple procedure, you can specify the MySQL version you want during the installation process.
Procedure If you are setting up a new server without cPanel installed, perform the following steps:
- Create a directory named “cpanel_profile” in the root directory:
mkdir /root/cpanel_profile
- Create a file named “cpanel.config” inside the “cpanel_profile” directory:
touch /root/cpanel_profile/cpanel.config
- Open the “cpanel.config” file and add one of the example configurations provided below to specify your desired MySQL or MariaDB version. Afterward, proceed with running the installer as you normally would.
Current Versions MySQL 8:
mysql-version=8.0
MySQL 5.7:
mysql-version=5.7
(Note: Unavailable on AlmaLinux 8, CloudLinux 8, and CentOS 8)
MariaDB 10.6:
mysql-version=10.6
MariaDB 10.5:
mysql-version=10.5
MariaDB 10.3:
mysql-version=10.3
(Note: Unavailable on CentOS 8)
EOL Versions – Should Not be Used In Production The following versions are provided as examples only and should not be used in production environments. Attempting to use these versions may cause the cPanel installation to fail, requiring you to reinstall the operating system from scratch.
MySQL 5.6:
mysql-version=5.6
MariaDB 10.0:
mysql-version=10.0
MariaDB 10.1:
mysql-version=10.1
MariaDB 10.2:
mysql-version=10.2
By following these steps, you can ensure that your cPanel installation includes your desired MySQL version, enhancing the overall functionality and compatibility of your server.
3,199 total views, 6 views today
Comments
So empty here ... leave a comment!