WordPress - moving from one host to another

前端 未结 6 1521
走了就别回头了
走了就别回头了 2020-12-11 14:11

I am trying to move a WordPress installation from one server to another one, including all of the SQL data, and the file-system data (photos,template files).

I just

6条回答
  •  独厮守ぢ
    2020-12-11 14:37

    This is a really straight forwarded procedure with no frills but extremely detailed for newbies

    • Make a full wordpress backup from your local server/host using cpanel. (wp + db)
    • download the backup1.tar.gz generated
    • Install a new wp site (default theme) on the target host. Same release, please!
    • warning: If they are different, leverage both releases.
    • Make a full wordpress backup from your target host using cPanel. (wp + db)
    • download the backup2.tar.gz generated
    • Additionally backup (export) wp-admin and wp-users target mysql backups; save them for future use ahead.
    • enter target host cPanel > file Manager > enter wp diretory > clear all files
    • upload local host wp backup1.tar.gz files to target host wp directory > extract files
    • copy wp-config.php file from backup2.tar.gz file
    • paste overriding wp-config.php file on target host wp directory
    • enter target host > cpanel > phpmyAdmin > find mySQL BD name of your target wp host and drop all tables.
    • restore (import) local wp using backup1.tar.gz softsql.sql file to mySQL db on target host
    • drop wp-admin and wp-users tables after restore. Restore (import) wp-admin and wp-users you saved before. This will guarantee target wp authentication when entering target host wp administrative tasks.
    • test target host wp url
    • The wp-config.php copy/paste is to restore target host wp and mySQL original authentications.
    • Test target wp at /wp-admin mode.
    • that's it! Enjoy.

提交回复
热议问题