Knowledgebase

How to Migrate your WordPress Site to Rcs with Duplicator Print

  • 0

Introduction

WordPress website migration is an important step to take when changing hosts, or domains without losing any data during transfer. With multiple plugins offering data migration, Duplicator is a free variant that makes it possible to migrate, or clone your WordPress site retaining all themes, plugins, and database files.

In this guide, you will migrate your WordPress site to a Rcs Cloud Server using the free Duplicator plugin.

Prerequisites

Setup a new WordPress database on the Server

Create a new database.

CREATE DATABASE wordpress;

Create a database user with a strong password.

CREATE USER `wpuser`@`localhost` IDENTIFIED BY 'very-strong-password';

Allow the user to read, and write to the database with full privileges.

GRANT ALL PRIVILEGES on wordpress.* TO wpuser@localhost;

Refresh Privileges.

FLUSH PRIVILEGES;

Exit the MySQL shell.

EXIT

Backup your WordPress Site with Duplicator

Through a web browser session, log in to your WordPress website, and install the Duplicator plugin.

https://wordpress-site.com/wp-login.php

Open Duplicator>Packages on the left WordPress navigation bar.

WordPress Duplicator Plugin

Then, click Create New, give your backup package a name, then, click Next to scan your WordPress site for potential errors, if any are listed, resolve them before backup.

Click Build to create your backup package, depending on your website size, the process may take several minutes. Once complete, download both backup files (Installer and Archive) to your computer, the installer.php file will help install the archive package on your cloud server.

Download Duplicator Package files

Upload the Backup files to your Rcs server

Upload the downloaded files to your Rcs server using a remote file transfer program like FTP, SCP, or Rsync. In this guide, we’ll use Rsync to securely upload the backup files using SSH.

First, SSH and login to the server, and create an uploads directory using the following command:

# mkdir ~/uploads

Then, open terminal or the windows command prompt depending on your operating system, and switch to the Downloads folder.

 cd Downloads

Now, use Rsync to upload the WordPress backup files.

Upload installer.php.

 rsync -av installer.php root@Rcs-Server-IP:uploads

Upload ***_archive.zip.

 rsync -av ***_archive.zip root@Rcs-Server-IP:uploads

Replace ***_archive.zip with your actual download file. Also, you will be prompted to enter your Rcs Server password to establish an SSH session and upload the files. As well, the upload directory uploads must exist on the server.

Setup the Rcs Server

Access the server, and confirm that the uploaded WordPress backup files exist on the server.

# ls ~/uploads

Now, move the uploaded backup files to the webroot directory. By default, Apache points to /var/www/html.

# mv ~/uploads/* /var/www/html

Grant Apache full permissions to the directory.

# chown -R www-data:www-data /var/www/html/

Next, through a web browser, load the installer.php script using your Server IP.

http://Rcs-Server-IP/installer.php

Click through the prompts, then, enter your database name, username, and password that you created earlier. Click Test Connection, once successful, you should receive success prompts, then click Next to install Wordpress tables.

Recovery database setup

Update the WordPress site data by confiming the Title, URL, and Path webroot directory, be sure to enter your domain in the URL field. Then, click Next to continue.

Finally, click Admin Login to access your WordPress website, and Duplicator will automatically clean the installation/backup files.

Duplicator Success Recovery Page

Setup Your Domain

Edit your domain DNS records, and point them to Rcs using the name servers below:

ns1.vultr.com
ns2.vultr.com

As well, log in to your Rcs account, and add your domain.

Add Rcs Domain

Your domain should be able to work in about 20 minutes after propagation.

Now, set up HTTPS on your domain by installing Certbot on the server using the following command.

# apt install certbot

Request a let’s encrypt SSL Certificate.

certbot --apache -d example.com -d www.example.com-m hello@example.com --agree-tos

Replace example.com with your actual domain name, and hello@example.com with your active email address

Test your WordPress Site

Visit your domain name and confirm that your WordPress site restoration is successful.

http://example.com/wp-login.php

Log in with your administrator username, and password to confirm that your WordPress website has been migrated successfully.

Congratulations, you have successfully migrated, and set up your WordPress Site on Rcs using the free Duplicator plugin. For further information on how to use the plugin, visit the WordPress documentation page.

Introduction WordPress website migration is an important step to take when changing hosts, or domains without losing any data during transfer. With multiple plugins offering data migration, Duplicator is a free variant that makes it possible to migrate, or clone your WordPress site retaining all themes, plugins, and database files. In this guide, you will migrate your WordPress site to a Rcs Cloud Server using the free Duplicator plugin. Prerequisites Create a new cloud server instance on Rcs. Access the server as root. Install the Apache, MySQL, PHP (LAMP) stack. Setup a new WordPress database on the Server Create a new database. CREATE DATABASE wordpress; Create a database user with a strong password. CREATE USER `wpuser`@`localhost` IDENTIFIED BY 'very-strong-password'; Allow the user to read, and write to the database with full privileges. GRANT ALL PRIVILEGES on wordpress.* TO wpuser@localhost; Refresh Privileges. FLUSH PRIVILEGES; Exit the MySQL shell. EXIT Backup your WordPress Site with Duplicator Through a web browser session, log in to your WordPress website, and install the Duplicator plugin. https://wordpress-site.com/wp-login.php Open Duplicator>Packages on the left WordPress navigation bar. Then, click Create New, give your backup package a name, then, click Next to scan your WordPress site for potential errors, if any are listed, resolve them before backup. Click Build to create your backup package, depending on your website size, the process may take several minutes. Once complete, download both backup files (Installer and Archive) to your computer, the installer.php file will help install the archive package on your cloud server. Upload the Backup files to your Rcs server Upload the downloaded files to your Rcs server using a remote file transfer program like FTP, SCP, or Rsync. In this guide, we’ll use Rsync to securely upload the backup files using SSH. First, SSH and login to the server, and create an uploads directory using the following command: # mkdir ~/uploads Then, open terminal or the windows command prompt depending on your operating system, and switch to the Downloads folder. cd Downloads Now, use Rsync to upload the WordPress backup files. Upload installer.php. rsync -av installer.php root@Rcs-Server-IP:uploads Upload ***_archive.zip. rsync -av ***_archive.zip root@Rcs-Server-IP:uploads Replace ***_archive.zip with your actual download file. Also, you will be prompted to enter your Rcs Server password to establish an SSH session and upload the files. As well, the upload directory uploads must exist on the server. Setup the Rcs Server Access the server, and confirm that the uploaded WordPress backup files exist on the server. # ls ~/uploads Now, move the uploaded backup files to the webroot directory. By default, Apache points to /var/www/html. # mv ~/uploads/* /var/www/html Grant Apache full permissions to the directory. # chown -R www-data:www-data /var/www/html/ Next, through a web browser, load the installer.php script using your Server IP. http://Rcs-Server-IP/installer.php Click through the prompts, then, enter your database name, username, and password that you created earlier. Click Test Connection, once successful, you should receive success prompts, then click Next to install Wordpress tables. Update the WordPress site data by confiming the Title, URL, and Path webroot directory, be sure to enter your domain in the URL field. Then, click Next to continue. Finally, click Admin Login to access your WordPress website, and Duplicator will automatically clean the installation/backup files. Setup Your Domain Edit your domain DNS records, and point them to Rcs using the name servers below: ns1.vultr.com ns2.vultr.com As well, log in to your Rcs account, and add your domain. Your domain should be able to work in about 20 minutes after propagation. Now, set up HTTPS on your domain by installing Certbot on the server using the following command. # apt install certbot Request a let’s encrypt SSL Certificate. certbot --apache -d example.com -d www.example.com-m hello@example.com --agree-tos Replace example.com with your actual domain name, and hello@example.com with your active email address Test your WordPress Site Visit your domain name and confirm that your WordPress site restoration is successful. http://example.com/wp-login.php Log in with your administrator username, and password to confirm that your WordPress website has been migrated successfully. Congratulations, you have successfully migrated, and set up your WordPress Site on Rcs using the free Duplicator plugin. For further information on how to use the plugin, visit the WordPress documentation page.

Was this answer helpful?
Back

Powered by WHMCompleteSolution