Bobcares

Remote MySQL CyberPanel: How to Set up?

by | Nov 7, 2022

let us take a closer look at how to set up and set up the Remote MySQL CyberPanel. With the support of our Server support services at Bobcares, we can give you a step by step guidance on the configurations.

1. Setting up a remote MariaDB server for CyberPanel

Remote MySQL CyberPanel

1.1 Using Remotely-hosted database service

Just consider that we are using Amazon RDS, Google Cloud SQL, or Azure SQL. So in this case, we have to ensure the SQL user has the right to create new databases. We must ensure that we have hostName, Port, username, password, and Schema Table Name.

1.2 Setting up remote MariaDB for CyberPanel

We can consider this step as the initial step for setting up the remote MySQL CyberPanel.  To install and set up, we must first log in to the clean server that will host the database.

1.2.1 Adding the latest MariaDB Store

Run the following command to add the most recent version of the MariaDB repo to the Linux system:

sh <(curl https://downloads.mariadb.com/MariaDB/mariadb_repo_setup || wget -O - https://downloads.mariadb.com/MariaDB/mariadb_repo_setup)

1.2.2 Installing the latest MariaDB

Use the following command for Ubuntu 18/20:

apt install mariadb-server mariadb-client

And for version 7 of Centos we have to type in the following command line for remote MySQL CyberPanel:

yum install mariadb-server mariadb-client

Similarly, for version Centos 8, we have to type in:

dnf install mariadb-server mariadb-client

1.2.3 Installation security and remote root login access

After the install, please use the following command to enable MariaDB so that it begins upon bootup:

systemctl enable mariadb

Following that, we must run the following command to secure the installation:

sudo mysql_secure_installation

Please set a root password, delete the anonymous user, and delete the test database, but leave remote root access enabled.

1.2.4 Binding MariaDB to the main server

As the next step in setting up the remote MySQL CyberPanel, change the line beginning with the term bind to:

 in/etc/my.cnf.

bind-address=user_main_server_IP_here

1.2.5 Allow firewall access

Add a firewall rule to enable access to port 3306 from the IP address of the main server.

1.2.6 Testing the installation

Log in to the primary server and execute the following command:

mysql -u user_name -h mysql_server_ip -p

We can enter the password we chose, and we must log into the remote MariaDB installation.

2. Setting up CyberPanel with remote SQL

Run the command to install as the next step to set up the remote MySQL CyberPanel and proceed as follows:

  • In the first step, select 1 to install CyberPanel.

    You are running as root...
    CyberPanel installar v2.01
    1. Install CyberPanel.
    2. Addons and MIscellaneous
    3. Exit
    POLeae enter the number [1-3]: 1
    CyberPanle installer v2.01
    RAM check: 270/1987 MB (13.59%)
    Dick Check: 6.19GB (37%) (Minimal 10 GB free space)
    1. Install Cyberpabel with OPenlitespeed.
    2. Install CYberpanle wurth Litespeed Enteirprise
    3. Exit
    Please enter the number[1-3]

  • We can install CyberPanel with either OLS or LS Enterprise.
  • We can choose whether or not to install FTP, Mail, and other services.

    Install Full service fpr CyberPanel? This wil include POwerDNS, Postfix and pure-FTPD
    Full installation [y/n]: Y
    Full installation selected.....

Now an option will appear asking if we want to install Cyberpanel with Remote MySQL or not. Enter Y to confirm the setup. After that, we have to enter all of the details.

DO you want to setup Remot MySQL? (This will skip installation of local MySQL)
(Default= no) Remote MySQL [Y/n]: Y
Remote MySQL Selected...
Remote MySQL Hostname: 555.555.555.555
Remote MySQL Database that contains meta information regarding MYsql.(Usually mysql): mysql
Remote Mysql username: root
Remote MySQL password: Padd
Remote MySQL port: 3906

Continue the install, and CyberPanel will install with the remote MySQL. And also all of the databases for the websites. CyberPanel will install on a remote database server in less than 20 minutes.

[Need assistance with similar queries? We are here to help]

Conclusion

To sum up we have now learned how to set up the remote MySQL CyberPanel. We have gone through all of the configurations to set up the environment and secure remote access with the support of our Server management support services at Bobcares.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF