
UpdraftPlus is a WordPress backup, clone, and restore plugin that makes it possible to migrate your website files safely from one server to another. It offers both free and premium versions with different features available on each. In this article, you will learn how to migrate your WordPress website to a Vultr cloud server with the UpdraftPlus free version.
Replace example occurrences with your actual server username.
Login to MySQL.
Create the database.
Create a new database user with a strong password.
Grant the user full privileges to the database.
Refresh MySQL rights.
Exit the MySQL console.
Install VsFTPD.
Now, set up a new FTP user account (non-root) to use for file transfer.
Create an FTP files subdirectory in the user’s home directory.
Now, edit the VsFTPD configuration file located in the /etc directory.
Confirm that the following lines are uncommented (don’t have a hash #). Else, uncomment them.
Save and close the file.
Next, allow FTP connections through the uncomplicated firewall (ufw).
Allow FTP data connections.
Restart the firewall.
Login to your active WordPress website, and install the UpdraftPlus plugin.
Open the Updraft Plugin through Settings > UpdraftPlus Backups. Then, navigate to the Settings tab, and select FTP from the Choose your remote storage: section.
Under FTP, fill in the FTP Server, FTP login, FTP Password, Remote Path, with your Vultr Server IP Address, user account, password, and the FTP files directory. Then, click Test FTP Settings to create a test connection, once successful, scroll down the page and save changes.
Next, navigate to the Backup/Restore tab, and click Backup Now. Select your preferred database and file backup options, then, click Backup now to start the file transfer process.
Access your Vultr server, and switch to the FTP files directory.
List files in the directory to confirm received files.
Your Output should be similar to:
Now, create a new directory wp-content, and use the command below to extract all .zip files to the directory.
Next, use gunzip to extract the database archive .gz.
Restore the database to your existing database created on Step 1.
Your database file may be different, be sure to replace the above command with your file
In case you receive the error ERROR 1067 (42000) at line 250: Invalid default value for 'user_registered', simply edit the database file, and add the following lines at the beginning of the file.
Once successful with database restoration, log in to MySQL, and verify that WordPress tables are added to the database.
Switch to the WordPress database.
Show all tables.
Your tables should be similar to:
Copy the WordPress table prefix (first characters before _) since you have to declare them in the wp-config.php file.
First, delete the wp-content directory, and wp-config.php files from your WordPress webroot directory.
Then, copy the extracted wp-content folder to the WordPress directory.
Also, create a new wp-config.php file using the wp-config-sample.php template file.
Edit the file.
Find the following lines:
Edit them to reflect database name, database user, database password, and table prefix respectively.
Save and close the file.
Grant the webserver full permissions to the WordPress directory.
Now, visit your Server IP, log in, and confirm that your WordPress website is fully restored.
Next, point your domain to Vultr by editing your name servers, and set up new DNS A records in the Vultr Console. As well, edit your web server (Apache or Nginx) configuration to include your domain name in the WordPress configuration file.
Additionally, request a free Let’s Encrypt SSL Certificate once your DNS records are pointed to the Vultr server. Your domain should be able to serve and use web files from your new Vultr server between 15 minutes to 1 hour, though full propagation may take between 12-24hours to complete.
Congratulations, you have successfully migrated your WordPress site to Vultr using UpdraftPlus. If you are migrating from a shared hosting provider, you can safely delete your website once propagation is complete, and confirm that WordPress files are present on the server.
0 Comments
Be the first to comment and share your perspective with the community.