站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
建站程序
开发
服务器
办公软件
开发教程
服务器教程
软件使用教程
运营教程
热门电子书
WordPress教程
宝塔面板教程
CSS教程
Shopify教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Upgrading WordPress Extended
”
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
'''Tip:''' The [http://techie-buzz.com/wordpress-plugins/wordpress-automatic-upgrade-plugin.html WordPress Automatic Upgrade plugin] can greatly simplify the upgrade process, allowing you to upgrade your blog in about 2 minutes by clicking through a series of on-screen tasks. If you use the plugin, choose the manual rather than automatic mode. '''贴士:''' [http://techie-buzz.com/wordpress-plugins/wordpress-automatic-upgrade-plugin.html WordPress 自动升级插件]能够大大地简化升级过程,你通过点击一系列的界面任务,两分钟左右就能够升级你的博客。 如果你使用插件,请使用手动而不是自动的模式。 ==Detailed Instructions== ===Overview of the Upgrade Process=== # [[WordPress:#Step 1: Backup your database|Backup your database]]. Read [[WordPress:Backing Up Your Database]] for a detailed explanation. ==详细的指示== ===升级过程概述=== # [[WordPress:#Step 1: Backup your database|备份你的数据库]]。 详细的解释,请阅读[[WordPress:Backing Up Your Database|备份你的数据库]]。 # [[WordPress:#Step 2: Backup ALL your WordPress files|Backup ALL your WordPress files]] in your WordPress directory. Don't forget your [[WordPress:Glossary#.htaccess<|<tt>.htaccess</tt>]] file. # [[WordPress:#Step 3: Verify the backups|Verify the backups]] you created are there and usable. This is essential. # [[WordPress:#Step 4: Deactivate ALL your Plugins|Deactivate ALL your Plugins]]. # [[WordPress:#Step 2: Backup ALL your WordPress files|备份所有的WordPress文件]] 放入WordPress 目录。 不要忘了你的[[WordPress:Glossary#.htaccess<|<tt>.htaccess</tt>]]文件。 # [[WordPress:#Step 3: Verify the backups|确认文件备份]]在这里而且可以使用。 这很重要。 # [[WordPress:#Step 4: Deactivate ALL your Plugins|取消你的所有插件]]的运行。 # [[WordPress:#Step 5: Ensure first four steps are completed|Ensure first four steps are completed]]. Do not attempt the upgrade unless you have completed the first four steps. # [[WordPress:#Step 6: Download and extract the WordPress package|Download and extract the WordPress package]] from http://wordpress.org/download/. # [[WordPress:#Step 7: Delete the old WordPress files|Delete the old WordPress files]] on your site, but '''<span style="color:red">DO NOT DELETE</span>''' # [[WordPress:#Step 5: Ensure first four steps are completed|确保前四步已经完成了]]。 除非你完成了前四步,否则不要尝试升级。 #从http://wordpress.org/download/,[[WordPress:#Step 6: Download and extract the WordPress package|下载并且提取WordPress软件包]]。 # [[WordPress:#Step 7: Delete the old WordPress files|删除旧的WordPress文件]],但是'''<span style="color:red">不删除</span>'''。 #*<code><span style="color:red">wp-config.php</span></code> file; #*<code><span style="color:red">wp-content</span></code> folder; Special Exception: the <code>wp-content/cache</code> and the <code>wp-content/plugins/widgets</code> folders should be deleted. #*<code><span style="color:red">wp-images</span></code> folder; #*<code><span style="color:red">wp-includes/languages/</span></code> folder--if you are using a language file do not delete that folder; #*<code><span style="color:red">.htaccess</span></code> file--if you have added custom rules to your <code>.htaccess</code>, do not delete it; #*<code><span style="color:red">robots.txt</span></code> file--if your blog lives in the root of your site (ie. the blog is the site) and you have created such a file, do not delete it. #*<code><span style="color:red">wp-config.php</span></code> 文件; #*<code><span style="color:red"> wp-content </span></code> 文件夹;例外: <code>wp-content/cache</code> 和<code>wp-content/plugins/widgets</code>文件夹应该被删除。 #*<code><span style="color:red"> wp-images </span></code> 文件夹; #*<code><span style="color:red">wp-includes/languages/</span></code> 文件夹—如果你使用一个语言文件,不要删除那个文件夹; #*<code><span style="color:red">.htaccess</span></code> 文件—如果你给<code>.htaccess</code>添加了自定义规则,不要删除; #*<code><span style="color:red">robots.txt</span></code> 文件--如果你的博客位于你的站点的根目录(如博客就是站点)而且你创建了这样的文件,请不用删除。 # [[WordPress:#Step 8: Upload the new files|Upload the new files]] from your computer's hard drive to the appropriate WordPress folder on your site. # [[WordPress:#Step 9: Run the WordPress upgrade program|Run the WordPress upgrade program]] and follow the instructions on the screen. # [[WordPress:#Step 10: Update Permalinks and .htaccess|Update Permalinks and .htaccess]]. Update your Permalink Structure and merge the custom rules, if necessary, into your [[WordPress:Glossary#.htaccess<|<tt>.htaccess</tt>]] file. # [[WordPress:#Step 11: Install updated Plugins and Themes|Install updated Plugins and Themes]]. Please review the [[WordPress:Plugins/Plugin_Compatibility/2.6|list of Plugins that work in Version {{CurrentVersion}}]]. Check for [[WordPress:Themes/Theme_Compatibility/2.6|Theme Compatibility with {{CurrentVersion}}]] and ask your Theme author for any new version. # [[WordPress:#Step 12: Reactivate Plugins|Reactivate Plugins]] # [[WordPress:#Step 13: Review what has changed in WordPress|Review what has changed in WordPress]]. # [[WordPress:#Step 8: Upload the new files|上传新的文件]]上传到你的站点上适当的WordPress文件夹中。 # [[WordPress:#Step 9: Run the WordPress upgrade program|运行 WordPress 升级程序]]并且遵循这个界面上的指示说明。 # [[WordPress:#Step 10: Update Permalinks and .htaccess|更新 Permalinks和.htaccess]]。 更新你的Permalink 结构并且必要的话,将自定义规则融合到你的[[WordPress:Glossary#.htaccess<|<tt>.htaccess</tt>]]文件。 # [[WordPress:#Step 11: Install updated Plugins and Themes|安装更新的插件和主题]]。 查找[[WordPress:Themes/Theme_Compatibility/2.6|Theme Compatibility with {{当前版本}}的主题兼容性]]并且向你的主题作者索要任何新的版本。 # [[WordPress:#Step 12: Reactivate Plugins|重新激活插件]] # [[WordPress:#Step 13: Review what has changed in WordPress|查看WordPress有什么变化]]。 That's the overview of the upgrade process. Please continue reading the Detailed Upgrade Instructions. Remember, if you do encounter problems, re-read the Instructions below to insure you've followed the proper procedures and consult [[WordPress:Installing_WordPress#Common_Installation_Problems|Troubleshooting: Common Installation Problems]]. 这是升级过程的概述。 请继续阅读详细的升级指示说明。 记住,如果你的确遇到了麻烦,请再次阅读下面的指示说明,确认你遵循了适当的步骤,此外还可以查看[[WordPress:Installing_WordPress#Common_Installation_Problems|疑难解答: 常见安装问题]]。 ===Detailed Upgrade Instructions for 1.5.x, 2.0.x, 2.1.x, 2.2.x, 2.3.x, or 2.5.x, to {{CurrentVersion}}=== The following are the instructions that explain the above steps in more detail. Please read all of the instructions before starting. === 1.5.x, 2.0.x, 2.1.x, 2.2.x, 2.3.x, 或者2.5.x, 到 {{当前版本}}的详细的升级说明=== 下面的说明更加详细地解释了上述的步骤。 开始升级之前,请阅读所有的这些指示说明。 ====Step 1: Back up your database==== Perform a backup of your database. All of your WordPress data, such as Users, Posts, Pages, Links, and Categories, are stored in your [[WordPress:Glossary#MySQL|MySQL]] [[WordPress:Database Description|database]]. Please read [[WordPress:Backing Up Your Database]] for a detailed explanation of this process. It is extremely important to back up your database before beginning the upgrade. If, for some reason, you find it necessary to revert back to the 'old' version of WordPress, you may have to restore your database from these backups. ====第一步: 备份你的数据库==== 为你的数据库备份。 你的WordPress的所有数据,例如用户,文章,网页,链接,和类别,都储存在你的[[WordPress:Glossary#MySQL|MySQL]] [[WordPress:Database Description|数据库]]中。 这个过程的详细的解释,请阅读[[WordPress:Backing Up Your Database|备份你的数据库]]。 开始升级之前,备份你的数据库非常重要。 如果,因为某些原因,你需要返回到WordPress的'旧'版本,你可能需要从这些备份中重建你的数据库。 ====Step 2: Back up ALL your WordPress files==== Back up ALL of your files in your WordPress directory and your [[WordPress:Glossary#.htaccess<|<tt>.htaccess</tt>]] file. Typically, this process involves using an [[WordPress:FTP Clients|FTP program]] to download ALL your WordPress files from your host to your local computer. Please read [[WordPress:WordPress_Backups#Backing_Up_Your_WordPress_Site|Backing Up Your WordPress Site]] for further explanation. If you have made changes to any core WordPress files, or if you've got customized Plugins or Themes, you will want to have a good backup of those files. It is extremely important to back up your files before beginning the upgrade. If for some reason you find it necessary to revert back to the 'old' version of WordPress you will need to upload these files. ====第二步: 备份你的WordPress的所有文件==== 在你的WordPress目录中备份你的所有的文件和你的 [[WordPress:Glossary#.htaccess<|<tt>.htaccess</tt>]]文件。 通常,这个过程包括使用一个[[WordPress:FTP Clients|FTP program]]从你的主机上将所有你的WordPress文件下载到你的本地电脑上。 详细的解释,请阅读[[WordPress:WordPress_Backups#Backing_Up_Your_WordPress_Site|备份你的 WordPress 站点]]。 如果你更改了任何核心的WordPress文件,或者你得到了自定义的插件或者主题,你就想要这些文件的备份。 开始升级之前,备份你的文件非常重要。 如果,因为某些原因,你觉得需要返回到WordPress的'旧'版本,你就需要上传这些文件。 ====Step 3: Verify the backups==== Verify that the backups you created are there and usable. '''This is the most important step in the upgrade process!''' The verification process involves making sure you can see the backup files on your local computer (or wherever you've stored them) and that you can navigate into any sub-folders. If the files are in a zip file, make sure you can open the zip file. ====Step 4: Deactivate ALL your Plugins==== In your [[WordPress:Administration Panels|Administration panel]], under the Plugins choice, deactivate any Plugins. Because of the changes to WordPress, some Plugins may conflict with the upgrade process. ====第三步: 确认文件备份==== 确认你创建的文件备份在这里而且可以使用。 '''这是升级过程中最重要的一步!''' 确认过程包括确认你能够在你的本地电脑(或者你储存备份文件的其它电脑)上能够看到备份文件,而且确认过程还包括你能够导航到任何子文件夹。 如果文件是在压缩文件中,确保你能够打开压缩文件。 ====第4步:取消你的所有插件的运行==== 在[[WordPress:Administration Panels|管理面板]],插件选项的下面,取消插件运行。 因为WordPress发生了变化,有的插件可能与升级过程相冲突。 ====Step 5: Ensure first four steps are completed==== If you have not completed the first four procedures, STOP, and do them! Do not attempt the upgrade unless you have completed the first four steps. The best resource for problems with your upgrade is the [http://wordpress.org/support/ WordPress Support Forums], and if you have problems, the volunteers at the [http://wordpress.org/support/ WordPress Support Forums] will likely ask if you have completed the first four steps. ====Step 6: Download and extract the WordPress package==== Download and unzip the WordPress package from http://wordpress.org/download/. ====第五步: 确保前四步已经完成了==== 如果你没有完成前四个步骤,停下来,完成这四个步骤! 除非你完成了前四步,否则不要尝试升级。 解决升级问题的最好位置是[http://wordpress.org/support/ WordPress 支持论坛],如果你遇到了升级问题,[http://wordpress.org/support/ WordPress 支持论坛]中的志愿者,很可能会问你,你是否完成了前四个步骤。 ====第6步:下载并且提取WordPress软件包==== 从http://wordpress.org/download/,下载并且提取WordPress软件包。 * If you will be uploading WordPress to a remote web server, download the WordPress package to your computer with your favorite web browser and unzip the package. * If you have [[WordPress:Glossary#Shell|shell]] access to your web server, and are comfortable using console-based tools, you may wish to download WordPress directly to your [[WordPress:Glossary#Web server|web server]]. You can do so using <tt>wget</tt> , <tt>lynx</tt> or another console-based web browser, which are valuable if you want to avoid [[WordPress:Glossary#FTP|FTPing]]. Place the package in a directory parallel to your current wordpress directory (like "uploads," for example). Then, unzip it using: <tt>gunzip -c wordpress-{{CurrentVersion}}.tar.gz | tar -xf -</tt> or by using: <tt>tar -xzvf latest.tar.gz </tt> The WordPress package will be extracted into a folder called <tt>wordpress</tt>. *如果你将要将WordPress更新到一个远程服务器上,使用你最喜爱的网络服务器,将WordPress软件包下载到你的电脑上,并且解压软件包。 *如果你能够[[WordPress:Glossary#Shell|shell]]访问你的网络服务器,而且乐于使用控制台为基础的工具,你可能想将WordPress直接下载到你的[[WordPress:Glossary#Web server|网络服务器]]上。 你可以使用<tt>wget</tt> , <tt>lynx</tt>或者其它以控制台为基础的网络服务器下载,如果你想要避免[[WordPress:Glossary#FTP|FTPing]],这样做很有价值。 将软件包放到目录中,与你当前的wordpress目录平行(例如,像"上传,")。 然后,解压: <tt>gunzip -c wordpress-{{CurrentVersion}}.tar.gz | tar -xf -</tt>或者通过使用: <tt>tar -xzvf latest.tar.gz </tt> WordPress软件包会解压到称为<tt>wordpress</tt>的文件夹。 ====Step 7: Delete the old WordPress files==== ====第7步: 删除旧的WordPress文件==== '''Why Delete?''' Generally, it is a good idea to delete whatever is possible because the uploading (or upgrading through cPanel) process may not correctly overwrite an existing file and that may cause problems later. '''<span style="color:red">DO NOT DELETE</span> these folders and files:''' *<code>wp-config.php</code> file; *<code>wp-content</code> folder; *<code>wp-images</code> folder--only older installations from 1.5.x days will have this folder; *<code>wp-includes/languages/</code> folder--if you are using a language file, and it is here rather than in <tt>wp-content/languages/</tt>, do not delete this folder (you might want to move your language files to <tt>wp-content/languages/</tt> for easier upgrading in the future);. *<code>.htaccess</code> file--if you have added custom rules to your <code>.htaccess</code>, do not delete it; *Custom Content and/or Plugins--if you have any images or other custom content or Plugins inside the <code>wp-content</code> folder, do NOT delete them. '''为什么删除?''' 一般来说,删除任何旧的文件是较好的做法,因为升级(或者通常cPanel)升级的过程,可能不能够正确地覆盖旧的文件,而这些旧的文件,在之后,可能会造成麻烦。 '''<span style="color:red">不要删除</span> 这些文件夹和文件:''' *<code>wp-config.php</code>文件; *<code>>wp-content </code>文件夹; *<code>wp-images</code> 文件夹—只有来自1.5x的旧的WordPress安装,才能够拥有这个文件夹; *<code>wp-includes/languages/</code>文件夹—如果你正使用一个语言文件,而且这个语言文件在这里,而不是在<tt>wp-content/languages/</tt>,不要删除这个文件夹(你可能想将你的语言文件移到<tt>wp-content/languages/</tt>,便于以后,更容易升级);。 *<code>.htaccess</code> 文件—如果你为你的<code>.htaccess</code>添加了自定义规则,不要删除这个规则; *自定义内容和/或者插件—如果你在<code>wp-content</code>文件夹中拥有任何图像或者其它自定义的内容或者插件,不要删除这些内容。 '''Delete these Files and Folders:''' *<code>wp-* (except for those above), readme.html, wp.php, xmlrpc.php, and license.txt; </code> files; Typically files in your root or wordpress folder. Again, don't delete the <code>wp-config.php</code> file. *<code>wp-admin</code> folder; *<code>wp-includes</code> folder; If you have a language file here, remember not to delete the <code>wp-includes/languages/</code> folder *<code>wp-content/cache</code> folder; You only see this folder if you are upgrading FROM WordPress 2.0. *<code>wp-content/plugins/widgets</code> folder; You only see this folder if you previously installed the Sidebar Widgets plugin. The Sidebar Widgets code conflicts with the built-in widget ability. '''How to Delete?''' There are several ways to delete the files from your WordPress site. You can use your FTP Client, or if you have access to Telenet or SSH you can use that. Some host providers also provide the ability to delete files and folders. '''删除这些文件和文件夹: ''' *<code>wp-* (除了以上的那些), readme.html, wp.php, xmlrpc.php, 和 license.txt; </code>文件;特别是你的根目录或者wordpress文件夹中的文件。 同时,不要删除<code>wp-config.php</code>文件。 *<code>> wp-admin </code>文件夹; *<code>wp-includes</code>文件夹;如果你在这里有关语言文件,记住不要删除<code>wp-includes/languages/</code>文件夹 *<code>wp-content/cache</code>文件夹;如果你从WordPress2.0版本升级,你才会看到这个文件夹。 *<code>wp-content/plugins/widgets</code>文件夹;如果你先前安装了边栏Widgets插件,你才会看到这个文件夹。 边栏Widgets代码与内置的widget功能相抵触。 '''怎么删除?''' 有几种方法,可以将文件从你的WordPress站点,删除。 你可以使用你的FTP Client,或者如果你能够使用Telenet或者SSH,你可以使用这两个。 有的主机供应商,也提供了删除文件和文件夹的功能。 ;Using FTP to delete files and folders :The same [[WordPress:FTP_Clients|FTP client]] you use for [[WordPress:Uploading_WordPress_to_a_remote_host|uploading]] can be used to delete files and folders. If your [[WordPress:FTP_Clients|FTP client]] does not appear to permit you to delete non-empty folders, check the available options for your [[WordPress:FTP_Clients|FTP client]]. You'll usually find an option that permits deleting non-empty folders. Deleting non-empty folders is a quick and thorough method cleaning out an old installation of WordPress. It is recommended that once the deleting is done, you switch back to the original setting for safety reasons. ;使用FTP来删除文件和文件夹:你用来[[WordPress:Uploading_WordPress_to_a_remote_host|上传]]的[[WordPress:FTP_Clients|FTP client]],也可以用来删除文件和文件夹。 如果你的[[WordPress:FTP_Clients|FTP client]]不允许你删除非空的文件夹,请为你的[[WordPress:FTP_Clients|FTP client]]选择可使用的选项。 你总能够找到一个选项,允许删除非空的文件夹。 快速彻底地删除非空的文件夹,并且清除旧的WordPress安装。 因为安全方面的考虑,建议你删除文件夹后,立刻返回初始设置。 ;Using Telnet or SSH to delete file :If you have a command-line login (telnet or ssh), you can enter the following commands to make backup copies of the files you need to keep and to delete ONLY the wordpress files in your directory (plus .htaccess). If you've customized other files (like <code>index.php</code>) not included by the <code>cp</code> commands below, copy them as well: :* <code>mkdir backup</code> :* <code>cp wp-config.php .htaccess backup</code> :* <code>cp -R wp-content backup</code> :* <code>rm wp*.php .htaccess license.txt readme.html xmlrpc.php</code> :* <code>rm -rf wp-admin wp-includes</code> :* <code>cp backup/wp-config.php .</code> :* After you have finished with the upgrade, you can restore any customizations to your templates or plugins from your backup directory. For example, use <code>cp backup/index.php .</code> to restore <code>index.php</code>. : Alternatively, using SSH, you could copy <code>wp-config.php, .htaccess</code>, and any content files you've added or altered into the ''new'' wordpress directory. Then, rename the old one (to archive it), and move the new one into its place. ;使用Telnet或者 SSH删除文件:如果你有个命令行登录(telnet or ssh),你可以使用下面的命令,为你需要保存的文件备份,而且只删除你的目录中的wordpress文件(和.htaccess)。 如果你已经自定了其它文件(如<code>index.php</code>),不被下面的<code>cp</code>命令包含,同样复制这些文件: :* <code>mkdir backup</code> :* <code>cp wp-config.php .htaccess backup</code> :* <code>cp -R wp-content backup</code> :* <code>rm wp*.php .htaccess license.txt readme.html xmlrpc.php</code> :* <code>rm -rf wp-admin wp-includes</code>:* <code>cp backup/wp-config.php .</code> :*升级好之后,你可以在备份目录中的插件或者你的模板中重新储存任何自定义内容。 例如,使用<code>cp backup/index.php .</code>重新储存<code>index.php</code>。 : 此外,使用SSH,你应该复制<code>wp-config.php, .htaccess</code>,以及任何你添加或者更改到''新的''wordpress目录的内容文件。 然后,重新命名旧的文件(或者对其归档),并且将新的文件放到正确的位置。 ====Step 8: Upload the new files==== With the new upgrade on your local computer, and using [[WordPress:Glossary#FTP|FTP]], [[WordPress:Uploading_WordPress_to_a_remote_host|upload]] the new files to your site server just as you did when you first installed WordPress. See [[WordPress:Using FileZilla|Using FileZilla]] and [[WordPress:Uploading_WordPress_to_a_remote_host|Uploading WordPress to a remote host]] for detailed guidelines in using an FTP Client to upload. '''NOTE: If you did not delete the <code>wp-content</code> folder, you will need to overwrite some files during the upload.''' ====第8步: 上传新文件==== 将新的升级版本上传到你的本地电脑上后,请使用[[WordPress:Glossary#FTP|FTP]], [[WordPress:Uploading_WordPress_to_a_remote_host|上传]]新的文件到你的站点服务器上,就如你第一次安装WordPress时,那样做。 关于使用FTP Client上传的详细的指示说明,请看看[[WordPress:Using FileZilla|使用 FileZilla]] 和[[WordPress:Uploading_WordPress_to_a_remote_host|将WordPress上传到远程主机]]。 '''注: 如果你没有删除<code>wp-content</code>文件夹,你需要在上传的时候,覆盖一些文件。''' The <code>wp-content</code> folder holds your WordPress Themes and Plugins. These should remain. Upload everything else first, then upload only those WordPress files that are new or changed to your new <code>wp-content</code> folder. Overwrite any old versions of default plugins with the new ones. The WordPress default theme has changed so you will want to upload the <code>wp-content/themes/default</code> folder. If you have custom changes to the default theme, those changes will need to be reviewed and installed after the upgrade. <code>>wp-content </code>文件夹拥有你的WordPress主题和插件。 这些应该保存。 首先上传其它的内容,然后值上传那些新的WordPress文件或者更改到你的新的<code>wp-content</code>文件夹中的WordPress文件。 使用新的插件,覆盖任何旧的版本的默认插件。 WordPress默认主题已经更改了,因此你想要上传<code>wp-content/themes/default</code>文件夹。 如果你对默认主题进行了自定义更改,升级后,你应该查看并且安装这些更改的内容。 ====Step 9: Run the WordPress upgrade program==== Using a web browser, go to the WordPress admin pages at the normal /wp-admin location. WordPress will check to see if a database upgrade is necessary, and if it is, it will give you a new link to follow. This link will lead you to run the WordPress upgrade script by accessing <tt>wp-admin/upgrade.php</tt>. Follow the instructions presented on your screen. Note: Make sure the database user name registered to WordPress has permission to create, modify, and delete database tables before you do this step. If you installed WordPress in the standard way, and nothing has changed since then, you are fine. If you want to run the upgrade script manually: * If WordPress is installed in the root directory, point your browser to: <tt><nowiki>http://example.com/wp-admin/upgrade.php</nowiki></tt> * If WordPress is installed in its own subdirectory called <tt>blog</tt>, for example, point your browser to: <tt><nowiki>http://example.com/blog/wp-admin/upgrade.php</nowiki></tt> If you experience difficulties with login after your upgrade, it is worth clearing your browser's cookies. ====第9步: 运行WordPress升级程序==== 使用网络浏览器,进入normal /wp-admin处的WordPress管理网页。 WordPress会查看是否需要对数据库进行升级,如果需要,WordPress会给你提供链接,让你运行。 这个链接会引导你,通过使用<tt>wp-admin/upgrade.php</tt>,运行WordPress升级脚本。 遵循你的界面上提供的指导说明。 注: 确定在WordPress上注册的数据库用户名,拥有权限创建,更改,和删除数据库表格,然后你再执行这个步骤。 如果你以标准的方式安装WordPress的,而且之后什么也没改,那么这样可以。 如果你想要动手运行升级脚本: *如果WordPress安装在根目录上,将你的浏览器指向: <tt><nowiki>http://example.com/wp-admin/upgrade.php</nowiki></tt> *如果WordPress安装在称为例如<tt>博客</tt>的子目录上,你将你的浏览器指向: <tt><nowiki>http://example.com/blog/wp-admin/upgrade.php</nowiki></tt> 如果升级后,你登录时,遇到了麻烦,最好清除你的浏览器的cookies。 ====Step 10: Update Permalinks and .htaccess==== In your [[WordPress:Permalinks_Options_SubPanel|Options->Permalinks]] panel update your Permalink Structure and, if necessary, place the rules in your [[WordPress:Glossary#.htaccess<|<tt>.htaccess</tt>]] file. Also see [[WordPress:Using_Permalinks|Using Permalinks]] for details regarding Permalinks and the [[WordPress:Glossary#.htaccess<|<tt>.htaccess</tt>]] file. ====第10步: 更新 Permalinks和 .htaccess==== 在你的[[WordPress:Permalinks_Options_SubPanel|选项->Permalinks]]面板上,更新你的Permalink结构,而且,如果必要的话,将规则放到你的[[WordPress:Glossary#.htaccess<|<tt>.htaccess</tt>]]文件。 关于Permalinks和[[WordPress:Glossary#.htaccess<|<tt>.htaccess</tt>]]文件的详细信息,也看看[[WordPress:Using_Permalinks|使用 Permalinks]]。 ====Step 11: Install updated Plugins and Themes==== Please review the [[WordPress:Plugins/Plugin_Compatibility|Plugin Compatibility List]] and [[WordPress:Themes/Theme_Compatibility|Theme Compatibility List]], or plugin/theme authors, to find plugins and themes compatible with your new WordPress version. Upload and install new versions of your Plugins and Themes, if necessary. ====第11步: 安装更新后的插件和主题==== 请查看[[WordPress:Plugins/Plugin_Compatibility|插件兼容性列表]] 和 [[WordPress:Themes/Theme_Compatibility|主题兼容性列表]],或者插件/主题作者,找到与你的新版本的WordPress相兼容的插件和主题。 如果必要的话,上传并且更新新版本的插件和主题。 ====Step 12: Reactivate Plugins==== Use your Administration Panel, Plugins, to activate your Plugins. <!--Please note that if you are using the new WordPress Database Backup Plugin you may need to change the permissions on your <code>wp-content</code> folder to make it writeable by your webserver (either mode 666 or even 777). See [[WordPress:Changing_File_Permissions|Changing File Permissions]] for more details. --> ====第12步: 重新激活插件==== 使用你的管理面板,插件,激活你的插件。 <!—请注意,如果你正在使用新的WordPress数据库备份插件,你可能需要更改<code>wp-content</code>文件夹上的权限,使得你的网络服务器能够编写这个文件(权限为 666 或者设置为777)。 更多的详细信息,请看看[[WordPress:Changing_File_Permissions|更改文件权限]]。 --> ====Step 13: Add the SECRET_KEY definition to wp-config.php==== If there is not a [[WordPress:Editing_wp-config.php#Secret_key_for_salting_password|SECRET_KEY]] define statement in your <tt>wp-config.php</tt> file, add one. Beginning with Version 2.5, a [[WordPress:Editing_wp-config.php#Secret_key_for_salting_password|SECRET_KEY]] for salting (strengthening) user passwords was added to the <tt>wp-config.php</tt> file. To improve the chances your user passwords are not 'hacked' here's an example of the line to add to your <tt>wp-config.php</tt> file: <pre>define('SECRET_KEY', 'RF63k93hb9shj3klvbn37sjd9a9n"'); // Change this to a unique phrase.</pre> Note: Remember that the above line should be added somewhere inside/between the PHP beginning '''<nowiki><?php</nowiki>''' and ending '''<nowiki>?></nowiki>''' code. ====第13步: 给wp-config.php添加SECRET_KEY定义==== 如果你的<tt>wp-config.php</tt>文件中没有[[WordPress:Editing_wp-config.php#Secret_key_for_salting_password|SECRET_KEY]]定义声明,请添加一个。 从2.5版本开始, [[WordPress:Editing_wp-config.php#Secret_key_for_salting_password|SECRET_KEY]]用来牢固(加固)用户密码,而且添加在<tt>wp-config.php</tt>文件中。 使得你的用户密码,更不容易被'破解',下面有一行,可以添加到你的<tt>wp-config.php</tt>文件: <pre>define('SECRET_KEY', 'RF63k93hb9shj3klvbn37sjd9a9n"'); //将这一行更改为唯一的词组。</pre> 注: 记住上面的这一行,应该添加在以'''<nowiki><?php</nowiki>'''开始而且以'''<nowiki>?></nowiki>'''编码结束的PHP内部/中间。 ====Step 14: Review what has changed in WordPress==== Please review these resources to see what's new in WordPress: *[[WordPress:Version_2.6|Version 2.6 Details]] *[http://wordpress.org/development/ WordPress Development Blog] ====第14步: 查看WordPress中出现了怎样的更改==== 请查看这些网站,看看WordPress中出现了什么新内容: *[[WordPress:Version_2.6|2.6版本详细信息]] *[http://wordpress.org/development/ WordPress 发展博客] =====Special note for Fantastico Upgrades===== When using the Fantastico upgrade process to upgrade from a pre-Version 2.2, Fantastico will use the wp-config-sample.php file to regenerate a new wp-config.php file. By doing this, two new values, DB_CHARSET and DB_COLLATE, are placed into the wp-config.php file. Those lines should be deleted from your wp-config.php if you are upgrading from a pre-Version 2.2 (like 2.0.10 or 2.1.3) to Version {{CurrentVersion}}. A detailed explanation about DB_CHARSET and DB_COLLATE can be found in [[WordPress:Editing wp-config.php]]. <!-- saving for later upgrades ===== Fantastico 更新特别注意事项===== 使用Fantastico更新程序,从2.2之前的版本,开始升级的时候,Fantastico会使用wp-config-sample.php文件,重新创建一个新的wp-config.php文件。 这样做,两个新的参数值,DB_CHARSET 和DB_COLLATE,都放置进了wp-config.php文件。 如果你从2.2之前的版本(如2.0.10或者2.1.3)开始升级到这个版本{{当前版本}},因此从你的wp-config.php中删除这些行。 关于DB_CHARSET 和 DB_COLLATE的详细解释,可以在[[WordPress:Editing wp-config.php|编辑wp-config.php]]中找到。 <!—保存,用于以后升级 ===Upgrade 2.0.6 to {{CurrentVersion}} === This is a security upgrade. Information can be found in the [http://wordpress.org/development/2007/01/wordpress-207/ WordPress Dev Blog 2.0.7 Announcement]. As with all WordPress upgrades, the contents of your <code>/wp-content/</code> folder should remain intact and unchanged except as noted below. ===将2.0.6 升级到 {{当前版本}} === 这是个安全升级。 信息可以在 [http://wordpress.org/development/2007/01/wordpress-207/ WordPress Dev Blog 2.0.7 声明]中找到。 对于所有的WordPress升级,你的<code>/wp-content/</code>文件夹中应该保存完整不变,但是下面列出的除外。 # Delete <code>/wp-admin/</code> folder. # Delete <code>/wp-includes/</code> folder. Note: '''You must backup <code>/wp-includes/languages/</code> directory if exists. Also backup <code>/wp-includes/images/</code> IF you are using a custom smiley set.''' # WordPress {{Template:CurrentVersion}} contains updated files for the classic and default themes as well as the akismet plugin. If you would like the updated files, delete the <code>/wp-content/themes/default</code>, <code>/wp-content/themes/classic</code>, and the <code>/wp-content/plugins/akismet</code> folders. '''Remember to make a backup of your customisations first!''' # Delete all the wordpress files in the root directory where the root <code>index.php</code> file is found. '''DO NOT DELETE <code>wp-config.php</code> (nor any files you may have added yourself: <code>robots.txt</code>, <code>.htaccess</code>, <code>favicon.ico</code>).''' # Download and extract the new version. # Upload it to the appropriate folders such as <code>/wp-admin/</code>, <code>/wp-includes/</code>, and if you deleted the default theme, the classic theme, and the akismet plugin, <code>/wp-content/themes/classic</code>, and the <code>/wp-content/plugins/akismet</code> folders. # Upload all the files in the root directory. # If existed, restore <code>/wp-includes/languages/</code> directory That's it. # 删除<code>/wp-admin/</code>文件夹。 # 删除<code>/wp-includes/</code>文件夹。 注: ''' 如果存在<code>/wp-includes/languages/</code> 目录了,你必须备份这个目录。 如果你正在使用自定义的smiley set ,你也要备份<code>/wp-includes/images/</code>。''' # WordPress {{模板:当前版本}}为经典的和默认的主题以及aksimet插件,包含了更新的文件。 如果你想要更新后的文件,请删除<code>/wp-content/themes/default</code>, <code>/wp-content/themes/classic</code>, 和<code>/wp-content/plugins/akismet</code> 文件夹。 '''记住首先备份你自定义的内容!''' #删除<code>index.php</code>文件所在的根目录中的所有的wordpress文件。 '''不要删除 <code>wp-config.php</code> (或者任何你自己添加的文件: <code>robots.txt</code>, <code>.htaccess</code>, <code>favicon.ico</code>).''' #下载并且提取新的版本。 #将新版本上传到合适的文件夹中,如<code>/wp-admin/</code>, <code>/wp-includes/</code>,而且如果你删除了默认主题,经典主题和aksimet插件<code>/wp-content/themes/classic</code>, 和 <code>/wp-content/plugins/akismet</code> 文件夹。 #将所有的文件上传到根目录。 #如果存在,重建<code>/wp-includes/languages/</code> 目录。 就这么多了。 Volunteers are assisting with problems on the [http://wordpress.org/support/ WordPress Support Forums]. **end of saving for later upgrade --> ==Other languages== 志愿者在[http://wordpress.org/support/ WordPress 支持论坛]上帮助你解决问题。 **保存,用于以后升级 --> ==其它语言== {| class="wikitable" |- ! Language (english, native) !! Version (new to old) !! Remark |- | Chinese, 简体中文 || [http://www.owind.com/pub/computer/wordpress/2007/08/05/wordpress-222/ 2.2.1 to 2.2.2], [http://www.owind.com/pub/computer/wordpress/2007/05/16/wordpress-22-released/ 2.1 to 2.2], [http://www.owind.com/pub/computer/wordpress/2007/04/03/wordpress-213-and-2010/ 2.1.2 to 2.1.3], [http://www.owind.com/pub/computer/2007/02/21/wordpress-211-and-209/ 2.1 to 2.1.1], [http://www.owind.com/pub/computer/2007/02/21/wordpress-211-and-209/ 2.0.7 to 2.0.9], [http://www.owind.com/pub/computer/2007/01/17/wordpress-207/ 2.0.6 to 2.0.7], [http://bemike.org/blog/2007/01/07/upgrading-wodpress-from-205-to-206.html 2.0.5 to 2.0.6], [http://www.owind.com/pub/computer/2006/11/03/wordpress-205/ 2.0.4 to 2.0.5] |- | Hungarian, magyar nyelv || [http://dokumentacio.word-press.hu/WordPress_2-1-3 2.1.2 to 2.1.3], [http://dokumentacio.word-press.hu/Frissites-2-x-verziorol-2-1-s-verziora 2.x to 2.1], [http://word-press.hu none specified] |- | Italian, italiano || [http://www.andreabeggi.net/2007/01/26/screencast-aggiornare-wordpress/ none specified], [http://www.valent-blog.eu/2007/04/25/aggiornare-wordpress/ none specified] |- | Korean || [http://cys.kr/wp/2007/02/10/208 1.5.x, 2.0.x to 2.1], [http://cys.kr/wp/2006/10/31/197 2.0.4 to 2.0.5] |- | Spain, Castellano || [http://www.davidsuarez.es/?p=203 2.2 to 2.2.1], [http://www.davidsuarez.es/?p=215 2.2.1 to 2.2.2], [http://www.davidsuarez.es/?p=324 2.2.2 to 2.2.3], [http://www.davidsuarez.es/?p=399 2.3 to 2.3.1], [http://www.davidsuarez.es/?p=505 2.3.1 to 2.3.2], [http://www.davidsuarez.es/?p=554 2.3.2 to 2.3.3], [http://www.davidsuarez.es/?p=592 2.3 to 2.5] |- | Thai, ภาษาไทย || [http://www.thaiwp.com/upgrade-wordpress-203-to-204/ 2.0.3 to 2.0.4], [http://www.basicstep.net/wordpress/upgrade-to-wordpress-23/ 2.0.x to 2.3], [http://www.maryhaskellcurtis.com/2008/05/07/wordpress23-251-upgrade-wordpress-23-251/ 2.3 to 2.5.1] |- | Turkish, Türkçe || [http://www.wordpress-tr.com/belgeler/Surum_yukseltme none specified] |- | Russian, Русский || [http://tods-blog.com.ua/wordpress-update/ old to new] |- | Ukrainian, украї́нська мо́ва || [http://hip.org.ua/wordpress/upgrade-wordpress-new.html any 2.0.x to 2.3.x], [http://ribel.org.ua/?p=97/ 2.0.5 to 2.0.6] |} {| class="wikitable" |- ! 语言 (英语, 母语) !! 版本 (旧到新) !! Remark |- | Chinese, 简体中文 || [http://www.owind.com/pub/computer/wordpress/2007/08/05/wordpress-222/ 2.2.1 到 2.2.2], [http://www.owind.com/pub/computer/wordpress/2007/05/16/wordpress-22-released/ 2.1到2.2], [http://www.owind.com/pub/computer/wordpress/2007/04/03/wordpress-213-and-2010/ 2.1.2到2.1.3], [http://www.owind.com/pub/computer/2007/02/21/wordpress-211-and-209/ 2.1到2.1.1], [http://www.owind.com/pub/computer/2007/02/21/wordpress-211-and-209/ 2.0.7到2.0.9], [http://www.owind.com/pub/computer/2007/01/17/wordpress-207/ 2.0.6到2.0.7], [http://bemike.org/blog/2007/01/07/upgrading-wodpress-from-205-to-206.html 2.0.5到2.0.6], [http://www.owind.com/pub/computer/2006/11/03/wordpress-205/ 2.0.4 to 2.0.5] |- | Hungarian, magyar nyelv || [http://dokumentacio.word-press.hu/WordPress_2-1-3 2.1.2到2.1.3], [http://dokumentacio.word-press.hu/Frissites-2-x-verziorol-2-1-s-verziora 2.x到.1], [http://word-press.hu none specified] |- | Italian, italiano || [http://www.andreabeggi.net/2007/01/26/screencast-aggiornare-wordpress/ none specified], [http://www.valent-blog.eu/2007/04/25/aggiornare-wordpress/ none specified] |- | Korean || [http://cys.kr/wp/2007/02/10/208 1.5.x, 2.0.x to 2.1], [http://cys.kr/wp/2006/10/31/197 2.0.4到.0.5] |- | Spain, Castellano || [http://www.davidsuarez.es/?p=203 2.2 to 2.2.1], [http://www.davidsuarez.es/?p=215 2.2.1到2.2.2], [http://www.davidsuarez.es/?p=324 2.2.2到2.2.3], [http://www.davidsuarez.es/?p=399 2.3到2.3.1], [http://www.davidsuarez.es/?p=505 2.3.1到2.3.2], [http://www.davidsuarez.es/?p=554 2.3.2到2.3.3], [http://www.davidsuarez.es/?p=592 2.3 to 2.5] |- | Thai, ภาษาไทย || [http://www.thaiwp.com/upgrade-wordpress-203-to-204/ 2.0.3到2.0.4], [http://www.basicstep.net/wordpress/upgrade-to-wordpress-23/ 2.0.x到2.3], [http://www.maryhaskellcurtis.com/2008/05/07/wordpress23-251-upgrade-wordpress-23-251/ 2.3到2.5.1] |- | Turkish, Türkçe || [http://www.wordpress-tr.com/belgeler/Surum_yukseltme none specified] |- | Russian, Русский || [http://tods-blog.com.ua/wordpress-update/旧到新] |- | Ukrainian, украї́нська мо́ва || [http://hip.org.ua/wordpress/upgrade-wordpress-new.html any 2.0.x to 2.3.x], [http://ribel.org.ua/?p=97/ 2.0.5 到2.0.6] |} ==Troubleshooting== ;Scrambled Layout or Errors :If your blog looks scrambled now or features line errors, an old plugin that doesn't work with the new code may be the culprit. In your WordPress [[WordPress:Administration_Panels|Administration Panel]], deactivate all plugins that do not come with WordPress by default. Re-activate them one by one. ;Made Custom Changes/Hacks? :If you have made changes to other WordPress files ("hacked" WordPress), you are supposed to keep track of your changes. You will have to transfer your edits into the new code. [[WordPress:WordPress Versions]] lists the files that have changed in each release. ;Resist Using Old Code :Upgrading gives you the newest and best code. Using your old code, no matter how much you have customised it, almost certainly will cause problems. The temptation just to use your old modified code will be great, but the chances of errors are much greater. ==疑难解决== ;混乱了布局或者错误:如果你的博客现在看起来很混乱,或者有行出现了错误,可能是因为旧的插件不能够与新的代码兼容。 在你的WordPress[[WordPress:Administration_Panels|管理面板]]中,取消非WordPress默认的所有插件。 然后再一个一个地激活插件。 ;做出自定义的更改/Hacks? :如果你更改了其它的WordPress文件("hacked" WordPress),你应该了解你更改的内容。 你需要将你编辑的内容,转变为新的代码。 [[WordPress:WordPress Versions|WordPress版本]]列出了每次发行的新版本,更改的文件。 ;继续使用旧的代码:更新,能够使你得到最新的和最好的代码。 使用就代码,不管你怎样自定义了这些代码,都会产生问题。 想要使用旧的,更改后的代码,这个想法是好的,但是产生问题的机率,也更大。 ;Can I Go Back to Old Versions :You can, but it is usually not recommended to rollback (revert) your current version to an older version. That is because newer versions often include security updates and a rollback may put your site at risk. Second, the change between the database structure between versions may cause complications in maintaining your site content, posts, comments, and plugins that are dependent upon the information stored in the database. If you are still intent on this, proceed at your own risk. '''Please note, that without a backup of your entire site and your database, made prior to your upgrade attempt, a successful rollback is near impossible.''' Delete all WordPress files except for <tt>wp-config</tt>. [[WordPress:Uploading_WordPress_to_a_remote_host|Upload]] the files from your backup to your server and [[WordPress:Restoring_Your_Database_From_Backup|restore your database backup]]. Remember, you must have good backups for the rollback to work. For older WordPress versions, a rollback might not work. ;Get More Help :If you get any errors following an upgrade, check [[WordPress:Installing_WordPress#Common_Installation_Problems|Troubleshooting: Common Installation Problems]], [[WordPress:Troubleshooting]], and the [http://codex.wordpress.org/Category:Installation Codex Installation Category of Articles]. If you can't find an answer, post a clear question on the [http://www.wordpress.org/support WordPress Suppport Forums]. You will be asked if you have used any old code. You'll be told to change it then, so you may as well change it now :) ;我能够返回到旧的版本吗:你可以,但是通常不建议你从一个当前的版本返回(回到)到一个更旧的版本。 这是因为新的版本通常包含安全更新,如果返回到旧的版本,可能会使得你的站点,冒风险。 其次,版本之间数据库结构的不同,可能会使得依赖数据库信息的站点内容,文章,评论,和插件的维护变得复杂。 如果你仍然坚持从新的版本,返回到旧的版本,你需要自己承担风险。 '''请注意,在你尝试升级之前,没有给你整个站点和数据库做文件备份的话,要想成功地返回到旧的版本,几乎是不可能的。''' 删除所有的WordPress文件,<tt>wp-config</tt>除外。 从备份中[[WordPress:Uploading_WordPress_to_a_remote_host|上传]]文件到你的服务器并且[[WordPress:Restoring_Your_Database_From_Backup|重建你的数据库备份]]。 记住,你必须拥有很好的备份,这样才能返回运行旧的版本。 对于更旧的WordPress版本,可能不能够返回运行。 ;得到更多的帮助,如果你升级后,遇到了任何问题,请查看[[WordPress:Installing_WordPress#Common_Installation_Problems|疑难解答: 常见安装问题]], [[WordPress:Troubleshooting|疑难解答]], 和[http://codex.wordpress.org/类别:安装文章的Codex安装类别]。 如果你找不到答案,可以在[http://www.wordpress.org/support WordPress 支持论坛]上发表你的问题。 你需要回答,你是否已经使用过任何旧的代码。 然后,你就会被告知,更改你的旧代码,所以你现在改,也是一样的:) ==Old Upgrade Information== If you are considering upgrading to WordPress Version {{CurrentVersion}}, but you are at Version 1.2, then follow the 1.2 to 1.5 upgrade as describe in [[WordPress:Upgrade_1.2_to_1.5|Upgrading From WordPress Version 1.2 to 1.5]]. Once you are upgraded to Version 1.5.x, then follow the instructions as listed above to upgrade from 1.5 to {{CurrentVersion}}. ==旧的升级信息== 如果你考虑升级到WordPress版本{{当前版本}},但是你现在还在1.2版本,那么你可以遵循[[WordPress:Upgrade_1.2_to_1.5|从WordPress1.2版本升级到1.5版本]]中的描述。 你升级到1.5.x之后,可以遵循上述的指示,从1.5升级到{{当前版本}}。
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)
本页使用的模板:
模板:CurrentVersion
(
编辑
)
模板:当前版本
(
编辑
)