BuycPanel Blog

BuycPanel Blog

Latest news and updates

Migrate a WordPress Installation to a cPanel Server

Posted by Allura on 10 08 2018.

Introduction
This particular piece of explanation teaches one to migrate a MacOS® server-hosted WordPress® installation to a cPanel and WHM server.

Migrate WordPress Installation
Pre-migration Requirements
Before beginning the installation process, note to possess:

 	A domain to exist on cPanel and WHM server.
 	A File Transfer Protocol (FTP) client and account.


Ways To Install:
Export The WordPress Database
There are steps to export this installation database with the help of phpMyAdmin tool:
Steps

 	One needs to navigate to com/phpmyadmin to represent localexample as locallyhosted domain.
 	A new interface will appear when one checks Export in the toolbar.
 	Select either of the export methods:
 	Quick- To display the minimum options.
 	Custom- To display all possible options.
 	From the format menu, one can select the database’s format. Note that option defaults to SQL.
 	The system will create a download file if one clicks Go containing database information.


Upload Files To The New Server
One needs to connect to web hosting account via…

Introduction

This particular piece of explanation teaches one to migrate a MacOS® server-hosted WordPress® installation to a cPanel and WHM server.

Migrate WordPress Installation

Pre-migration Requirements

Before beginning the installation process, note to possess:

  • A domain to exist on cPanel and WHM server.
  • A File Transfer Protocol (FTP) client and account.

Ways To Install:

Export The WordPress Database

There are steps to export this installation database with the help of phpMyAdmin tool:

Steps
  • One needs to navigate to com/phpmyadmin to represent localexample as locallyhosted domain.
  • A new interface will appear when one checks Export in the toolbar.
  • Select either of the export methods:
  • Quick- To display the minimum options.
  • Custom- To display all possible options.
  • From the format menu, one can select the database’s format. Note that option defaults to SQL.
  • The system will create a download file if one clicks Go containing database information.

Upload Files To The New Server

One needs to connect to web hosting account via preferred FTP client and even upload WordPress files to web host account’s public_html directory.

Create MySQL® database

Create this in cPanel’s MySQL Databases interface (cPanel >> Home >> Databases >> MySQL® Databases) to import WordPress database.

Import WordPress Database To cPanel And WHM

Steps
  • One must navigate to cPanel’s phpMyAdmin interface (cPanel >> Home >> Databases >> phpMyAdmin).
  • One must click to Databases in tool bar and click the database created in the previous step.
  • In order to create new interface, click Import in toolbar.
  • One needs to click Choose File and select database backup file created in step 1.
  • Click Go and the system will then import WordPress database.

Change Website URL

One needs to perform the steps in cPanel’s phpMyAdmin interface (cPanel >> Home >> Databases >> phpMyAdmin) to change Website URL:

Steps
  • Locate wp_options and click Browse.
  • Locate siteurl entry under option_name column an click Edit.
  • Enter website’s new URL in text box located in the option_value column and click Go.
  • Click Edit after locating home entry.
  • Enter website’s new URL in the text box located in the option_value column and click Go.

Configure WordPress Database Settings

Steps
  • One needs to navigate to cPanel’s FileManager interface (cPanel >> Home >> Files >> File Manager).
  • Locate wp-config.php file after opening the public_html
  • A pop-window will appear if one right-clicks the wp-config.php file and click Edit.
  • The editor will appear in new browser tab after performing the previous step.
  • One needs to edit DB_NAME, DB_USER, and DB-PASSWORD lines in order to match information for the database that one created in step 3.
  • At the end, click to Save Changes.

Update Links And Images

Steps
  • Navigate to cPanel’s phpMyAdmin interface (cPanel >> Home >> Databases >> phpMyAdmin).
  • Click Databases in tool bar and click the database created in step 3.
  • From tool bar, click SQL.
  • Enter an SQL query in the text box to update URLs.
  • To run the query, click Go.

Save Changes In WordPress Interface

Steps
  • Log in to WordPress dashboard.
  • Navigate to General interface (Main >> Settings >> General).
  • At the bottom of the interface, click Save.
  • Navigate to Permalink interface (Main >> Settings >> Permalink).
  • Click Save option at the bottom of the interface.

Delete MacOs Website

Delete the website remaining on MacOs server after migrating website to a cPanel and WHM server.

Conclusion

There are various technical steps to migrate a WordPress to a cPanel and WHM server.