How To Migrate WordPress from Shared server to Cloud hosting?

WordPress can be migrated from shared hosting to a personal cloud environment without downtime by using the following simple steps.

Creation of backup

You should backup everything including all files as well as a database from the existing server by using cPanel. Ideally, you should backup images and plugins by creating an archive of the wp-contents directory and then downloading the same.

Database backup can be executed by using the backup wizard on cPanel. Back up MySQL database and save it in backup_db.sql.gz on the desktop.

Setting up a cloud hosting server

You can launch a droplet and follow the steps mentioned in the guide ‘initial server setup for Ubuntu server 14.04’. After the initial setup of the cloud, you should ensure the installation of the LAMP stack.

After the setting up of the cloud server as well as LAMP stack, you should install WordPress.

Creation of virtual host

Apache virtual host creation can be achieved by creating a new file in the ‘site available’ directory. Use the following command:

sudo nano / etc/ apache2/ sites-available/ your domain.com

By appropriately substituting your domain.com as well as the user name you can add a virtual host for the blog. In order to make Apache listen for your domain.com, you should enable the virtual host by using a2ensite, an Apache utility. This should be followed by reloading the Apache server.

Uploading the backup files

Upload MySQL database and files on VPS by using SCP in a secure manner. Following commands need to be executed on your computer for further uploading to the server’s home directory.

scp ~/Downloads/backup_db.sql.gz username@server_ip_address:

scp ~/Downloads/wp-content.zip username@server_ip_address:

Restoration of database

After server login, execute the following commands by using substitutions inappropriate places:

MySQL -h localhost -u database_user -p database_name < backup_db.sql.gz

After responding to the request for entering your password, your database contents will be instantly imported to the desired database.

Restoration of WordPress Content files

By simple extraction and using an unzip command you can restore plugins, media, and themes.

This should be followed by testing your blog and clearing your DNS cache.

Have questions?

Ask us.



    AWS Standard Consulting Partner

    • Go4hosting
    • Go4hosting

    Alibaba Cloud

    Go4hosting

    Go4hosting-NOW-NASSCOM-Member Drupal Reseller Hosting Partner

    Cyfuture Ltd.

    The Cricket Barn
    Tiverton
    Exeter
    EX16 8ND

    Ph:   1-888-795-2770
    E-mail:   [email protected]