{"id":10919,"date":"2025-01-17T07:20:55","date_gmt":"2025-01-17T07:20:55","guid":{"rendered":"https:\/\/www.trustedhosting.in\/blog\/?p=10919"},"modified":"2025-01-17T07:20:55","modified_gmt":"2025-01-17T07:20:55","slug":"how-to-enable-mysql-connections","status":"publish","type":"post","link":"https:\/\/www.webystrata.com\/blog\/how-to-enable-mysql-connections\/","title":{"rendered":"How to Enable  Encrypted MySQL Connections"},"content":{"rendered":"<h1><a href=\"https:\/\/www.trustedhosting.in\/cpanel-hosting.html\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-10920 size-full\" title=\"How to Enable  Encrypted MySQL Connections\" src=\"https:\/\/www.trustedhosting.in\/blog\/wp-content\/uploads\/2025\/01\/21902030_6498830.jpg\" alt=\"How to Enable  Encrypted MySQL Connections\" width=\"2000\" height=\"2000\" srcset=\"https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/21902030_6498830.jpg 2000w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/21902030_6498830-300x300.jpg 300w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/21902030_6498830-1024x1024.jpg 1024w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/21902030_6498830-150x150.jpg 150w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/21902030_6498830-768x768.jpg 768w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/21902030_6498830-1536x1536.jpg 1536w\" sizes=\"auto, (max-width: 2000px) 100vw, 2000px\" \/><\/a><\/h1>\n<h1>How to Enable Encrypted MySQL Connections<\/h1>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_98110847-7d26-4e90-9b16-f86c988ca96f\" class=\"text-block-content\">\n<p>To use WHMCS with an encrypted MySQL\u00ae connection, you will need to perform additional steps to configure the necessary settings to the <code>configuration.php<\/code>\u00a0file.<\/p>\n<\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock screensteps-wrapper--tip screensteps-wrapper\" tabindex=\"0\" role=\"status\" aria-label=\"tip\">\n<div id=\"text-content_3abddde1-2e39-4c34-8b15-15cdb4be9cac\" class=\"text-block-content\">\n<blockquote><p>We added support for encrypted MySQL connections in WHMCS 8.8.<\/p><\/blockquote>\n<\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock screensteps-wrapper--info screensteps-wrapper\" tabindex=\"0\" role=\"status\" aria-label=\"info\">\n<div id=\"text-content_ee012617-1674-4cfd-9b38-188c929ccb55\" class=\"text-block-content\">\n<blockquote><p>For steps to configure encrypted MySQL connections on cPanel &amp; WHM servers, see\u00a0<a href=\"https:\/\/docs.cpanel.net\/knowledge-base\/security\/how-to-configure-mysql-ssl-connections\/\" target=\"_blank\" rel=\"noopener\">cPanel&#8217;s How to Configure MySQL SSL Connections Documentation<\/a>.<\/p><\/blockquote>\n<\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock screensteps-wrapper--alert screensteps-wrapper\" tabindex=\"0\" role=\"status\" aria-label=\"alert\">\n<div id=\"text-content_5250e926-e6ca-47c9-b02b-20367e0fc258\" class=\"text-block-content\">\n<blockquote><p>You\u00a0<strong>cannot\u00a0<\/strong>configure this before or during the installation process using the browser-based installation method. Because of this, you\u00a0<strong>cannot\u00a0<\/strong>use the browser-based method if your server\u00a0<strong>requires\u00a0<\/strong>encrypted connections.<\/p><\/blockquote>\n<\/div>\n<\/div>\n<div class=\"step step-depth-1\" data-step-uuid=\"5303f1c8-f707-4c8a-b770-245ba2bb092b\">\n<h2 id=\"configuration-before-installation-cli\" tabindex=\"0\">Configuration Before Installation (CLI)<\/h2>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_89121da6-1fc7-4ca1-ae6b-a13ac40961ad\" class=\"text-block-content\">\n<p>To enable encrypted MySQL connections before proceeding with the\u00a0<a href=\"https:\/\/docs.whmcs.com\/Install_On_The_Command_Line\" target=\"_blank\" rel=\"noopener\">CLI-based installation method<\/a>:<\/p>\n<ol>\n<li>Open the\u00a0<code>configuration.php<\/code>\u00a0file in your preferred text editor.<\/li>\n<li>Update the necessary configuration settings, replacing the example values below with your server&#8217;s information:<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<div class=\"code-block copy-clipboard--parent\">\n<pre id=\"code-content_75dad23d-0500-4c8a-b741-375e5939509d\" tabindex=\"0\"><code>$db_tls_ca='\/path\/to\/ca\/file';\r\n$db_tls_ca_path='\/path\/to\/ca\/directory';\r\n$db_tls_cert='\/path\/to\/client\/cert';\r\n$db_tls_cipher='AES256-SHA';\r\n$db_tls_key='\/path\/to\/client\/key';\r\n$db_tls_verify_cert='0';<\/code><\/pre>\n<div class=\"copy-clipboard copy-clipboard--tt-right\"><\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock screensteps-wrapper--tip screensteps-wrapper\" tabindex=\"0\" role=\"status\" aria-label=\"tip\">\n<div id=\"text-content_b590a506-1d67-4581-8526-c63b16271171\" class=\"text-block-content\">\n<blockquote><p>The settings that you configure will depend on your server&#8217;s configuration.<\/p><\/blockquote>\n<\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_61f720cc-51a7-4a87-80ee-5ca7949f43d6\" class=\"text-block-content\">\n<p>3. Proceed with installation via the command line.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"step step-depth-1\" data-step-uuid=\"7fdf51ae-6476-4d75-a33c-44e52e9f617e\">\n<h2 id=\"configuration-during-installation-cli\" tabindex=\"0\">Configuration During Installation (CLI)<\/h2>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_a4dd40a0-d2b2-45ab-95ce-bad5a872927e\" class=\"text-block-content\">\n<p>To enable encrypted MySQL connections during the\u00a0<a href=\"https:\/\/docs.whmcs.com\/Install_On_The_Command_Line\" target=\"_blank\" rel=\"noopener\">CLI-based installation process<\/a>, use the\u00a0<code>-c<\/code>\u00a0or\u00a0<code>--config<\/code>\u00a0options while running the command-line installation script.<\/p>\n<p>Include the following lines in your JSON input, replacing the example values below with your server&#8217;s information:<\/p>\n<\/div>\n<\/div>\n<div class=\"code-block copy-clipboard--parent\">\n<pre id=\"code-content_18b498af-3004-40da-b153-be36e8b0c40e\" tabindex=\"0\"><code>\"db_tls_ca\":\"'\/path\/to\/ca\/file'\",\r\n\"db_tls_ca_path\":\"'\/path\/to\/ca\/directory'\",\r\n\"db_tls_cert\":\"'\/path\/to\/client\/cert'\",\r\n\"db_tls_cipher\":\"'AES256-SHA'\",\r\n\"db_tls_key\":\"'\/path\/to\/client\/key'\",\r\n\"db_tls_verify_cert\":\"'0'\",<\/code><\/pre>\n<div class=\"copy-clipboard copy-clipboard--tt-right\"><\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock screensteps-wrapper--tip screensteps-wrapper\" tabindex=\"0\" role=\"status\" aria-label=\"tip\">\n<div id=\"text-content_3d3b6314-f568-4425-b722-11900da959ee\" class=\"text-block-content\">\n<blockquote><p>The settings that you configure will depend on your server&#8217;s configuration.<\/p><\/blockquote>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"step step-depth-1\" data-step-uuid=\"95c404f9-2d9f-42c9-8c87-859f9ef21207\">\n<h2 id=\"configuration-after-installation-cli-or-browser\" tabindex=\"0\">Configuration After Installation (CLI or Browser)<\/h2>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_3bf6269b-8628-43e8-972c-f5f3604f7f49\" class=\"text-block-content\">\n<p>To enable encrypted MySQL connections after you have completed installation:<\/p>\n<ol>\n<li>Open the\u00a0<code>configuration.php<\/code>\u00a0file in your preferred text editor.<\/li>\n<li>Update the necessary configuration settings, replacing the example values below with your server&#8217;s information:<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<div class=\"code-block copy-clipboard--parent\">\n<pre id=\"code-content_d6e831aa-46db-4ca5-b8a2-03c72c9f1c6d\" tabindex=\"0\"><code>$db_tls_ca='\/path\/to\/ca\/file';\r\n$db_tls_ca_path='\/path\/to\/ca\/directory';\r\n$db_tls_cert='\/path\/to\/client\/cert';\r\n$db_tls_cipher='AES256-SHA';\r\n$db_tls_key='\/path\/to\/client\/key';\r\n$db_tls_verify_cert='0';<\/code><\/pre>\n<div class=\"copy-clipboard copy-clipboard--tt-right\"><\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock screensteps-wrapper--tip screensteps-wrapper\" tabindex=\"0\" role=\"status\" aria-label=\"tip\">\n<div id=\"text-content_2fb14992-90c9-4e45-ace7-a20d12b6730b\" class=\"text-block-content\">\n<blockquote><p>The settings that you configure will depend on your server&#8217;s configuration.<\/p><\/blockquote>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to Enable Encrypted MySQL Connections To use WHMCS with an encrypted MySQL\u00ae connection, you will need to perform additional&hellip;<\/p>\n","protected":false},"author":1,"featured_media":10920,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10919","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-whmcs"],"_links":{"self":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/comments?post=10919"}],"version-history":[{"count":1,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10919\/revisions"}],"predecessor-version":[{"id":10921,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10919\/revisions\/10921"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/media\/10920"}],"wp:attachment":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/media?parent=10919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/categories?post=10919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/tags?post=10919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}