Home WebServer PanelHestiaCP How to transfer website data to HestiaCP

How to transfer website data to HestiaCP

by Thạch Phạm
Published: Last Updated on

How to transfer website data to HestiaCP. Let’s find out with AZDIGI!

I. Overview

Not any administrator knows how to transfer website data to HestiaCP and it has many ways to do it. Transfer to the traditional backup/restore. Use the plugin, and transfer with cmd linux tools. In this article, AZDIGI will guide you on how to upload an available source code from Local on a VPS running HestiaCP. Let’s take the steps with AZDIGI.

II. Transfer website data to HestiaCP

To transfer website data to HestiaCP, you can follow these steps.

In this tutorial, I will work with the WordPress source code. For other source codes, you can also do the same steps, the only difference is in the database configuration step in the connection string.

Step 1: Check available data

To upload the available source code to HestiaCP, you need to prepare the following data:

  • Source code: This is the source code of the website including the core, theme, plugin, folder containing image data.
  • Database: The database of the website above, this file is usually in the format *.sql

And the illustration below is my available source code including a backup.zip file and *.sql

Transfer website data to HestiaCP

If you haven’t compressed the source code yet, You will need to compress the source code into a .zip file to upload to HestiaCP to extract it. Once done, proceed to the next steps.

Step 2: Login to HestiaCP in User

First, log in to the User to install WordPress. click on the => ⏩ icon, as shown below. Or you can log in directly from https://my-ip:8083 with the user and password created earlier.

Transfer website data to HestiaCP

Step 3: Add Web Domain

To create a website, you log in to the previously created User to create a website. Click USERS => Select > to Login

Transfer website data to HestiaCP

Next, you click Add Web Domain to add a new website.

Transfer website data to HestiaCP

In the next interface, enter the following information:

  • Domain: enter your domain name
  • IP Address: If VPS has more than 1 IP, you choose the corresponding IP here. If you have 1 IP, you keep it.
  • Create DNS zone: If you need to create a DNS zone, check this box.
  • Enable mail for this domain
Transfer website data to HestiaCP

Step 4: Upload the source code

You access File => click /Home/web/my-domain/public_html/ to upload the source code.

Transfer website data to HestiaCP

Select Add files => select the file to upload the file in Local.

Transfer website data to HestiaCP

Once the upload is complete, start extracting the file. You click on ... and then select Unzip to extract the file.

Transfer website data to HestiaCP

And here is my entire WordPress source code.

Transfer website data to HestiaCP

Note: Remember to delete the index.html file if any.

Step 5: Create a database and import it

You will need to create a new database account to import the *.sql file. To create, you click DB and select Add Database.

Transfer website data to HestiaCP

In this interface, you enter information as follows:

  • Database: Enter your database name
  • Username: Enter your Username (you should enter these two values together for easy management)
  • Password: Enter the password for the user
  • Type: Leave as default
  • Host: Select localhost
  • Charset: Leave as the default

After entering all the information, click Save.

Transfer website data to HestiaCP

The database has been created successfully, please take the next step to import the sql database into the newly created database.

Click DB => phpMyAdmin

Screenshot 2020 11 22 at 17.39.05@2x

The login interface will appear as shown below: Please enter the account information you just created.

Screenshot 2020 11 22 at 17.39.45@2x

Next, you choose 1 > 2 > 3 >4 sequentially which I numbered in order to import the database:

Screenshot 2020 11 22 at 17.41.34@2x

When the import is complete, check and correct the URL SITE/HOME name. If you change the domain name, double-click on the number 3 box and enter the domain name to change.

Screenshot 2020 11 22 at 17.44.07@2x

Step 6: Connect Database to the source code

This is the final step to complete the website transfer from local to the host. You will configure the database account created in Step 5 into the source code uploaded in Step 4.

You access File => click /Home/web/my-domain/public_html/ . Here you open the wp-config.php file to configure the Database connection.

Screenshot 2020 11 22 at 17.56.52@2x

After the connection is complete, Please visit the website to check if it works.

If you need to install more SSL, see the following guide to install the free Let’s Encrypt SSL with AZDIGI.

III. Summary

Hopefully, this article brings a lot of useful knowledge to you, so that you can actively perform data conversion and upload source code operations safely and effectively.

Wishing you success!

If you need assistance, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign