Changing WordPress hosting seems intimidating and tedious work at first, but if you can give time and courage for creating your own website then solving this problem isn’t a big issue.
Looking at the causes of change WordPress hosting is that it faces some issues with the current service provider. Moving to a new reliable host may seem a bit fearful because of the fear of destroying your website by making a mistake.
But there is no need to worry as we are here to provide you a solution by providing a few simple steps that are easy to follow. Even after following the below-listed steps for change WordPress hosting, if you face any problem or have any doubt or need expert assistance, then feel free to contact WordPress customer service.
Step 1: Firstly you need to take the backup of your WordPress files
- a) For backing up, you need to have backup plugins such as VaultPress or duplicator.
- b) Backup plugins are used to install and then using built-in settings to check which files are backed up, the frequency of back-up, and the place where they are backed up.
- c) Another method is to do it manually, which requires a file transfer tool(FTP) such as FileZilla(PC) and transmit(mac) to access your website files.
- d) Once you have installed, you have to use SFTP credentials from your web host account to connect to the website’s server.
- e) After you have connected, select all files under your website’s directory and download them. It includes .htaccess files that may be hidden.
f)If you are unable to see hidden files, use the FTP program’s help file.
Step 2: The next step is to export the database
- a) To export your database, login to the cPanel account of your web server.
- b) Now open the phpMyAdmin application.
- c) From the list on the left-hand sidebar, select the database that contains your WordPress installation.
- d) Once you have selected, click on the Export tab in the navigation menu.
- e) Now click on the go button and the process of exporting the database will begin after which a file will be downloaded on your computer.
Step 3: On the new host server, create the WordPress database
Here we are using a MySQL application. Check if your web host uses the same application or some other.
- a) Firstly open the MySQL database and choose an appropriate name to be given to a new database and create a database with this name.
- b) Now create a new MySQL user with a strong password.
- c) Once you have done this add this user account to the new database and grant it All Privileges.
Step 4: Another step is to edit the wp-config.php file.
- a) Now go to the section where the files were downloaded and there search for the wp-config.php file that handles the access between WordPress and database.
- b) Make a copy of this file and shift the copy file in another folder. Open the original folder again.
- c) To change the name of the database write define(‘DB_NAME’, ‘db_name’);
- d) In place of db_name, write the name of your new web host, which will be given to the name of the new database that you created above.
- e) To change the database username write define(‘DB_USER’, ‘db_user’);
- f) Set the db_user as your new database username, which will be set as the username for your new database.
- e) To change the database password write define(‘DB_PASSWORD’, ‘db_pass’);
set db_pass as a new secure password for your new database.
Save and close the wp-config.php file.
Step 5: Now, upload the new WordPress files to the new host.
Step 6.) Replace/Search the new domain and define now domain.
Step 7.) At the last, give final touches
If the above steps, don’t work for you, try contacting the WordPress customer service. They will guide you.