WordPress: FAQ Installation:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
第1行: 第1行:
[[WordPress:FAQ|Back to FAQ]]
[[WordPress:FAQ|返回到常见问题解答]]
__TOC__
__TOC__
<div style="clear:both; height:20px"></div>
<div style="clear:both; height:20px"></div>


== Installation ==
== 安装 ==
===How do I install WordPress?===
===我怎样安装 WordPress?===
See also:
See also:
* [[WordPress:Installing WordPress]]
也看看:
* [http://install4free.wordpress.net Install4Free]
* [[WordPress:Installing WordPress|安装WordPress]]
* [http://install4free.wordpress.net 免费安装WordPress]


===What is the Famous 5-Minute Install? ===
===什么是著名的5分钟安装? ===
See also:
See also:
* [[WordPress:Installing_WordPress#Famous_5-Minute_Install|The WordPress Famous 5-Minute Install]]
也看看:
* [[WordPress:Installing_WordPress#Famous_5-Minute_Install| WordPress 著名的5分钟安装]]


===How do I find a good host for my WordPress blog?===
===我怎样为我的 WordPress 博客找一个好的主机?===
See also:
See also:
* [[WordPress:Hosting WordPress]]
也看看:
* [[WordPress:Hosting WordPress|托管WordPress]]


===How do I install using CPanel / CPanel X?===
===我怎样安装使用CPanel / CPanel X?===
See also:
See also:
* [[WordPress:cPanel_X]]
也看看:
* [[WordPress:cPanel_X|cPanel X]]


===How do I configure the 'wp-config' file?===
===我怎样配置 'wp-config' 文件?===
See also:
See also:
* [[WordPress:Editing_wp-config.php]]
也看看:
* [[WordPress:Editing_wp-config.php|编辑wp-config.php]]


===What are the requirements for installing WordPress?===
===安装 WordPress的必须条件是什么?===
See also:
See also:
* [[WordPress:Hosting WordPress]] and [http://wordpress.org/about/requirements/ Requirements at WordPress.org]
也看看:
* [[WordPress:Hosting WordPress|托管WordPress]] [http://wordpress.org/about/requirements/ 在WordPress.org上的所需要的条件]


===How do I get WordPress to use my language?===
===我怎样使 WordPress 使用我的语言?===
See also:
See also:
* [[WordPress:WordPress Localization]]
* [[WordPress:WordPress Localization|WordPress地方化]]


===Do I need to create a database?===
===我需要创建一个数据库吗?===


WordPress requires access to a [[WordPress:Glossary#MySQL|MySQL database]] database to store information. So you need a database.  
WordPress requires access to a [[WordPress:Glossary#MySQL|MySQL database]] database to store information. So you need a database.  
WordPress需要有权限进入一个[[WordPress:Glossary#MySQL|MySQL 数据库]]数据库来储存信息。因此你需要一个数据库。


You can create a new database if:
You can create a new database if:
你可以创建一个数据库如果:
#You have not already created one on the server
#You have not already created one on the server
#Your generous host offers you more than one database, and you wish to have a separate database for the blog you are setting up.  
#你还没有在服务器上创建一个
 
#Your generous host offers you more than one database, and you  
wish to have a separate database for the blog you are setting up.  
#你的慷慨的主机给你提供了不止一个的数据库,你希望为你设置的博客提供一个单独的数据库。
It is not essential to create a new database for each WordPress installation.  
It is not essential to create a new database for each WordPress installation.  
 
为每一个WordPress安装都创建一个新的数据库,并不重要。
*If you are using the same database for multiple WordPress installations, take care to edit the [[WordPress:Editing wp-config.php|wp-config.php]] file ensuring that each installation has a unique database prefix.
*If you are using the same database for multiple WordPress installations, take care to edit the [[WordPress:Editing wp-config.php|wp-config.php]] file ensuring that each installation has a unique database prefix.
*如果你为多个WordPress安装使用同一个数据库,注意编辑[[WordPress:Eding wp-config.php|wp-config.php|wp-config.php]]文件,确保每一个安装都有一个唯一的数据库前缀。
*If you are setting up a new database for a new blog, edit [[WordPress:Editing wp-config.php|wp-config.php]], and be sure to get the database name, and other details correct.
*If you are setting up a new database for a new blog, edit [[WordPress:Editing wp-config.php|wp-config.php]], and be sure to get the database name, and other details correct.
*如果你为一个新的博客,设置一个新的数据库,编辑[[WordPress:Editing wp-config.php|wp-config.php|wp-config.php]],确保数据库名和其它的详细信息都是正确的。


See also:
See also:
* [[WordPress:Installation#Detailed_Instructions|Installation, Detailed Instructions]]
也看看:
* [[WordPress:Installation#Detailed_Instructions|Installation, Detailed Instructions|安装,详细说明]]


===What is the 403 error I get when trying to see my site?===
===当我试着看我的站点的时候,我遇到的403错误是什么?===
'''Symptoms:''' You cannot seem to login after using the right username and password, into your admin account. You get an error message like:
'''Symptoms:''' You cannot seem to login after using the right username and password, into your admin account. You get an error message like:
“征兆”在你的管理帐户上输入了正确的用户名和密码后,你似乎还不能登录。你得到了一个错误的消息像:


<pre> You are not authorized to view this page
<pre> You are not authorized to view this page
You might not have permission to view this
You might not have permission to view this
directory or page using the credentials you  
directory or page using the credentials you  
  supplied. If you believe you should be able  
  supplied. If you believe you should be able  
  to view this directory or page, please try  
  to view this directory or page, please try  
第62行: 第76行:
  You can click Search to look for information
  You can click Search to look for information
  on the Internet. HTTP Error 403 - Forbidden''</pre>
  on the Internet. HTTP Error 403 - Forbidden''</pre>
<pre>你没有被授权访问这个页面。你也许没有权限来访问
这个目录或者页面,使用你提供的信任状。
如果你相信你能够访问这个目录或者页面,请使用在personal.fredsmith.com主页上罗列的任何一个邮箱地址或者电话号码,与网络站点联系。你可以点击搜索在Internet.HTTP Error403-Forbidden”</pre>上查找更多的信息。


'''Solution:''' If your account is hosted on a Windows server, it could be a problem with the Directory Indexes. The default configuration of the server is to load <tt>index.htm</tt>, <tt>index.html</tt>, <tt>default.htm</tt>, <tt>default.html</tt>, <tt>default.asp</tt> files.
'''Solution:''' If your account is hosted on a Windows server, it could be a problem with the Directory Indexes. The default configuration of the server is to load <tt>index.htm</tt>, <tt>index.html</tt>, <tt>default.htm</tt>, <tt>default.html</tt>, <tt>default.asp</tt> files.
“解决办法:”如果你的帐户由一个Windows服务器托管,这可能是一个有关目录索引的问题。服务器默认的配置是加载<tt>index.htm</tt>, <tt>index.html</tt>, <tt>default.htm</tt>, <tt>default.html</tt>, <tt>default.asp</tt>文件。


Wordpress is done in PHP so the default page is <tt>index.php</tt>. Now, this is not part of the default configuration so we need to add it. To do this, you need to click on '''Web Options''' in the '''Control Panel'''. Then scroll down to the '''Directory Indexes''' section to add <tt>index.php</tt> to the '''Directory Indexes'''.
Wordpress is done in PHP so the default page is <tt>index.php</tt>. Now, this is not part of the default configuration so we need to add it. To do this, you need to click on '''Web Options''' in the '''Control Panel'''. Then scroll down to the '''Directory Indexes''' section to add <tt>index.php</tt> to the '''Directory Indexes'''.
WordPress是在PHP中完成的因此默认的页面是<tt>index.php</tt>。这不是默认配置的一部分因此我们要添加它。
这样做,你就要在“控制面板”中点击“网络选择”。然后下滚到“目录索引”部分将<tt>index.php</tt>添加到“目录索引”


If necessary, contact your web host for support in this matter.
If necessary, contact your web host for support in this matter.
如果需要的话,与你的网络主机联系,寻求这个问题方面的支持。


===Can I rename the WordPress folder?===
===我能给WordPress文件夹重新命名吗?===
If you have not already installed WordPress, you can rename the folder with the WordPress files, before, or even after uploading the files.
If you have not already installed WordPress, you can rename the folder with the WordPress files, before, or even after uploading the files.
如果你还没有安装WordPress,你可以在上载文件前,甚至于上载文件后,给WordPress文件重新命名。


If you have already installed WordPress, and you want to rename the folder, login to the weblog as the administrator and change the following settings in [[WordPress:Administration_Panels#Options_-_Configuration_Settings|Options]] > [[WordPress:Administration_Panels#General|General]]:
If you have already installed WordPress, and you want to rename the folder, login to the weblog as the administrator and change the following settings in [[WordPress:Administration_Panels#Options_-_Configuration_Settings|Options]] > [[WordPress:Administration_Panels#General|General]]:
如果你还没有安装WordPress,你想要给文件夹重新命名,以管理者身份登录到博客,将下面的设置改一下[[WordPress:Administration_Panels#Options_-_Configuration_Settings|选择]]                                            >
[[WordPress:Administration_Panels#General|一般的]]:


* WordPress address (URI):
* WordPress address (URI):
* Blog address (URI):
* Blog address (URI):
*WordPress地址(URI):
*博客地址(URI):


Once you have done this, you can rename the directory or folder with the WordPress files in it.  
Once you have done this, you can rename the directory or folder with the WordPress files in it.  
你一旦完成了这一步,你就可以为拥有WordPress文件的目录或者文件夹重新命名了。


See also:
See also:
* [[WordPress:Moving WordPress|Moving Wordpress]]
也看看:
* [[WordPress:Moving WordPress|移动Wordpress]]


===How can I reset my password?===
===我怎样重新设置我的密码?===
See also:
See also:
也看看:
* [[WordPress:Resetting Your Password]] and http://www.tamba2.org.uk/wordpress/phpmyadmin
* [[WordPress:Resetting Your Password]] and http://www.tamba2.org.uk/wordpress/phpmyadmin
*    [[WordPress:Resetting Your Password|重新设置你的密码]] 和http://www.tamba2.org.uk/wordpress/phpmyadmin


===Why is my upload directory "C:apachehtdocswordpress"?===
===为什么我上载的目录是 "C:apachehtdocswordpress"?===
When you specified the upload path, you used backslashes.
When you specified the upload path, you used backslashes.


Use forward slashes "/" to specify the path to the directory.
Use forward slashes "/" to specify the path to the directory.
当你指定上载的路线时,你使用反斜线符号。使用顺斜线“?”来指定到目录的路线。


===Can I install WordPress on Windows 2000?===
=== 我能在 Windows 2000上安装WordPress吗?===
Do '''NOT''' use [[WordPress:Glossary#MySQL|MySQL database]] version 4.1.7 if you are trying to get WordPress installed using a Windows platform. Read this post originally made to the forums:
Do '''NOT''' use [[WordPress:Glossary#MySQL|MySQL database]] version 4.1.7 if you are trying to get WordPress installed using a Windows platform. Read this post originally made to the forums:
<blockquote>
<blockquote>
如果你使用一个Windows平台来安装WordPress,“不要”使用[[WordPress:Glossary#MySQL|MySQL database|MySQL数据库]]4.1.7版本。阅读一下这个原先为论坛所写的文章:
"To all those having problems installing Wordpress on your own Windows 2000 (and other Win OS versions) workstation - and maybe some host servers, too: Do not use MySQL 4.1.7 - it is the problem if you get "Error establishing a database connection!". It does not seem compatible with the other components. Use MYSQL 4.0.22 instead.<br /><br />
"To all those having problems installing Wordpress on your own Windows 2000 (and other Win OS versions) workstation - and maybe some host servers, too: Do not use MySQL 4.1.7 - it is the problem if you get "Error establishing a database connection!". It does not seem compatible with the other components. Use MYSQL 4.0.22 instead.<br /><br />
“对于那些在你的Windows2000(或者其它的Win OS 版本)工作台-也许也有一些主机服务器上安装WordPress有困难的人:不要使用MySQL4.1.7-如果你收到“错误建立了一个数据库连接!”,这正是问题所在。它似乎与其它的组成成分不兼容。使用MYSQL4.0.22作为代替。,<br/><br/>
Thanks to the Reply by ADAMANT in response to the POST of Nov 6, 2004 02:21:29 by ANTOINE, the Wordpress installation really did become only 5 minutes, after two days of frustration:
Thanks to the Reply by ADAMANT in response to the POST of Nov 6, 2004 02:21:29 by ANTOINE, the Wordpress installation really did become only 5 minutes, after two days of frustration:
<br /><br />
< br /><br />
多亏了ADAMANT响应并回复了ANTOINE在2004年11月6日02时21分29秒发的文章,在经历了两天的挫败后,WordPress安装的确变成了5分钟:
< br /><br />
 
I started with Windows 2000, PHP 4.3.9, Apache 1.3.33 and MySQL 4.1.7. I spent two days checking my wp-config.php literally 100 times; making changes; troubleshooting my database, using every known name for my host (localhost, 127.0.0.1, <IP address>, computer name, etc...) to no avail. I kept getting:<br /><br />
I started with Windows 2000, PHP 4.3.9, Apache 1.3.33 and MySQL 4.1.7. I spent two days checking my wp-config.php literally 100 times; making changes; troubleshooting my database, using every known name for my host (localhost, 127.0.0.1, <IP address>, computer name, etc...) to no avail. I kept getting:<br /><br />
"Error establishing a database connection!" ...
"Error establishing a database connection!" ...
<br /><br />
<br /><br />
我从Windows2000,PHP4.3.9,Apache1.3.33和MySQL4.1.7开始.我花了两天逐字地检查了100遍我的wp-config.php;做一些改变;发现并修理我的数据库故障.为我的主机使用每一个已知的名字.(本地主机,127.0.0.1,<IP地址>,计算机名,等等…)完全无用.我还是得到: <br /><br />
“错误建立一个数据库连接!”…
<br /><br />
I knew it wasn't my config. So thanks to ADAMANT's suggestion, I uninstalled MySQL 4.1.7 and downloaded and installed MySQL 4.0.22 from mysql.org. After installing and configuring the new (old) MySQL, which took approximately 7 minutes (very easy), I ran the install.php once again and YES!! it actually took less than 5 minutes for the Wordpress install.<br /><br />
I knew it wasn't my config. So thanks to ADAMANT's suggestion, I uninstalled MySQL 4.1.7 and downloaded and installed MySQL 4.0.22 from mysql.org. After installing and configuring the new (old) MySQL, which took approximately 7 minutes (very easy), I ran the install.php once again and YES!! it actually took less than 5 minutes for the Wordpress install.<br /><br />
我知道它不是我的配置.因此感谢ADAMANT的建议,我卸载了MySQL4.1.7并且从mysql.org上下载和安装了MySQL4.0.22.在安装和配置了新的(旧的)MySQL之后,这个过程花了大约7分钟(非常简单),我再次运行了install.php并且成功了!!!WordPress安装的确发了不到5分钟的时间. <br /><br />
NOTE: the Apache web site says NOT to use Apache 2 in production. So, after all my wasted time with the latest MySQL, I suggest the following to those who can control their environment:<br /><br />
NOTE: the Apache web site says NOT to use Apache 2 in production. So, after all my wasted time with the latest MySQL, I suggest the following to those who can control their environment:<br /><br />
PHP 4.3.9, Apache 1.3.33 and MySQL 4.0.22. On Windows at least, they all work well together."
PHP 4.3.9, Apache 1.3.33 and MySQL 4.0.22. On Windows at least, they all work well together."
<br /><br />Steven</blockquote>
<br /><br />Steven</blockquote>
注: Apache网站拒绝使用生产的Apache2. 因此,在我将时间浪费在MySQL上后,我对那些自己能控制自己环境的人,提出以下的建议: <br /><br />
Windows上至少有PHP4.3.9,Apache1.3.33和MySQL4.0.22, 它们一起运转的很好.”
<br /><br />Steven</blockquote>
'''UPDATE''': MySQL 4.1.7 uses a new password encryption system that is incompatible with prior methods.  If you want to get WordPress working with a 4.1.7 database, you need to make sure your user password is set as an old-style password (password-old instead of password, if you're using mysqladmin).  – Nabil
“更新”:MySQL使用一种新的密码加密系统,与以往的方法不相调和.如果你想让WordPress与4.1.7数据库合作,你要确定你的用户密码是以一个旧形式密码设定的(如果你使用mysqladmin,旧密码而不是新密码).—Nabil


'''UPDATE''': MySQL 4.1.7 uses a new password encryption system that is incompatible with prior methods.  If you want to get WordPress working with a 4.1.7 database, you need to make sure your user password is set as an old-style password (password-old instead of password, if you're using mysqladmin).  -- Nabil


'''ADDITIONAL''': As stated above by Nabil, you can force Post 4.1.7 MySQL systems to use the old password lengths. From the MySQL command line interface, as a user that can manipulate the mysql tables (most likely root):
'''ADDITIONAL''': As stated above by Nabil, you can force Post 4.1.7 MySQL systems to use the old password lengths. From the MySQL command line interface, as a user that can manipulate the mysql tables (most likely root):
“附加”:如上述Nabil所说的,你可以强迫Post4.1.7MySQL系统使用旧的密码长度.从MySQL命令行界面,用户可以操作mysql表(最有可能是根):


  USE mysql;
  USE mysql;
使用mysql;
  SET PASSWORD FOR 'wordpressuser'@'localhost' = OLD_PASSWORD('somePassword444');
  SET PASSWORD FOR 'wordpressuser'@'localhost' = OLD_PASSWORD('somePassword444');
  FLUSH PRIVILEGES;
  FLUSH PRIVILEGES;
为’wordpressuser@localhost’=OLD_PASSWARD设置密码(‘ somePassward444’);
FLUSH PRIVILEGES;


As the normal password methods will result in the new style password function being used. Another hack would be to run the mysql service with --old-passwords, but I've seen the above password method work under 4.1.19 and 4.1.20 on an XP install - Grey
As the normal password methods will result in the new style password function being used. Another hack would be to run the mysql service with --old-passwords, but I've seen the above password method work under 4.1.19 and 4.1.20 on an XP install - Grey
因为正常的密码的使用方法,会导致新型的密码功能的使用.另一个改进是用老式的密码来运行mysql服务,但是我看到了以上的密码在一个XP安装下,在4.1.19和4.1.20上运行-
Grey


'''Note:''' The above are actual user comments, and may be subjective in their content. It is hoped that it will be of help to some users who face the specific problems that are addressed by this question.
'''Note:''' The above are actual user comments, and may be subjective in their content. It is hoped that it will be of help to some users who face the specific problems that are addressed by this question.
“注:”以上的确是用户们的评论,内容可能有点主观.希望这对一些遇到了一些像这个问题所提及的,同样的特别问题的用户有所帮助.


==Advanced Installation==


===How do I install WordPress with the files in different directories?===
==高级安装==
 
===我怎样安装文件在不同目录的WordPress?===
This also answers the questions:
This also answers the questions:
这也回答了这些问题:


*How can I have my blog in one folder but my index at root?
*How can I have my blog in one folder but my index at root?
*我怎样使我的博客放到一个文件夹但是我的索引在根?
*How can I have people see my blog at www.example.com but keep all the files in <nowiki>www.example.com/wordpress</nowiki>?
*How can I have people see my blog at www.example.com but keep all the files in <nowiki>www.example.com/wordpress</nowiki>?
*我怎样使人们在www.example.com上看我的博客但是将所有的文件保存在<nowiki>www.example.com/wordpress</nowiki>?
*How do I install WordPress in a different directory than where the index.php resides?
*How do I install WordPress in a different directory than where the index.php resides?
*我怎样将WordPress安装在不同的目录上而不仅仅是index.php所在地?


See also:
See also:
也看看:
* [[WordPress:Giving_WordPress_Its_Own_Directory|Giving WordPress Its Own Directory]]
* [[WordPress:Giving_WordPress_Its_Own_Directory|Giving WordPress Its Own Directory]]
* [[WordPress:Moving WordPress]]
* [[WordPress:Giving_WordPress_Its_Own_Directory|给WordPress 属于它自己的目录]]
 
* [[WordPress:Moving WordPress|移动WordPress]]


===How can I hide my blog from people?===
===我怎样将博客在人们面前隐藏起来?===
Whether you are testing a new version of WordPress, setting up a new blog or have some other reason to limit access, the following information may help you keep unwanted visitors out.
Whether you are testing a new version of WordPress, setting up a new blog or have some other reason to limit access, the following information may help you keep unwanted visitors out.
不管你是正在测试一个新版本的WordPress,设置一个新的博客,还是因为一些其它的原因来限制权限,以下的信息可能会帮助你让不必要的游客离开。


'''Apache'''
'''Apache'''
'''Apache'''


There is no guaranteed way to do this. You can use the '''.htaccess''' file (which also contains your permalink code) to check for certain IP addresses and prevent them from viewing your site. This will only stop the IP address, not the person, so if they have access to an allowed IP address, they can get to your page. One tutorial for this is located at [http://www.clockwatchers.com/htaccess_intro.html  Clockwatchers.com]
There is no guaranteed way to do this. You can use the '''.htaccess''' file (which also contains your permalink code) to check for certain IP addresses and prevent them from viewing your site. This will only stop the IP address, not the person, so if they have access to an allowed IP address, they can get to your page. One tutorial for this is located at [http://www.clockwatchers.com/htaccess_intro.html  Clockwatchers.com]
没有保证的方式做到这一点。你可以使用'''.htaccess'''文件(这个文件也包含了你的permalink代码)来核实一些特别的IP地址,阻止它们访问你的站点。这个只能阻止IP地址,而不是阻止人,因此如果他们能使用一个允许的IP地址,他们可以到达你的网页。一个关于这个的指南位于[http://www.clockwatchers.com/htaccess_intro.html  Clockwatchers.com]


An '''.htaccess''' file can also be used to prevent others from "hot-linking" to your images (bandwidth theft) or to set up a password protected blog.
An '''.htaccess''' file can also be used to prevent others from "hot-linking" to your images (bandwidth theft) or to set up a password protected blog.
一个'''.htaccess'''文件可以用来阻止他人从“热点链接”到达你的图像(带宽盗窃)或者设置一个密码保护的博客。


'''Apache Basic Authentication'''
'''Apache Basic Authentication'''
'''Apache 基本证明'''


To require a password to access your site using '''.htaccess''' and '''.htpasswd''': [http://www.clockwatchers.com/htaccess_password.html  Clockwatchers.com .htpasswd].
To require a password to access your site using '''.htaccess''' and '''.htpasswd''': [http://www.clockwatchers.com/htaccess_password.html  Clockwatchers.com .htpasswd].
要求一个密码,使用你的站点,使用'''.htaccess''' 和 '''.htpasswd''':
http://www.clockwatchers.com/htaccess_password.html  Clockwatchers.com .htpasswd].


Tools that help you create the files necessary to password protect your site:  [http://www.clockwatchers.com/htaccess_tool.html  Clockwatchers.com .htaccess And .htpasswd Tools]
Tools that help you create the files necessary to password protect your site:  [http://www.clockwatchers.com/htaccess_tool.html  Clockwatchers.com .htaccess And .htpasswd Tools]
对于保护你的站点的密码是必不可少的文件,帮你创建这个文件的工具:[http://www.clockwatchers.com/htaccess_tool.html  Clockwatchers.com .htaccess And .htpasswd Tools]


''Note:'' When your site is accessed the password is encoded weakly using Base64 and can be easily intercepted and decoded.
''Note:'' When your site is accessed the password is encoded weakly using Base64 and can be easily intercepted and decoded.
“注:”当你的站点被访问,密码编码的非常弱,使用的是Base64,就能非常容易地被截取和破译。


'''Windows IIS Basic Authentication'''
'''Windows IIS Basic Authentication'''
'''Windows IIS 基本证明'''


To require a password if your site is hosted on IIS, you can deselect Allow Anonymous Access and select Basic Authentication. You'll also need to have a username with a password.
To require a password if your site is hosted on IIS, you can deselect Allow Anonymous Access and select Basic Authentication. You'll also need to have a username with a password.
如果你的站点是由IIS托管,需要一个密码,你可以取消选定 允许匿名访问 并且选定 基本证明。你也要有一个带密码的用户名。


''Note:'' When your site is accessed the password is encoded weakly using Base64 and can be easily intercepted and decoded.
''Note:'' When your site is accessed the password is encoded weakly using Base64 and can be easily intercepted and decoded.
“注:”当你的站点被访问,密码编码的非常弱,使用的是Base64,就能非常容易地被截取和破译。


See also:
See also:
也看看J
* [http://support.microsoft.com/default.aspx?scid=kb;en-us;310344  Microsoft Support - How To Configure IIS 5.0 Web Site Authentication]
* [http://support.microsoft.com/default.aspx?scid=kb;en-us;310344  Microsoft Support - How To Configure IIS 5.0 Web Site Authentication]
* [http://support.microsoft.com/default.aspx?scid=kb;en-us;310344  Microsoft Support – 怎样设置 IIS 5.0 站点证明]
* [http://support.microsoft.com/kb/299970/EN-US/  Microsoft Support - How To Use NTFS Security to Protect a Web Page]
* [http://support.microsoft.com/kb/299970/EN-US/  Microsoft Support - How To Use NTFS Security to Protect a Web Page]
* [http://support.microsoft.com/kb/299970/EN-US/  Microsoft Support – 怎样使用 NTFS 安全来保护一个网页]
* [http://support.microsoft.com/default.aspx?scid=kb;en-us;308160  Microsoft Support - HOW TO: Configure Internet Information Services Web Authentication]
* [http://support.microsoft.com/default.aspx?scid=kb;en-us;308160  Microsoft Support - HOW TO: Configure Internet Information Services Web Authentication]
[http://support.microsoft.com/default.aspx?scid=kb;en-us;308160  Microsoft Support – 怎样:配置网络信息服务网络证明]


'''Search Engines: Spiders and Bots'''
'''Search Engines: Spiders and Bots'''
''搜索引擎: Spiders and Bots'''


Search Engines will index your site and cache your content.  If you do not want this to happen, use a file called '''robots.txt'''. More details can be found at [http://www.searchengineworld.com/robots/robots_tutorial.htm  SearchEngineWorld.com]
Search Engines will index your site and cache your content.  If you do not want this to happen, use a file called '''robots.txt'''. More details can be found at [http://www.searchengineworld.com/robots/robots_tutorial.htm  SearchEngineWorld.com]
搜索引擎会将你的站点编入索引中并且隐藏你的内容。如果你不想让这个发生,使用一个称作'''robots.txt'''的文件。更多信息可以在[http://www.searchengineworld.com/robots/robots_tutorial.htm  SearchEngineWorld.com]中找到。


===How can I solve login problems?===
 
===我怎样解决登录问题?===
See also:
See also:
* [[WordPress:Login Trouble]]
也看看:
* [[WordPress:Login Trouble|登录问题]]
* [http://faq.wordpress.net/view.php?p=68 How I solve login problems after installation with version 1.2 ?]
* [http://faq.wordpress.net/view.php?p=68 How I solve login problems after installation with version 1.2 ?]
* [http://faq.wordpress.net/view.php?p=68 在安装了1.2版本之后,我怎样解决登录问题?]


==FTP==
==FTP==
===How do I FTP?===
===我怎样 FTP?===
See also:
See also:
* [[WordPress:Using FileZilla]] and [[WordPress:FTP Clients]]
也看看:
* [[WordPress:Using FileZilla|使用FileZilla]][[WordPress:FTP Clients|FTPClients]]


===How do I use Filezilla?===
===我怎样使用Filezilla?===
See also:
See also:
* [[WordPress:Using FileZilla]]
也看看:
* [[WordPress:Using FileZilla|使用FileZilla]]


===How do I upload the files and folders?===
===我怎样上载文件和文件夹?===
See also:
See also:
* [[WordPress:Uploading WordPress to a remote host]]
也看看:
* [[WordPress:Uploading WordPress to a remote host|将WordPress上载到一个远程主机]]


===How do I CHMOD files?===
===我怎样改变文件代码?===
See also:
See also:
* [[WordPress:Changing File Permissions]]
也看看:
* [[WordPress:Changing File Permissions|改变文件权限]]


==MySQL==
==MySQL==
===Do I really need MySQL?===
===我真的需要一个 MySQL?===
You certainly need the [[WordPress:Glossary#MySQL|MySQL]] database server to power your WordPress blog. In fact, WordPress only supports the [[WordPress:Glossary#MySQL|MySQL]] database server.  Listed are the PHP and MySQL requirements:
You certainly need the [[WordPress:Glossary#MySQL|MySQL]] database server to power your WordPress blog. In fact, WordPress only supports the [[WordPress:Glossary#MySQL|MySQL]] database server.  Listed are the PHP and MySQL requirements:
你当然需要一个[[WordPress:Glossary#MySQL|MySQL]]数据库服务器来为你的WordPress博客供以动力。事实上,WordPress只支持[[WordPress:Glossary#MySQL|MySQL]]数据库服务器。所列出的是PHP和MySQL要求:


{{Server requirements}}
{{Server requirements}}
{{服务器要求}}


===Can I use a database other than MySQL?===
===我能使用除了MySQL外,其它的一个数据库吗?===
Other databases are not supported at the moment.
Other databases are not supported at the moment.
目前不支持其它的数据库。


There are several other excellent database storage engines, such as PostgreSQL and SQLite that WordPress is interested in supporting in the future. Suppporting multiple databases is trickier than it sounds and is not under active development, although there are plenty of architectural discussions about the best approach to take.  Approaches for increasing the number of supported databases are discussed at [[WordPress:Using Alternative Databases]].  There is a PostgreSQL port of WordPress available called [http://wordpress-pg.sourceforge.net/ WordPress-Pg].
There are several other excellent database storage engines, such as PostgreSQL and SQLite that WordPress is interested in supporting in the future. Suppporting multiple databases is trickier than it sounds and is not under active development, although there are plenty of architectural discussions about the best approach to take.  Approaches for increasing the number of supported databases are discussed at [[WordPress:Using Alternative Databases]].  There is a PostgreSQL port of WordPress available called [http://wordpress-pg.sourceforge.net/ WordPress-Pg].
有几个其它的特别好的数据库存储引擎,像PostgreSQL和SQLite是WordPress在将来感兴趣于支持的。虽然关于采取最好的方法,有许多建筑上的讨论,使用多个数据库比它听起来麻烦,目前也不在积极地发展。关于增加支持的数据库的方法在[[WordPress:Using Alternative Databases|使用可选择的数据库]]上讨论.有一个WordPress的PostgreSQL端口,称作[http://wordpress-pg.sourceforge.net/ WordPress-Pg]
=== WordPress怎样使用MySQL?===
[[WordPress:Glossary#MySQL|MySQL]] is extremely fast. It is also the most widely available database server in the world. Open-source and free, [[WordPress:Glossary#MySQL|MySQL]] is supported by thousands of low-cost [[WordPress:Glossary#Linux|Linux]] (and Windows!) hosts, which means a very low barrier to entry for anyone wanting to start a WordPress (or database-driven) website. [http://www.mysql.com/documentation/ MySQL's documentation] is useful, cogent and thorough. (Note: it may be intimidating if you are new to all this.) Add to all that the fact that users are able to directly manipulate [[WordPress:Glossary#MySQL|MySQL]] with [[WordPress:phpMyAdmin]], developed expressly for that purpose, and it is obvious that [[WordPress:Glossary#MySQL|MySQL]] is the best choice. Of course, WordPress insists on the best。
[[WordPress:Glossary#MySQL|MySQL]] 非常地快.它也是世界上用的最广的数据库服务器.开放源码,并且是免费的, [[WordPress:Glossary#MySQL|MySQL]]由成千上万个低廉的[[WordPress:Glossary#Linux|Linux]] (和Windows!)主机支持,这意味着任何人开始一个WordPress站点(数据库驱动的),只会遇到很小的障碍物. [http://www.mysql.com/documentation/ MySQL's 文件]是有用的,使人信服而又彻底的.(注:如果你新接触这个,它也许令人胆怯.)加上,用户可以用[[WordPress:phpMyAdmin]]直接操作[[WordPress:Glossary#MySQL|MySQL]],就是为这个目的开发的,很明显, [[WordPress:Glossary#MySQL|MySQL]]是最好的选择.当然,WordPress坚决要求最好的.


===Why does WordPress use MySQL?===
[[WordPress:Glossary#MySQL|MySQL]] is extremely fast. It is also the most widely available database server in the world. Open-source and free, [[WordPress:Glossary#MySQL|MySQL]] is supported by thousands of low-cost [[WordPress:Glossary#Linux|Linux]] (and Windows!) hosts, which means a very low barrier to entry for anyone wanting to start a WordPress (or database-driven) website. [http://www.mysql.com/documentation/ MySQL's documentation] is useful, cogent and thorough. (Note: it may be intimidating if you are new to all this.) Add to all that the fact that users are able to directly manipulate [[WordPress:Glossary#MySQL|MySQL]] with [[WordPress:phpMyAdmin]], developed expressly for that purpose, and it is obvious that [[WordPress:Glossary#MySQL|MySQL]] is the best choice. Of course, WordPress insists on the best.


== PHP ==
== PHP ==
===What is phpMyAdmin?===
===什么是 phpMyAdmin?===
phpMyAdmin is a tool written in PHP intended to handle the administration of MySQL over the Web.  
phpMyAdmin is a tool written in PHP intended to handle the administration of MySQL over the Web.  
phpMyAdmin是用PHP编写的一个工具,目的是处理MySQL在网络上的管理.


See also:
See also:
* [[WordPress:phpMyAdmin]]
也看看:
* [[WordPress:phpMyAdmin|phpMyAdmin]]


===Do I need to know PHP to use WordPress ?===
===我需要知道PHP来使用WordPress吗?===
No. The only time you would modify your WordPress blog with [[WordPress:Glossary#PHP|PHP]] would be when integrating some of the [[WordPress:Plugins|plugins]]. In most cases clear instructions are given within a text file that accompanies the [[WordPress:Plugins|plugin]]. Other than that, you would not be changing any of the PHP files.  
No. The only time you would modify your WordPress blog with [[WordPress:Glossary#PHP|PHP]] would be when integrating some of the [[WordPress:Plugins|plugins]]. In most cases clear instructions are given within a text file that accompanies the [[WordPress:Plugins|plugin]]. Other than that, you would not be changing any of the PHP files.  
不需要.你唯一一次需要用[[WordPress:Glossary#PHP|PHP]]来修改你的WordPress博客的时候,是结合一些[[WordPress:Plugins|插件]]的时候.在大多数情况下,伴随着[[WordPress:Plugins|插件]]的文本文件中有着明确的说明.除了这一点,你就不会改变任何的PHP文件.


See also:
See also:
也看看:
* [http://faq.wordpress.net/view.php?p=31 Do I need to know PHP to use WordPress?]
* [http://faq.wordpress.net/view.php?p=31 Do I need to know PHP to use WordPress?]
* [http://faq.wordpress.net/view.php?p=31 我需要知道 PHP 来使用WordPress吗?]


===Will Wordpress run in PHP Safe Mode?===
 
=== Wordpress会在 PHP 安全模式下运行吗?===
Most definitely! There are no known issues with any version of WordPress when [[WordPress:Glossary#PHP|PHP]] is running in Safe Mode.
Most definitely! There are no known issues with any version of WordPress when [[WordPress:Glossary#PHP|PHP]] is running in Safe Mode.
非常明确是的!当[[WordPress:Glossary#PHP|PHP]]在安全模式下运行时,任何版本的WordPress都没有任何已知的问题.


===Do I really need PHP?===
===我真的需要 PHP?===
You certainly need [[WordPress:Glossary#PHP|PHP]] (version 4.1 or newer) to power your WordPress blog. [[WordPress:Glossary#PHP|PHP]] is the scripting language that drives all of WordPress, and without [[WordPress:Glossary#PHP|PHP]], your server will not be able to interpret the pages that create your weblog.  
You certainly need [[WordPress:Glossary#PHP|PHP]] (version 4.1 or newer) to power your WordPress blog. [[WordPress:Glossary#PHP|PHP]] is the scripting language that drives all of WordPress, and without [[WordPress:Glossary#PHP|PHP]], your server will not be able to interpret the pages that create your weblog.  
你当然需要[[WordPress:Glossary#PHP|PHP]] (4.1版本或者更新的)来给你的WordPress博客供以动力. [[WordPress:Glossary#PHP|PHP]]是一种脚本语言,驱动所有的WordPress,没有[[WordPress:Glossary#PHP|PHP]],你的服务器就不能够解释那些创建你的博客的网页.


===How do I find out which version of PHP I have?===
===我怎样找出我使用的是哪一个 PHP 版本?===
To get information about your server, you can use the [http://php.net/phpinfo ''phpinfo()''] function.  This will also give you information about your [[WordPress:Glossary#Apache|Apache]] and [[WordPress:Glossary#PHP|PHP]] version and [[WordPress:Glossary#mod_rewrite| mod_rewrite]].
To get information about your server, you can use the [http://php.net/phpinfo ''phpinfo()''] function.  This will also give you information about your [[WordPress:Glossary#Apache|Apache]] and [[WordPress:Glossary#PHP|PHP]] version and [[WordPress:Glossary#PHP|PHP]]
 
寻求关于你的服务器的信息,你可以使用[http://php.net/phpinfo ''phpinfo()'']功能.这个也会给你提供关于你的[[WordPress:Glossary#Apache|Apache]]和[[WordPress:Glossary#PHP|PHP]]版本和[[WordPress:Glossary#PHP|PHP]]的信息.


See also:  
See also:  
* [[WordPress:Finding Server Info]]
也看看:
* [[WordPress:Finding Server Info|查找服务器信息]]


== Importing ==
== 导入 ==
===How can I import posts from my current weblog which uses a different blogging tool?===
===我怎样从我目前的博客中引入文章,它使用一个不同的博客工具?===
See also:
See also:
* [[WordPress:Importing Content]]
也看看:
* [[WordPress:Importing Content|导入的内容]]


===How do I import from b2?===
===我怎样从b2中引进?===
See also:
See also:
* [[WordPress:Importing_Content#b2|Importing from b2]]
也看看:
* [[WordPress:Importing_Content#b2|从b2中引进]]


===How do I import from Movable Type MT?===
===我怎样从 Movable Type MT中引进?===
See also:
See also:
* [[WordPress:Importing from Movable Type to WordPress]]
也看看:
* [[WordPress:Importing from Movable Type to WordPress|从Movable Type中向WordPress引进]]


===How do I import from Blogger?===
===怎样从 Blogger中引进?===
See also:
See also:
* [[WordPress:Importing_Content#Blogger|Importing from Blogger]]
也看看:
* [[WordPress:Importing_Content#Blogger|从Blogger中引进]]


===How do I import from Text Pattern?===
===怎样从Text Pattern中引进?===
See also:
See also:
* [[WordPress:Importing_Content#Textpattern|Importing from Text Pattern]]
也看看:
* [[WordPress:Importing_Content#Textpattern|从Text Pattern中引进]]


===How do I import from a generic RSS Feed?===
===怎样从一个普通的 RSS Feed中引进?===
See also:
See also:
* [[WordPress:Importing_Content#Importing_from_an_RSS_feed|Importing from an RSS feed]]
也看看
* [[WordPress:Importing_Content#Importing_from_an_RSS_feed|从一个RSS feed中引进]]


===How do I import from other blogging software?===
===怎样从其它的博客软件中引进?===
See also:
See also:
* [[WordPress:Importing Content]]
也看看:
* [[WordPress:Importing Content|引进的内容]]


==Upgrading==
==升级==


===What version of WordPress do I have?===
===我拥有的WordPress 是什么版本?===


There are several methods to find out what version of WordPress you are using:
There are several methods to find out what version of WordPress you are using:
有几种方法可以让你明白你正在使用什么版本的WordPress:


* In your <tt>wp-includes</tt> folder of your WordPress installation, open the <tt>version.php</tt> file with any [[WordPress:Glossary#Text editor|text editor]]. It will tell you the version number of your installation.
* In your <tt>wp-includes</tt> folder of your WordPress installation, open the <tt>version.php</tt> file with any [[WordPress:Glossary#Text editor|text editor]]. It will tell you the version number of your installation.
*在你的WordPress安装的<tt>wp-includes</tt>文件夹中,用任何的文字编辑器打开<tt>version.php</tt>文件.它会告诉你,你安装的版本数字.
* In the WordPress [[WordPress:Administration Panels]], on any panel look at the bottom of the screen and the version number will be visible.
* In the WordPress [[WordPress:Administration Panels]], on any panel look at the bottom of the screen and the version number will be visible.
*在WordPress的[[WordPress:Administration Panels|管理面板]]上,在屏幕底部的任何面板图标上,会有版本数字.
* Some Themes include the version number in the footer template. Or you can add it yourself:
* Some Themes include the version number in the footer template. Or you can add it yourself:
*有一些主题在页脚模板上有版本数字.
或者你自己可以添加:


<pre><?php bloginfo('version'); ?></pre>
<pre><?php bloginfo('version'); ?></pre>
<pre><?php bloginfo('version'); ?></pre>


===What should I do when I want to upgrade WordPress to the latest version?===
 
===当我向将WordPress升级为最新的版本的时候,我应该怎样做?===


See also:
See also:
* [[WordPress:Upgrading WordPress]]
也看看:
* [[WordPress:Upgrading WordPress|升级WordPress]]


===How do I back up my database?===
===我怎样支持我的数据库?===
See also:
See also:
* [[WordPress:Backing Up Your Database]]
也看看:
* [[WordPress:Backing Up Your Database|支持你的数据库]]


===How do I restore my database?===
===我怎样恢复我的数据库?===
See also:
See also:
* [[WordPress:Restoring Your Database From Backup]]
也看看:
* [[WordPress:Restoring Your Database From Backup|从文件备份中恢复你的数据库]]


===After running upgrade.php get the message "It doesn't look like you've installed WP yet. Try running install.php."===
===在运行了 upgrade.php后,得到了消息 "看起来你还没有安装 WP. 试着运行 install.php."===
After running the [[WordPress:Upgrading WordPress|WordPress Upgrade]], and clicking on the "Have fun . ." link, it says, "It doesn't look like you've installed WP yet. Try running install.php."  The problem may be that there is not a user with [[WordPress:Roles_and_Capabilities#Administrator|administrative capabilities]].   
After running the [[WordPress:Upgrading WordPress|WordPress Upgrade]], and clicking on the "Have fun . ." link, it says, "It doesn't look like you've installed WP yet. Try running install.php."  The problem may be that there is not a user with [[WordPress:Roles_and_Capabilities#Administrator|administrative capabilities]].   
在运行了[[WordPress:Upgrading WordPress|WordPress 升级],点击一下"玩的开心 . ."链接,它显示"看起来你还没有安装WP. 试着运行 install.php."问题可能在于还没有一个用户有[[WordPress:Roles_and_Capabilities#Administrator|管理能力]].


To fix that, use [[WordPress:phpMyAdmin]] to manually give a user those capabilities:  
To fix that, use [[WordPress:phpMyAdmin]] to manually give a user those capabilities:  
解决这个问题,使用[[WordPress:phpMyAdmin|phpMyAdmin]]动手给一个用户这些能力:
# First find the ''ID'' of the user you want to make administrator by looking in the [[WordPress:Database_Description#Table:_wp_user|wp_user table]].   
# First find the ''ID'' of the user you want to make administrator by looking in the [[WordPress:Database_Description#Table:_wp_user|wp_user table]].   
#In the [[WordPress:Database_Description#Table:_wp_usermeta|wp_usermeta table]], for that ''ID'', find the related ''user_id'', and where the ''meta_key'' is ''wp_capabilites'', change the ''meta_value'' to '''a:1:{s:13:"administrator";b:1;}'''.
#在[[WordPress:Database_Description#Table:_wp_user|wp用户列表]]中找到一个用户的''ID'',你想要这个用户成为管理员.
#In that same table, for that ''user_id'', where the ''meta_key'' is ''wp_user_level'', change the ''meta_value'' to a '''10'''.   
#In the [[WordPress:Database_Description#Table:_wp_usermeta|wp_usermeta table]], for that ''ID'', find the related ''user_id'', and where the ''meta_key'' is ''wp_capabilites'', change the ''meta_value'' to '''a:1:{s:13:"administrator";b:1;}'''.
 
在[[WordPress:Database_Description#Table:_wp_usermeta|wp_用户meta 列表]],找到相关的''user_id'',在''meta_key'' 是''wp_capabilites''的位置,将''meta_value'' 改为 '''a:1:{s:13:"administrator";b:1;}'''.
 
#In that same table, for that ''user_id'', where the ''meta_key'' is ''meta_key'' change the ''meta_value'' to a '''10'''.   
#在同一个列表上,对于那个user_id,在''meta_key''是''meta_key''的位置,将''meta_value''改为'''10'''.


Please note that the prefix on those tables and those two meta_keys utilize your database prefix.  So if your database prefix is '''mywp_''' then the two tables will be '''mywp_user''' and '''mywp_usermeta''' and the the two meta_keys will be '''mywp_capabilities''' and '''mywp_user_level'''.
Please note that the prefix on those tables and those two meta_keys utilize your database prefix.  So if your database prefix is '''mywp_''' then the two tables will be '''mywp_user''' and '''mywp_usermeta''' and the the two meta_keys will be '''mywp_capabilities''' and '''mywp_user_level'''.
请注意这些列表中的前缀,而且这两个meta_keys使用了你的数据库的前缀.因此如果你的数据库前缀是'''mywp_'''_,两个列表就是'''mywp_user'''和'''mywp_usermeta''',两个meta_keys就是'''mywp_capabilities'''和'''mywp_user_level''.


See also:
See also:
也看看:
*[http://wordpress.org/support/topic/62694?replies=20 WordPress Support Forum Thread from March 2006]
*[http://wordpress.org/support/topic/62694?replies=20 WordPress Support Forum Thread from March 2006]
*[http://wordpress.org/support/topic/62694?replies=20 WordPress 从2006年3月的支持论坛主题]


===How do you force a database upgrade?===
===你怎样迫使一个数据库升级?===


Under certain situations, it may be necessary to cause a database to pass through the upgrade process again.  To do that, you need to lower the '''db_version''' value in the wp_options table that corresponds to the version you want to upgrade '''from'''.  For instance, if you want to force the datebase upgrade that happens from 2.0.11 to 2.3 you would change your '''db_version''' to '''3441'''.  To force an upgrade from 2.2, 2.2.1, 2.2.2, or 2.2.3 to 2.3 or 2.3.1, change that value to '''5183'''.
Under certain situations, it may be necessary to cause a database to pass through the upgrade process again.  To do that, you need to lower the '''db_version''' value in the wp_options table that corresponds to the version you want to upgrade '''from'''.  For instance, if you want to force the datebase upgrade that happens from 2.0.11 to 2.3 you would change your '''db_version''' to '''3441'''.  To force an upgrade from 2.2, 2.2.1, 2.2.2, or 2.2.3 to 2.3 or 2.3.1, change that value to '''5183'''.
在一些特定情况下,可能有必要促进一个数据库再次经历一次升级过程.那样做,你需要在wp_options表中,降低'''db_version'''的数值,使它与你想要'''从'''哪里升级的版本相符合.比如,如果你想要促使数据库升级从2.0.11开始到2.3,你要将你的'''db_version'''改为'''3441'''.
促使一次升级从2.2,2.2.1,或者2.3或者2.3.1开始,将数值改为'''5183'''.


<pre>
<pre>
<pre>
'''db_version''' for WordPress releases:
'''db_version''' for WordPress releases:
WordPress发行的'''db_version'''


2.3.2  = 6124
2.3.2  = 6124
第313行: 第489行:
</pre>
</pre>


Note: Use [[WordPress:phpMyAdmin]] to change that value, or use ''wp-admin/options.php''.


Once the '''db_version''' is changed, when logging into your blog a link to upgrade the database will be offered.     
2.3.2  = 6124
2.3.1  = 6124
2.3    = 6124
2.2.3  = 5183
2.2.x  = 5183
2.2    = 5183
2.1.3  = 4773
2.1.x  = 4773
2.1    = 4772
2.0.11 = 3441
2.0.x  = 3441
2.0    = 3441
1.5.x  = 2541
1.x   = 2540
</pre>
 


Note: Use [[WordPress:phpMyAdmin]] to change that value, or use ''wp-admin/options.php''.
注:用[[WordPress:phpMyAdmin|phpMyAdmin]]来改变数值,或者使用''wp-admin/options.php''。


[[WordPress:FAQ|Back to FAQ]]
Once the '''db_version''' is changed, when logging into your blog a link to upgrade the database will be offered. 
一旦 '''db_version'''改变了,当登录到你的博客的时候,会提供一个链接来升级你的数据库。

2008年3月24日 (一) 13:30的版本

返回到常见问题解答

安装

我怎样安装 WordPress?

See also: 也看看:

什么是著名的5分钟安装?

See also: 也看看:

我怎样为我的 WordPress 博客找一个好的主机?

See also: 也看看:

我怎样安装使用CPanel / CPanel X?

See also: 也看看:

我怎样配置 'wp-config' 文件?

See also: 也看看:

安装 WordPress的必须条件是什么?

See also: 也看看:

我怎样使 WordPress 使用我的语言?

See also:

我需要创建一个数据库吗?

WordPress requires access to a MySQL database database to store information. So you need a database. WordPress需要有权限进入一个MySQL 数据库数据库来储存信息。因此你需要一个数据库。

You can create a new database if: 你可以创建一个数据库如果:

  1. You have not already created one on the server
  2. 你还没有在服务器上创建一个
  3. Your generous host offers you more than one database, and you

wish to have a separate database for the blog you are setting up.

  1. 你的慷慨的主机给你提供了不止一个的数据库,你希望为你设置的博客提供一个单独的数据库。

It is not essential to create a new database for each WordPress installation. 为每一个WordPress安装都创建一个新的数据库,并不重要。

  • If you are using the same database for multiple WordPress installations, take care to edit the wp-config.php file ensuring that each installation has a unique database prefix.
  • 如果你为多个WordPress安装使用同一个数据库,注意编辑wp-config.php|wp-config.php文件,确保每一个安装都有一个唯一的数据库前缀。
  • If you are setting up a new database for a new blog, edit wp-config.php, and be sure to get the database name, and other details correct.
  • 如果你为一个新的博客,设置一个新的数据库,编辑wp-config.php|wp-config.php,确保数据库名和其它的详细信息都是正确的。

See also: 也看看:

当我试着看我的站点的时候,我遇到的403错误是什么?

Symptoms: You cannot seem to login after using the right username and password, into your admin account. You get an error message like: “征兆”在你的管理帐户上输入了正确的用户名和密码后,你似乎还不能登录。你得到了一个错误的消息像:

 You are not authorized to view this page
You might not have permission to view this
directory or page using the credentials you 
 supplied. If you believe you should be able 
 to view this directory or page, please try 
 to contact the Web site by using any e-mail 
 address or phone number that may be listed 
 on the personal.fredsmith.com home page. 
 You can click Search to look for information
 on the Internet. HTTP Error 403 - Forbidden''
你没有被授权访问这个页面。你也许没有权限来访问
这个目录或者页面,使用你提供的信任状。
如果你相信你能够访问这个目录或者页面,请使用在personal.fredsmith.com主页上罗列的任何一个邮箱地址或者电话号码,与网络站点联系。你可以点击搜索在Internet.HTTP Error403-Forbidden”

上查找更多的信息。


Solution: If your account is hosted on a Windows server, it could be a problem with the Directory Indexes. The default configuration of the server is to load index.htm, index.html, default.htm, default.html, default.asp files. “解决办法:”如果你的帐户由一个Windows服务器托管,这可能是一个有关目录索引的问题。服务器默认的配置是加载index.htm, index.html, default.htm, default.html, default.asp文件。

Wordpress is done in PHP so the default page is index.php. Now, this is not part of the default configuration so we need to add it. To do this, you need to click on Web Options in the Control Panel. Then scroll down to the Directory Indexes section to add index.php to the Directory Indexes. WordPress是在PHP中完成的因此默认的页面是index.php。这不是默认配置的一部分因此我们要添加它。 这样做,你就要在“控制面板”中点击“网络选择”。然后下滚到“目录索引”部分将index.php添加到“目录索引”

If necessary, contact your web host for support in this matter. 如果需要的话,与你的网络主机联系,寻求这个问题方面的支持。

我能给WordPress文件夹重新命名吗?

If you have not already installed WordPress, you can rename the folder with the WordPress files, before, or even after uploading the files. 如果你还没有安装WordPress,你可以在上载文件前,甚至于上载文件后,给WordPress文件重新命名。

If you have already installed WordPress, and you want to rename the folder, login to the weblog as the administrator and change the following settings in Options > General: 如果你还没有安装WordPress,你想要给文件夹重新命名,以管理者身份登录到博客,将下面的设置改一下选择 >

一般的:


  • WordPress address (URI):
  • Blog address (URI):
  • WordPress地址(URI):
  • 博客地址(URI):

Once you have done this, you can rename the directory or folder with the WordPress files in it. 你一旦完成了这一步,你就可以为拥有WordPress文件的目录或者文件夹重新命名了。

See also: 也看看:

我怎样重新设置我的密码?

See also: 也看看:


为什么我上载的目录是 "C:apachehtdocswordpress"?

When you specified the upload path, you used backslashes.

Use forward slashes "/" to specify the path to the directory. 当你指定上载的路线时,你使用反斜线符号。使用顺斜线“?”来指定到目录的路线。

我能在 Windows 2000上安装WordPress吗?

Do NOT use MySQL database version 4.1.7 if you are trying to get WordPress installed using a Windows platform. Read this post originally made to the forums:

如果你使用一个Windows平台来安装WordPress,“不要”使用MySQL database|MySQL数据库4.1.7版本。阅读一下这个原先为论坛所写的文章: "To all those having problems installing Wordpress on your own Windows 2000 (and other Win OS versions) workstation - and maybe some host servers, too: Do not use MySQL 4.1.7 - it is the problem if you get "Error establishing a database connection!". It does not seem compatible with the other components. Use MYSQL 4.0.22 instead.

“对于那些在你的Windows2000(或者其它的Win OS 版本)工作台-也许也有一些主机服务器上安装WordPress有困难的人:不要使用MySQL4.1.7-如果你收到“错误建立了一个数据库连接!”,这正是问题所在。它似乎与其它的组成成分不兼容。使用MYSQL4.0.22作为代替。,

Thanks to the Reply by ADAMANT in response to the POST of Nov 6, 2004 02:21:29 by ANTOINE, the Wordpress installation really did become only 5 minutes, after two days of frustration: < br />
多亏了ADAMANT响应并回复了ANTOINE在2004年11月6日02时21分29秒发的文章,在经历了两天的挫败后,WordPress安装的确变成了5分钟: < br />

I started with Windows 2000, PHP 4.3.9, Apache 1.3.33 and MySQL 4.1.7. I spent two days checking my wp-config.php literally 100 times; making changes; troubleshooting my database, using every known name for my host (localhost, 127.0.0.1, <IP address>, computer name, etc...) to no avail. I kept getting:

"Error establishing a database connection!" ...

我从Windows2000,PHP4.3.9,Apache1.3.33和MySQL4.1.7开始.我花了两天逐字地检查了100遍我的wp-config.php;做一些改变;发现并修理我的数据库故障.为我的主机使用每一个已知的名字.(本地主机,127.0.0.1,<IP地址>,计算机名,等等…)完全无用.我还是得到:

“错误建立一个数据库连接!”…


I knew it wasn't my config. So thanks to ADAMANT's suggestion, I uninstalled MySQL 4.1.7 and downloaded and installed MySQL 4.0.22 from mysql.org. After installing and configuring the new (old) MySQL, which took approximately 7 minutes (very easy), I ran the install.php once again and YES!! it actually took less than 5 minutes for the Wordpress install.

我知道它不是我的配置.因此感谢ADAMANT的建议,我卸载了MySQL4.1.7并且从mysql.org上下载和安装了MySQL4.0.22.在安装和配置了新的(旧的)MySQL之后,这个过程花了大约7分钟(非常简单),我再次运行了install.php并且成功了!!!WordPress安装的确发了不到5分钟的时间.


NOTE: the Apache web site says NOT to use Apache 2 in production. So, after all my wasted time with the latest MySQL, I suggest the following to those who can control their environment:

PHP 4.3.9, Apache 1.3.33 and MySQL 4.0.22. On Windows at least, they all work well together."



Steven

注: Apache网站拒绝使用生产的Apache2. 因此,在我将时间浪费在MySQL上后,我对那些自己能控制自己环境的人,提出以下的建议:

Windows上至少有PHP4.3.9,Apache1.3.33和MySQL4.0.22, 它们一起运转的很好.”



Steven


UPDATE: MySQL 4.1.7 uses a new password encryption system that is incompatible with prior methods. If you want to get WordPress working with a 4.1.7 database, you need to make sure your user password is set as an old-style password (password-old instead of password, if you're using mysqladmin). – Nabil “更新”:MySQL使用一种新的密码加密系统,与以往的方法不相调和.如果你想让WordPress与4.1.7数据库合作,你要确定你的用户密码是以一个旧形式密码设定的(如果你使用mysqladmin,旧密码而不是新密码).—Nabil


ADDITIONAL: As stated above by Nabil, you can force Post 4.1.7 MySQL systems to use the old password lengths. From the MySQL command line interface, as a user that can manipulate the mysql tables (most likely root): “附加”:如上述Nabil所说的,你可以强迫Post4.1.7MySQL系统使用旧的密码长度.从MySQL命令行界面,用户可以操作mysql表(最有可能是根):


USE mysql;

使用mysql;

SET PASSWORD FOR 'wordpressuser'@'localhost' = OLD_PASSWORD('somePassword444');
FLUSH PRIVILEGES;

为’wordpressuser@localhost’=OLD_PASSWARD设置密码(‘ somePassward444’); FLUSH PRIVILEGES;

As the normal password methods will result in the new style password function being used. Another hack would be to run the mysql service with --old-passwords, but I've seen the above password method work under 4.1.19 and 4.1.20 on an XP install - Grey 因为正常的密码的使用方法,会导致新型的密码功能的使用.另一个改进是用老式的密码来运行mysql服务,但是我看到了以上的密码在一个XP安装下,在4.1.19和4.1.20上运行- Grey

Note: The above are actual user comments, and may be subjective in their content. It is hoped that it will be of help to some users who face the specific problems that are addressed by this question. “注:”以上的确是用户们的评论,内容可能有点主观.希望这对一些遇到了一些像这个问题所提及的,同样的特别问题的用户有所帮助.


高级安装

我怎样安装文件在不同目录的WordPress?

This also answers the questions: 这也回答了这些问题:


  • How can I have my blog in one folder but my index at root?
  • 我怎样使我的博客放到一个文件夹但是我的索引在根?
  • How can I have people see my blog at www.example.com but keep all the files in www.example.com/wordpress?
  • 我怎样使人们在www.example.com上看我的博客但是将所有的文件保存在www.example.com/wordpress?
  • How do I install WordPress in a different directory than where the index.php resides?
  • 我怎样将WordPress安装在不同的目录上而不仅仅是index.php所在地?

See also: 也看看:

我怎样将博客在人们面前隐藏起来?

Whether you are testing a new version of WordPress, setting up a new blog or have some other reason to limit access, the following information may help you keep unwanted visitors out. 不管你是正在测试一个新版本的WordPress,设置一个新的博客,还是因为一些其它的原因来限制权限,以下的信息可能会帮助你让不必要的游客离开。

Apache Apache


There is no guaranteed way to do this. You can use the .htaccess file (which also contains your permalink code) to check for certain IP addresses and prevent them from viewing your site. This will only stop the IP address, not the person, so if they have access to an allowed IP address, they can get to your page. One tutorial for this is located at Clockwatchers.com 没有保证的方式做到这一点。你可以使用.htaccess文件(这个文件也包含了你的permalink代码)来核实一些特别的IP地址,阻止它们访问你的站点。这个只能阻止IP地址,而不是阻止人,因此如果他们能使用一个允许的IP地址,他们可以到达你的网页。一个关于这个的指南位于Clockwatchers.com


An .htaccess file can also be used to prevent others from "hot-linking" to your images (bandwidth theft) or to set up a password protected blog. 一个.htaccess文件可以用来阻止他人从“热点链接”到达你的图像(带宽盗窃)或者设置一个密码保护的博客。


Apache Basic Authentication Apache 基本证明


To require a password to access your site using .htaccess and .htpasswd: Clockwatchers.com .htpasswd. 要求一个密码,使用你的站点,使用.htaccess.htpasswd: http://www.clockwatchers.com/htaccess_password.html Clockwatchers.com .htpasswd].


Tools that help you create the files necessary to password protect your site: Clockwatchers.com .htaccess And .htpasswd Tools 对于保护你的站点的密码是必不可少的文件,帮你创建这个文件的工具:Clockwatchers.com .htaccess And .htpasswd Tools


Note: When your site is accessed the password is encoded weakly using Base64 and can be easily intercepted and decoded. “注:”当你的站点被访问,密码编码的非常弱,使用的是Base64,就能非常容易地被截取和破译。


Windows IIS Basic Authentication Windows IIS 基本证明


To require a password if your site is hosted on IIS, you can deselect Allow Anonymous Access and select Basic Authentication. You'll also need to have a username with a password. 如果你的站点是由IIS托管,需要一个密码,你可以取消选定 允许匿名访问 并且选定 基本证明。你也要有一个带密码的用户名。


Note: When your site is accessed the password is encoded weakly using Base64 and can be easily intercepted and decoded. “注:”当你的站点被访问,密码编码的非常弱,使用的是Base64,就能非常容易地被截取和破译。


See also: 也看看J

Microsoft Support – 怎样:配置网络信息服务网络证明


Search Engines: Spiders and Bots 搜索引擎: Spiders and Bots'

Search Engines will index your site and cache your content. If you do not want this to happen, use a file called robots.txt. More details can be found at SearchEngineWorld.com 搜索引擎会将你的站点编入索引中并且隐藏你的内容。如果你不想让这个发生,使用一个称作robots.txt的文件。更多信息可以在SearchEngineWorld.com中找到。


我怎样解决登录问题?

See also: 也看看:


FTP

我怎样 FTP?

See also: 也看看:

我怎样使用Filezilla?

See also: 也看看:

我怎样上载文件和文件夹?

See also: 也看看:

我怎样改变文件代码?

See also: 也看看:

MySQL

我真的需要一个 MySQL?

You certainly need the MySQL database server to power your WordPress blog. In fact, WordPress only supports the MySQL database server. Listed are the PHP and MySQL requirements: 你当然需要一个MySQL数据库服务器来为你的WordPress博客供以动力。事实上,WordPress只支持MySQL数据库服务器。所列出的是PHP和MySQL要求:


模板:Server requirements 模板:服务器要求


我能使用除了MySQL外,其它的一个数据库吗?

Other databases are not supported at the moment. 目前不支持其它的数据库。

There are several other excellent database storage engines, such as PostgreSQL and SQLite that WordPress is interested in supporting in the future. Suppporting multiple databases is trickier than it sounds and is not under active development, although there are plenty of architectural discussions about the best approach to take. Approaches for increasing the number of supported databases are discussed at WordPress:Using Alternative Databases. There is a PostgreSQL port of WordPress available called WordPress-Pg. 有几个其它的特别好的数据库存储引擎,像PostgreSQL和SQLite是WordPress在将来感兴趣于支持的。虽然关于采取最好的方法,有许多建筑上的讨论,使用多个数据库比它听起来麻烦,目前也不在积极地发展。关于增加支持的数据库的方法在使用可选择的数据库上讨论.有一个WordPress的PostgreSQL端口,称作WordPress-Pg

WordPress怎样使用MySQL?

MySQL is extremely fast. It is also the most widely available database server in the world. Open-source and free, MySQL is supported by thousands of low-cost Linux (and Windows!) hosts, which means a very low barrier to entry for anyone wanting to start a WordPress (or database-driven) website. MySQL's documentation is useful, cogent and thorough. (Note: it may be intimidating if you are new to all this.) Add to all that the fact that users are able to directly manipulate MySQL with WordPress:phpMyAdmin, developed expressly for that purpose, and it is obvious that MySQL is the best choice. Of course, WordPress insists on the best。 MySQL 非常地快.它也是世界上用的最广的数据库服务器.开放源码,并且是免费的, MySQL由成千上万个低廉的Linux (和Windows!)主机支持,这意味着任何人开始一个WordPress站点(数据库驱动的),只会遇到很小的障碍物. MySQL's 文件是有用的,使人信服而又彻底的.(注:如果你新接触这个,它也许令人胆怯.)加上,用户可以用WordPress:phpMyAdmin直接操作MySQL,就是为这个目的开发的,很明显, MySQL是最好的选择.当然,WordPress坚决要求最好的.


PHP

什么是 phpMyAdmin?

phpMyAdmin is a tool written in PHP intended to handle the administration of MySQL over the Web. phpMyAdmin是用PHP编写的一个工具,目的是处理MySQL在网络上的管理.


See also: 也看看:

我需要知道PHP来使用WordPress吗?

No. The only time you would modify your WordPress blog with PHP would be when integrating some of the plugins. In most cases clear instructions are given within a text file that accompanies the plugin. Other than that, you would not be changing any of the PHP files. 不需要.你唯一一次需要用PHP来修改你的WordPress博客的时候,是结合一些插件的时候.在大多数情况下,伴随着插件的文本文件中有着明确的说明.除了这一点,你就不会改变任何的PHP文件.


See also: 也看看:


Wordpress会在 PHP 安全模式下运行吗?

Most definitely! There are no known issues with any version of WordPress when PHP is running in Safe Mode. 非常明确是的!当PHP在安全模式下运行时,任何版本的WordPress都没有任何已知的问题.


我真的需要 PHP?

You certainly need PHP (version 4.1 or newer) to power your WordPress blog. PHP is the scripting language that drives all of WordPress, and without PHP, your server will not be able to interpret the pages that create your weblog. 你当然需要PHP (4.1版本或者更新的)来给你的WordPress博客供以动力. PHP是一种脚本语言,驱动所有的WordPress,没有PHP,你的服务器就不能够解释那些创建你的博客的网页.


我怎样找出我使用的是哪一个 PHP 版本?

To get information about your server, you can use the phpinfo() function. This will also give you information about your Apache and PHP version and PHP

寻求关于你的服务器的信息,你可以使用phpinfo()功能.这个也会给你提供关于你的ApachePHP版本和PHP的信息.

See also: 也看看:

导入

我怎样从我目前的博客中引入文章,它使用一个不同的博客工具?

See also: 也看看:

我怎样从b2中引进?

See also: 也看看:

我怎样从 Movable Type MT中引进?

See also: 也看看:

怎样从 Blogger中引进?

See also: 也看看:

怎样从Text Pattern中引进?

See also: 也看看:

怎样从一个普通的 RSS Feed中引进?

See also: 也看看

怎样从其它的博客软件中引进?

See also: 也看看:

升级

我拥有的WordPress 是什么版本?

There are several methods to find out what version of WordPress you are using: 有几种方法可以让你明白你正在使用什么版本的WordPress:


  • In your wp-includes folder of your WordPress installation, open the version.php file with any text editor. It will tell you the version number of your installation.
  • 在你的WordPress安装的wp-includes文件夹中,用任何的文字编辑器打开version.php文件.它会告诉你,你安装的版本数字.


  • In the WordPress WordPress:Administration Panels, on any panel look at the bottom of the screen and the version number will be visible.
  • 在WordPress的管理面板上,在屏幕底部的任何面板图标上,会有版本数字.


  • Some Themes include the version number in the footer template. Or you can add it yourself:
  • 有一些主题在页脚模板上有版本数字.

或者你自己可以添加:

<?php bloginfo('version'); ?>
<?php bloginfo('version'); ?>


当我向将WordPress升级为最新的版本的时候,我应该怎样做?

See also: 也看看:

我怎样支持我的数据库?

See also: 也看看:

我怎样恢复我的数据库?

See also: 也看看:

在运行了 upgrade.php后,得到了消息 "看起来你还没有安装 WP. 试着运行 install.php."

After running the WordPress Upgrade, and clicking on the "Have fun . ." link, it says, "It doesn't look like you've installed WP yet. Try running install.php." The problem may be that there is not a user with administrative capabilities.

在运行了[[WordPress:Upgrading WordPress|WordPress 升级],点击一下"玩的开心 . ."链接,它显示"看起来你还没有安装WP. 试着运行 install.php."问题可能在于还没有一个用户有管理能力.


To fix that, use WordPress:phpMyAdmin to manually give a user those capabilities: 解决这个问题,使用phpMyAdmin动手给一个用户这些能力:

  1. First find the ID of the user you want to make administrator by looking in the wp_user table.
  2. wp用户列表中找到一个用户的ID,你想要这个用户成为管理员.
  3. In the wp_usermeta table, for that ID, find the related user_id, and where the meta_key is wp_capabilites, change the meta_value to a:1:{s:13:"administrator";b:1;}.

wp_用户meta 列表,找到相关的user_id,在meta_keywp_capabilites的位置,将meta_value 改为 a:1:{s:13:"administrator";b:1;}.

  1. In that same table, for that user_id, where the meta_key is meta_key change the meta_value to a 10.
  2. 在同一个列表上,对于那个user_id,在meta_keymeta_key的位置,将meta_value改为10.

Please note that the prefix on those tables and those two meta_keys utilize your database prefix. So if your database prefix is mywp_ then the two tables will be mywp_user and mywp_usermeta and the the two meta_keys will be mywp_capabilities and mywp_user_level. 请注意这些列表中的前缀,而且这两个meta_keys使用了你的数据库的前缀.因此如果你的数据库前缀是'mywp__,两个列表就是mywp_usermywp_usermeta,两个meta_keys就是mywp_capabilitiesmywp_user_level.


See also: 也看看:


你怎样迫使一个数据库升级?

Under certain situations, it may be necessary to cause a database to pass through the upgrade process again. To do that, you need to lower the db_version value in the wp_options table that corresponds to the version you want to upgrade from. For instance, if you want to force the datebase upgrade that happens from 2.0.11 to 2.3 you would change your db_version to 3441. To force an upgrade from 2.2, 2.2.1, 2.2.2, or 2.2.3 to 2.3 or 2.3.1, change that value to 5183. 在一些特定情况下,可能有必要促进一个数据库再次经历一次升级过程.那样做,你需要在wp_options表中,降低db_version的数值,使它与你想要哪里升级的版本相符合.比如,如果你想要促使数据库升级从2.0.11开始到2.3,你要将你的db_version改为3441. 促使一次升级从2.2,2.2.1,或者2.3或者2.3.1开始,将数值改为5183.


<pre>
'''db_version''' for WordPress releases:
WordPress发行的'''db_version'''

2.3.2  = 6124
2.3.1  = 6124
2.3    = 6124
2.2.3  = 5183
2.2.x  = 5183
2.2    = 5183
2.1.3  = 4773
2.1.x  = 4773
2.1    = 4772
2.0.11 = 3441
2.0.x  = 3441
2.0    = 3441
1.5.x  = 2541
1.x    = 2540


2.3.2 = 6124 2.3.1 = 6124 2.3 = 6124 2.2.3 = 5183 2.2.x = 5183 2.2 = 5183 2.1.3 = 4773 2.1.x = 4773 2.1 = 4772 2.0.11 = 3441 2.0.x = 3441 2.0 = 3441 1.5.x = 2541 1.x = 2540


Note: Use WordPress:phpMyAdmin to change that value, or use wp-admin/options.php. 注:用phpMyAdmin来改变数值,或者使用wp-admin/options.php

Once the db_version is changed, when logging into your blog a link to upgrade the database will be offered. 一旦 db_version改变了,当登录到你的博客的时候,会提供一个链接来升级你的数据库。