Subscribe Dialwebhosting Offers Subscribe to get exclusive offers directly in your inbox!
>>
>>
>>
How To Migrate Wordpress From Shared Server To Cloud Hosting

How to Migrate WordPress from Shared Server to Cloud hosting?

There are some important steps that you need to follow to migrate WordPress from shared hosting to cloud hosting. Most of the bloggers typically opt for shared hosting plans as these are rather cost-effective when you are just starting out. However, when the traffic to your blogging website continues to escalate and you find that the resources are not enough to support the incoming traffic, cloud server hosting may be the best option at hand. The migration of a WordPress blog to a cloud server is not as complicated as you may think as long as you can follow the instructions clearly.

Steps for Migration of a WordPress Site to a Cloud Server:

1. To start with, you will need to create a backup of the existing files besides the MSSQL database from the existing server. Shared hosting services will usually offer a rather intuitive and simplistically designed control panel to manage servers. Core files of WordPress do not have to be backed up but you will need to backup images, plugins and themes. So, you have to first create a wp-contents directory and then download this. The database backup can be done by using the backup wizard provided on cPanel. You can backup the database saving it on the desktop as backup_db.sql.gz.

2. You must then set up cloud servers with LAMP. When a cloud server has been successfully set up using the Ubuntu Server Setup guidelines you must set up WordPress dependencies like MySQL. Web server such as Apache and PHP.

3. When the LAMP stack has been successfully set up, you need to focus on installing the latest edition of the WordPress. You have to follow instructions for setting up WordPress on Ubuntu.

4. Following this, you must create a virtual host for handling the WordPress blog. For this, a new file inside the site-available directory needs to be created. To do so, you need to use this command: sudo nano /etc/apache2/sites-available/yourdomain.com. You must then substitute the domain name and user name, adding the virtual host. To make Apache listen for the domain.com, it is necessary to enable a virtual host using 2ensite which is an Apache utility. This is then followed by reloading Apache server.

5. The WordPress has been thus set up and you will then need to upload the backup files first to the virtual server. This step is about restoring the database and files. You can upload the files and MySQL database on the VPS using the SCP securely. To do so, you will need to follow these commands: scp ~/Downloads/backup_db.sql.gz username@server_ip_address: and scp ~/Downloads/wp-content.zip username@server_ip_address. You need to execute these above-mentioned commands locally and files will get uploaded to the server's home directory.

6. You must log in and type the command mysql -h localhost -u database_user -p database_name < backup_db.sql.gz for restoring the database. When you are asked for the password for database user, you must enter it and the contents of the database get imported in a matter of seconds to the designated database.

7. In order to restore the themes, media and plugins you have to take out the zip archive. This will take out and merge content into the wp-content directory. This is followed by testing the blog and clearing the DNS cache.

Was this answer helpful? #2 #1
 

Designed & Developed by Cyfuture India Private Limited