How to Upload a Wordpress Site Manuall to Cpanel

How to Migrate a WordPress® Installation to a cPanel & WHM Server


Last modified: Feb 1, 2022

Overview

This tutorial explains how to migrate a macOS® server-hosted WordPress® installation to a cPanel & WHM server. This is useful, for example, If you develop your website on a locally-hosted server and wish to deploy your work to a public-facing server.

Warning:

  • Your website volition probable feel downtime during this process.
  • Because cPanel, L.L.C. doesn't develop WordPress itself, cPanel Technical Support tin can't assist y'all perform the migration.

Note:

Every bit of Fall 2018, Apple® will no longer support website hosting on macOS servers. For more information, read Apple Support's Prepare for changes to macOS Server documentation.

Migrate your WordPress installation

Pre-migration requirements

Before you begin, brand sure that you possess the post-obit:

  • A domain that exists on a cPanel & WHM server.
  • A File Transfer Protocol (FTP) client and account.

Export the WordPress database

Export your WordPress installation'south database with the phpMyAdmin tool. To practice this, perform the post-obit steps:

  1. Navigate to localexample.com/phpmyadmin, where localexample represents your locally-hosted domain. The phpMyAdmin interface will announced.

  2. Click Export in the toolbar. A new interface volition appear.

  3. Under the Consign Methods: heading, select either of the following consign methods:

    • Quick — This method displays the minimum settings.
    • Custom — This method displays all possible settings.

      Note:

      Nosotros recommend that you select Quick.

  4. Select the database's format from the Format: menu. This setting defaults to SQL.

  5. Click Go. The organisation will create a download file that contains your database information.

Upload the files to the new server

Connect to your web hosting business relationship via your preferred FTP client and upload your WordPress files to your web host account'south public_html directory.

Create a MySQL database

Create a MySQL® database to which to import the WordPress database in cPanel'southward MySQL Databases interface (cPanel >> Dwelling house >> Databases >> MySQL® Databases).

Import the Wordpress database to cPanel

Import your WordPress database backup file to cPanel & WHM. To do this, perform the following steps:

  1. Navigate to cPanel'due south phpMyAdmin interface (cPanel >> Home >> Databases >> phpMyAdmin).
  2. Click Databases in the toolbar and so click the database that you created in the previous stride.
  3. Click Import in the toolbar. A new interface volition appear.
  4. Click Cull File and select the database backup file that yous created in Stride 1.
  5. Click Get. The system will import your WordPress database.

Alter the website URL

Yous must modify the website URL in your database so that the database connects with your WordPress site. To do this, perform the following steps in cPanel'south phpMyAdmin interface (cPanel >> Habitation >> Databases >> phpMyAdmin):

  1. Locate the wp_options table and click Browse.
  2. Nether the option_name column, locate the siteurl entry and click Edit.
  3. In the option_value column, enter your website's new URL in the text box and click Get.
  4. Locate the abode entry and click Edit.
  5. In the setting_value column, enter your website'southward new URL in the text box and click Become.

Configure the WordPress database settings

You must configure your WordPress database settings to use the information for the database that yous created in step three. To do this, perform the following steps:

  1. Navigate to cPanel's File Director interface (cPanel >> Home >> Files >> File Director).

  2. Open the public_html directory and locate the wp-config.php file.

  3. Correct-click the wp-config.php file and click Edit. A pop-upward window will announced.

  4. Click Edit in the pop-upward window. The editor volition appear in a new browser tab.

  5. Edit the DB_NAME, DB_USER, and DB_PASSWORD lines to match the data for the database that you created in step 3. This will resemble the following example:

                                                                                        1                                                                                      2                                                                                      3                                                                                      iv                                                                                      5                                                                                      6                                                                                      7                                                                                      eight                                                                                      nine                                                        10                                                        xi                                                        12                                                                              
                                                          // ** MySQL settings ** //                                                                                    /** The name of the database for WordPress */                            define(                            '                            DB_NAME                            ',                            '                            mrfrogor_wp                            '                            );                            /** MySQL database username */                            define(                            '                            DB_USER                            ',                            '                            mrfrogor_wp                            '                            );                            /** MySQL database password */                            ascertain(                            '                            DB_PASSWORD                            ',                            '                            zQWDu1CdqbVx                            '                            );                            /** MySQL hostname */                            ascertain(                            '                            DB_HOST                            ',                            '                            localhost                            '                            );                        
  6. After brand your changes, click Relieve Changes

Your website may contain broken links and broken images afterward you drift your website. To update the links and images to use your new website's URL, perform the following steps:

  1. Navigate to cPanel'south phpMyAdmin interface (cPanel >> Dwelling >> Databases >> phpMyAdmin).

  2. Click Databases in the toolbar and so click the database that y'all created in step iii.

  3. Click SQL in the toolbar.

  4. In the text box, enter an SQL query to update your URLs. For example:

                      UPDATE wp_posts Set post_content                    =                    Supplant(post_content,                    'localexample.com/, www.mrfrog.com/')                
  5. Click Go to run the query.

Save the changes in WordPress interface

After you updates your links and images, save the changes in the WordPress dashboard to update the URL. To do this, perform the post-obit steps:

  1. Log in to the WordPress dashboard.

  2. Navigate to the General interface (Primary >> Settings >> Full general).

  3. Click Save at the bottom of the interface.

  4. Navigate to the Permalink interface (Principal >> Settings >> Permalink).

  5. Click Save at the bottom of the interface.

Delete your macOS website

After you complete your website'south migration to a cPanel & WHM server, delete the website that remains on your macOS server.

Additional Documentation


  • Business relationship Restore
  • Business relationship Transfer
  • Applications
  • How to Motion All cPanel Accounts from One Server to Some other
  • How to Restore Your cPanel Account - A Guide for New Organisation Administrators
  • The cPanel Glossary

cPanel, WebHost Manager and WHM are registered trademarks of cPanel, L.50.C. for providing its calculator software that facilitates the direction and configuration of internet web servers.

taylerstrorge.blogspot.com

Source: https://docs.cpanel.net/knowledge-base/transfers-and-restores/how-to-migrate-a-wordpress-installation-to-a-cpanel-server/

0 Response to "How to Upload a Wordpress Site Manuall to Cpanel"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel