如何复制你的WordPress网站与复制插件

  1. Clone Plugin Installation
  2. Clone Plugin Options
  3. Creating a Package
  4. 把你的网站搬到一个新的主机上
  5. The Trick You Need to Know
  6. Read Also

看起来您已经在本地主机上玩得够多了,现在是时候了 duplicate your WordPress site, moving it to a better place.

如果你觉得这很难, 不用担心,移动你的WordPress网站不会超过20分钟的时间.

Let’s begin.



Clone Plugin Installation

First of all, open the Plugins 部分,然后点击按钮 Add New

Now enter the name of the plugin into the search field; it’s Duplicator

And here’s the WordPress Duplicator plugin you need.

Install it, and activate the clone plugin.

激活后,复印机插件设置将出现在菜单中.

如你所见,没什么可怕的. Let’s move on.


Clone Plugin Options

这个插件的开发是为了帮助你 move your website from one location to another. 此外,复制器可以创建站点的自动备份.

Some hosting providers, 尤其是中低价, do not create automatic backups, and that’s a really bad thing. For example, 有时用户会破坏他们的网站, and if they don’t have a copy, 你觉得他们会有什么反应?

Unfortunately, 复印机有个问题——免费版不允许你创建自动备份, 但我不认为这是个问题, 因为您可以根据需要创建尽可能多的备份包.


Creating a Package

在您开始对您的网站进行任何更改之前, 通过安装第三方插件或编辑源代码, you need to create a new backup package.

Hit the Packages 项,您将看到以下内容.

There are no packages, yet.

Now hit the button Create New, and let some magic happen.

需要说明的是,整个备份过程只有四个步骤:

  1. Click Duplicator >> Packages >> Create New
  2. Enter the package name
  3. Click Next
  4. 当扫描仪完成其工作时,单击 Build.

有趣的是,当我试图创建一个包时,我收到了一个错误. 幸运的是,这不是插件的问题,而是我的托管帐户的问题.

If you’re using GoDaddy 托管您即将经历同样的问题. 现在,我将向您展示如何修复这个问题,并最终创建一个包.

In my case ZIP archiving was not enabled on my account. 要启用它,我[和你]需要登录到 Cpanel.

在软件部分,有一个图标 PHP PEAR Packages, hit it.

When you’re there, enter zip into the search field and press Go

下一页将显示一个Archive_Zip (0.1.2)需要安装的模块.

If you see this:

.......done: 19,606 bytes
install ok: channel://pear.php.net/Archive_Zip-0.1.2

恭喜你,你做对了.

但你还需要做一件事. 回到CPanel的主页,在相同的部分 Software, where there’s an item PHP Processes.

Click on it.

在下一页你需要点击按钮 Kill Processes.

Don’t worry, 这不会真正“杀死”任何东西, 此工具将重新启动您的托管帐户上的PHP进程.

Press Kill Processes 让我们回到网站管理员那里,创建一个包.

Here’s what you need to do:

  1. Click Packages >> Create New.
  2. Enter the name of the package, if you skip that step, 包将以当前日期作为名称.
  3. Click Next.
  4. 当扫描仪完成其工作时,单击 Build.

现在你有了你的网站的备份,你可以做任何你需要的操作.


把你的网站搬到一个新的主机上

当你的包准备好了,你会得到两个文件:installer.php and archive.zip

这个过程还需要一些简单的步骤,例如:

  1. Open your CPanel on a new host.
  2. 使用文件管理器或FTP将这两个文件上传到你想要建立网站的目录 /public_html/your-wp-directory/ for example.
  3. 现在打开一个新选项卡并浏览到这个URL http://yourdomain.com/your-wp-directory/installer.php
  4. On Step 1 >> Click the button Next.
  5. On Step 2 >> Enter your database credentials, if you don’t have any you need to create one >> test connection >> click Next. 请注意,如果这个数据库被分配给其他网站,它将被覆盖. 建议创建一个空数据库. 如何在托管提供商的文档中创建数据库, or ask their chat operator.
  6. On Step 3 >> Click the button Next.
  7. On Step 4 >> Login remove installer files.
  8. 完成,您的站点已经迁移完成.

The Trick You Need to Know

为了简化整个网站建设过程,你需要知道一个小技巧. 大多数主机帐户允许您创建子域. 基本上,这将是一个单独的网站托管在一个单一的帐户.

所以当你创建子域名时,你可以调用它 sandbox.yourdomain.com and practise there. 如果出了问题,这会帮助你避免压力. 在应用所有必要的更改之后,您可以复制WordPress站点并将整个包从 sandbox to its final destination.

如果你有任何问题,你可以在评论区提出来. 如果你没有东西要搬,我们有很多 WordPress themes that will fit any business niche; you’re welcome to check them out.

Read Also

如何为你的网站选择最好的WordPress插件

自由设计师作品集免费WordPress主题

为你的主题创建WordPress导航

如何用WordPress创建重定向

为什么网络专业人士为他们的客户选择WordPress?

6个关于WordPress SEO的秘密

Bitunit Lite免费WordPress比特币主题


Alex Bulat

写一篇博客文章或建立一个小众WordPress网站是Alex可以赤手空拳做的事情. 欢迎您通过 Telegram, Facebook, or LinkedIn.

Get more to your email

订阅我们的时事通讯和访问独家内容和提供只提供给og体育首页Post订户.

From was successfully send!
Server error. Please, try again later.