WordPress:Upgrading WordPress

来自站长百科
跳转至: 导航、​ 搜索

Before you get started, make sure you meet the minimum requirements.

三步更新

这些是简短的说明,如果你想要更多的,请查看扩展的升级说明。如果你在三步安装时遇到了困难,你也许想回顾一下安装说明的更多详情.。

对于这些说明,假定是你的博客的URL是http://example.com/wordpress/. 注意在升级过程中你的博客的浏览者恐怕不能访问你的博客,你可以考虑下象Maintenance Mode的插件

第0步:在你开始之前

  • 为防止什么事情出现了错误,确定自己有一个文件备份。WordPress-文件备份是一个综合的向导
  • 停止使用你的插件。一个插件也许不适合于新版本,因此检查一下它们的新版本,关闭那些可能引起麻烦的插件。在升级过后,你可以一个一个的再重新启动插件。

第一步:替换WordPress文件

  1. 找到最新的WordPress.把它下载并提取到你的电脑或者直接把它下载到你的服务器.
  2. 将新的文档复制到你的服务器上面,覆盖旧的文档。你可以使用FTP或者shell命令来执行这个。

注:   wp-content文件夹需要特别处理,插件和主题文件夹也一样。你应该复制这些文件夹的所有内容,但不是整个文件夹。正在复制整个文件夹的内容覆盖了你的定制和增加的内容。 同时注意将wp-config.php文档保存到你的根目录中,因为它包括了你的数据库的登录信息。一定要注意虽然这个在通常情况下并不是什么问题,因为在一个新的安装中,配置文档会被命名为wp-config-sample.php.

第二步:更新你的安装

  1. 访问升级网页。

这个网页会在一个类似于 http://example.com/wordpress/wp-admin/upgrade.php的URL上。这样做,可以更新你的数据库,是你的数据库适合于最新的代码,在你这样做之前,你的博客也许看起来很有趣。

Step 3: Do something nice for yourself

If you have caching enabled, your changes will appear to users more immediately if you clear the cache at this point (and if you don't, you may get confused when you see the old version number in page footers when you check to see if the upgrade worked).

Your WordPress installation is successfully upgraded. That's as simple as we can make it without Updating WordPress Using Subversion.

Consider rewarding yourself with a blog post about the upgrade, reading that book or article you've been putting off, or simply sitting back for a few moments and let the world pass you by.

Troubleshooting

If anything has gone wrong the first thing to do is go through all the steps in our extended upgrade instructions. That page also has information about some of the most common problems we see.