站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Upgrading WordPress Extended
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
====第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目录的内容文件。 然后,重新命名旧的文件(或者对其归档),并且将新的文件放到正确的位置。
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)