Hestia has an easy backup and restore system. However, this is best used for restoring a website on the same server. We will use a different process to move a website from one Hestia server to a different one. This process is similar to the process of moving a website from Cpanel to Hestia. Be aware that this process will result in all old custom emails being lost so you should review and copy any old emails you may want to retain before making the move.
Three components of a Website
Content Management Systems such as Joomla and Wordpress consist of three main components. The first component consists of the website Files which are located in a folder called public_html. The second component is a website database which holds additional information. The third component is the custom website emails which are located in a separate folder. The process for migrating the Files and Database, but not emails consists of 12 steps:
#1 Set up a Canhost account using a secure Proton Mail email address. Change Additional Information from CAD to USD. Enter your name, address, city, state and zip code which is needed for registering your domain name. https://www.canhost.ca/hosting/register.php
#2 Transfer your domain names to your new Canhost account so you can manage their DNS Records directly from your Canhost account. Then add an ns1 A record to one of your domain names. Then pay for a VPS-Express-2 Server $20 per month with 4 GB RAM, 4 CPU, 40 GB SSD storage. This is enough space to run up to about 20 Joomla websites. Use the domain ns1.yourwebsite.com for the host name and change the Operating System from CentOS to Debian 12. Add a server password and system username.
#3 SSH into your VPS. Wait to get an email from CanHost which contains your primary IP address.
Open a terminal on your home computer. Use the Primary IP address given to you by Canhost in their email to SSH into your new server from our home computer terminal with this command:
Press Enter. Then type yes to accept the SSH connection. Then enter your VPS password and press Enter. Your terminal screen should then display the line that looks something like:
Create a Root User and Password
We need to create a Root User in order to install the Hestia Control Panel. However, we need to change the SSH configuration file before we can create a root user. Once logged into your user SSH session, copy paste: sudo nano /etc/ssh/sshd_config
to open the ssh configuration file. Use the down arrow to scroll down to PermitRootLogin. Delete the hash at the beginning of the line PermitRootLogin and set the value to yes:
Save this file by pressing the Control key and the lower case o key at the same time, followed by pressing the Enter key. Close the file by pressing Control plus the x key at the same time. To make the new setting take effect, restart the ssh service:
sudo systemctl restart sshd.service
While VPS is running, and still in your user ssh session, copy paste the following into the ssh terminal: sudo passwd root
Enter your sudo user password. Then add a root password typing it twice. Reply should be: passwd: password updated successfully
Log out of the user SSH with exit. Then close the home terminal.
#4 Install Hestia to your new VPS
SSH into your VPS from your home computer terminal with this command: ssh root@yourIPaddress> For example, ssh
When prompted for the password, use the root password you just created. Once logged in as the root user, uninstall the Canhost firewall called CSF with these commands: cd /etc/csf
Press enter, then copy paste: sh uninstall.sh
Then press Enter again. Go back to root with cd /
Next, install the Midnight Commander graphical file manager with this command: apt install mc
Midnight Commander is a graphical file manager that makes it easier to edit and move files in our VPS. We will use Midnight Commander to change some settings after we install Hestia.
While logged in as root, copy and paste the following commands:
Then open a browser and go to the Hestia Install page.
Uncheck mutli-php and clamav. Then click Submit. This screen will appear: