{"id":4428,"date":"2024-07-02T22:54:22","date_gmt":"2024-07-03T02:54:22","guid":{"rendered":"https:\/\/underhost.com\/blog\/?p=4428"},"modified":"2024-07-08T17:00:29","modified_gmt":"2024-07-08T21:00:29","slug":"almalinux-9-with-cpanel-mysql-8-to-mariadb-10-11-guide","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/almalinux-9-with-cpanel-mysql-8-to-mariadb-10-11-guide\/","title":{"rendered":"AlmaLinux 9 with cPanel: MySQL 8 to MariaDB 10.11 Guide"},"content":{"rendered":"<h2>Welcome to the Future: AlmaLinux 9 with cPanel!<\/h2>\n<p>As pioneers in the hosting industry, UnderHost is excited to introduce AlmaLinux 9 paired with the latest cPanel &amp; WHM version 120. Our commitment to delivering cutting-edge solutions ensures you stay ahead in the fast-paced world of web hosting.<\/p>\n<h3>Important Notice for New Installations with MySQL 8<\/h3>\n<h2>Transitioning from MySQL 8.0 to MariaDB 10.11 on a New cPanel &amp; WHM Server<\/h2>\n<p>If you&#8217;ve recently installed cPanel and it defaulted to MySQL 8, but you wish to switch to MariaDB 10.11, ensure your server is new with no pre-existing databases before proceeding. This change is experimental and not supported officially.<\/p>\n<p><strong style=\"color: red;\">Warning: This migration method is entirely experimental and unsupported. Please refrain from contacting cPanel support for issues related to this guide.<\/strong><\/p>\n<p>If you initially forgot to set your preferred database in <code>\/root\/cpanel_profile\/cpanel.config<\/code> during your recent installations of cPanel &amp; WHM, here&#8217;s a guide allowing a seamless switch from the default MySQL to MariaDB 10.11:<\/p>\n<h3>Step-by-Step Guide to Migrate from MySQL 8.0 to MariaDB 10.11<\/h3>\n<p>As the root user, start by removing MySQL 8.0:<\/p>\n<p><code>dnf -y remove mysql-community-*<\/code><\/p>\n<p>Next, completely remove the MySQL data directory:<\/p>\n<p><code>rm -rf \/var\/lib\/mysql<\/code><\/p>\n<p>Update the desired SQL version in the cPanel configuration:<\/p>\n<p><code>sed -i 's\/mysql-version=8.0\/mysql-version=10.11\/g' \/var\/cpanel\/cpanel.config<\/code><\/p>\n<p>Begin the MariaDB installation with this API command:<\/p>\n<p><code>whmapi1 start_background_mysql_upgrade version=10.11<\/code><\/p>\n<p>To monitor the installation progress:<\/p>\n<p><code>tail -f \/var\/cpanel\/logs\/mysql_upgrade.<strong>YYYYMMDD-HHMMSS<\/strong>\/unattended_background_upgrade.log<\/code><\/p>\n<p>After installation, check the MySQL version to verify the update:<\/p>\n<p><code>mysql -V<\/code><\/p>\n<h3>Customizing MySQL or MariaDB Version During Initial cPanel Setup<\/h3>\n<p>To set a specific database version during the initial installation of cPanel, follow these steps:<\/p>\n<h4>Adjust the RPM Installation Preferences:<\/h4>\n<p><code>echo \"mysql-server=mysql-version=10.11\" &gt; \/etc\/cpanel_mysql_installation.profile<\/code><\/p>\n<h4>Database Version Options:<\/h4>\n<p><code># For MySQL 8<br \/>\nmysql-version=8.0<\/code><\/p>\n<p><code># For MariaDB 10.6<br \/>\nmysql-version=10.6<\/code><\/p>\n<p><code># For MariaDB 10.5<br \/>\nmysql-version=10.5<\/code><\/p>\n<p><code># For MariaDB 10.11<br \/>\nmysql-version=10.11<\/code><\/p>\n<h3>cPanel Installation Overview on AlmaLinux<\/h3>\n<p>For a detailed walkthrough of installing cPanel on AlmaLinux, refer to <a href=\"https:\/\/docs.cpanel.net\/installation-guide\/install\/\">cPanel&#8217;s official installation guide<\/a>.<\/p>\n<h4>Prerequisites for AlmaLinux 9:<\/h4>\n<p>Before installing, ensure your system is updated:<\/p>\n<p><code>sudo dnf update -y<\/code><\/p>\n<h4>Update \/etc\/resolv.conf:<\/h4>\n<p><code># Google DNS<br \/>\nnameserver 8.8.8.8<br \/>\nnameserver 8.8.4.4<\/code><\/p>\n<p><code># Cloudflare DNS<br \/>\nnameserver 1.1.1.1<br \/>\nnameserver 1.0.0.1<\/code><\/p>\n<p>Then download and run the cPanel installation script:<\/p>\n<p><code>cd \/home<br \/>\ncurl -o latest -L https:\/\/securedownloads.cpanel.net\/latest<br \/>\nsh latest<\/code><\/p>\n<h2>Enhance Your Hosting with UnderHost and AlmaLinux 9<\/h2>\n<p>Advance your hosting capabilities with UnderHost&#8217;s VPS, cloud, and dedicated server solutions, now optimized for AlmaLinux 9. Explore the forefront of hosting technology with us today.<\/p>\n<h2>Conclusion<\/h2>\n<p>With AlmaLinux 9 and cPanel now available for innovative use, UnderHost continues to drive forward in a future rich with hosting innovations. Whether you are a developer, a business owner, or in need of reliable hosting services, our solutions are crafted to meet diverse demands.<\/p>\n<p>Have questions or need assistance? <a href=\"https:\/\/customerpanel.ca\/client\/submitticket.php?step=2&amp;deptid=2\">Contact our support team<\/a> anytime. At UnderHost, we are dedicated to ensuring your hosting experience is exceptional.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to the Future: AlmaLinux 9 with cPanel! UnderHost introduces cutting-edge solutions for web hosting, including transitioning to MariaDB 10.11 from MySQL 8.0.<\/p>\n","protected":false},"author":1,"featured_media":4436,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61,1,3],"tags":[],"class_list":["post-4428","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-almalinux","category-news","category-controlpanel"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/4428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=4428"}],"version-history":[{"count":10,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/4428\/revisions"}],"predecessor-version":[{"id":4478,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/4428\/revisions\/4478"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media\/4436"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=4428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=4428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=4428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}