简体   繁体   English

将 Wordpress 站点从一个 Cpanel 帐户移动到另一个

[英]Moving Wordpress Site from one Cpanel Account to Another

I can't find an answer to this particular question.我找不到这个特定问题的答案。

I have two cpanel accounts and I want to move my wordpress webiste from the original cpanel account to the new cpanel account.我有两个 cpanel 帐户,我想将我的 wordpress webiste 从原始 cpanel 帐户移动到新的 cpanel 帐户。

I've tried downloading all the wordpress files and that didn't work.我已经尝试下载所有 wordpress 文件,但没有成功。 I've tried downloading all the files from the original site via WinSCP and that didn't work either.我已经尝试通过 WinSCP 从原始站点下载所有文件,但这也不起作用。

I have been learning about and using various languages to create websites, etc. But I only know enough to be dangerous.我一直在学习和使用各种语言来创建网站等。但我只知道足够危险。 So.所以。 The best answer would be one that's very literal to what steps I need to take using basic, regular-person English.最好的答案是对我需要使用基本的普通人英语采取哪些步骤非常直截了当。

I hope someone can help!我希望有人能帮帮忙!

Wordpress sites operate through a database so you can't simply copy files from one cPanel to another. Wordpress 站点通过数据库运行,因此您不能简单地将文件从一个 cPanel 复制到另一个。 There are a few different ways.有几种不同的方法。

Method 1: Use a plugin方法一:使用插件

Create a fresh Wordpress on your new cPanel then use a migration plugin such as https://wordpress.org/plugins/duplicator/在新的 cPanel 上创建一个新的 Wordpress 然后使用迁移插件,例如https://wordpress.org/plugins/duplicator/

Method 2: Do it manually方法二:手动

This is more complicated but I find it more reliable.这更复杂,但我发现它更可靠。 The steps are as follows:步骤如下:

  1. Download your Wordpress files下载您的 Wordpress 文件
  2. Use phpMyAdmin on your cPanel to export your wordpress database (SQL export) - https://www.hostinger.com/tutorials/export-mysql-database-with-phpmyadmin在您的 cPanel 上使用 phpMyAdmin 导出您的 wordpress 数据库(SQL 导出) - https://www.hostinger.com/tutorials/export-mysql-database-with-myadmin
  3. If you are changing domains then you need to use a text editor on your SQL export to find and replace any instance of your old domain to your new one如果您要更改域,则需要在 SQL 导出中使用文本编辑器来查找旧域的任何实例并将其替换为新域
  4. Export your theme options (f you have them).导出您的主题选项(如果有的话)。 There should be a theme option that says import/export and a long string to copy应该有一个主题选项,上面写着导入/导出和一个要复制的长字符串
  5. Now you're ready to import现在您已准备好导入
  6. Upload your wordpress files to your new cPanel将您的 wordpress 文件上传到新的 cPanel
  7. Import your database in phpMyAdmin在 phpMyAdmin 中导入您的数据库
  8. Go to the home folder of your Wordpress install and edit the wp-config.php files to include your new database details (username, password, database name) Go 到 Wordpress 安装的主文件夹并编辑 wp-config.php 文件以包含新数据库详细信息(用户名、密码、数据库名称)
  9. Login to Wordpress and import your theme options by copying the long string from point 4 into the import box (if you have options)登录到 Wordpress 并通过将第 4 点的长字符串复制到导入框中来导入您的主题选项(如果您有选项)
  10. You should be done你应该完成

Before doing any kind of migration make sure you have a back-up of your Wordpress site在进行任何类型的迁移之前,请确保您备份了 Wordpress 站点

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM