WordPress: Installing WordPress:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: __TOC__ WordPress is well known for its ease of installation. Under most circumstances installing WordPress is a very simple process and takes less than five minutes to complete. The fol...)
 
无编辑摘要
第3行: 第3行:
WordPress is well known for its ease of installation. Under most circumstances installing WordPress is a very simple process and takes less than five minutes to complete. The following installation guide will help you, whether you go for the ''Famous 5 Minute Installation'', or require the more detailed installation guide.
WordPress is well known for its ease of installation. Under most circumstances installing WordPress is a very simple process and takes less than five minutes to complete. The following installation guide will help you, whether you go for the ''Famous 5 Minute Installation'', or require the more detailed installation guide.


* [[WordPress:#Things to Know Before You Begin|Things to Know Before You Begin Installing WordPress]]
WordPress以它的安装非常简便而有名。在大多情况下,安装WordPress是一个非常简单的过程,花不了五分钟时间就能完成。不管你是为了找那个有名的五分钟安装还是需要更详细的安装向导,以下的安装指导会帮助你。
* [[WordPress:#Famous 5-Minute Install|The Famous 5-Minute Installation]]
 
* [[WordPress:#Detailed Instructions|Detailed Installation Instructions]]
 
* [[WordPress:#Common_Installation_Problems|Common Installation Problems]]
* [[#WordPress: Things to Know Before You Begin| 在你开始安装 WordPress之前,你需要了解的事情]]
* [[#WordPress: Famous 5-Minute Install|The Famous 5-Minute Installation]]
* [[#WordPress: Famous 5-Minute Install|著名的五分钟安装]
 
* [[#WordPress: Detailed Instructions|Detailed Installation Instructions]]
* [[#WordPress: Detailed Instructions|详细的安装说明]]
 
* [[#WordPress: Common_Installation_Problems|Common Installation Problems]]
* [[#WordPress: Common_Installation_Problems|常见的安装问题]]
 
* [[WordPress:WordPress in Your Language]]
* [[WordPress:WordPress in Your Language]]
* [[WordPress:WordPress in Your Language|你的语言的WordPress]]
* [[WordPress:Installing WordPress in Your Language]]
* [[WordPress:Installing WordPress in Your Language]]
* [[WordPress:#Installing_Multiple_Blogs|How to Install Multiple Blogs]]
* [[WordPress:Installing WordPress in Your Language|将WordPress安装为你的语言形式]]
* [[WordPress:#Installing_WordPress_Locally|How to Install WordPress Locally]]
* [[#WordPress: Installing_Multiple_Blogs|How to Install Multiple Blogs]]
* [[#WordPress: Installing_Multiple_Blogs|怎样安装多个博客]]
 
* [[#WordPress: Installing_WordPress_Locally|How to Install WordPress Locally]]
* [[#WordPress: Installing_WordPress_Locally|怎样本地安装WordPress]]
 
* [[WordPress:Getting Started with WordPress|Getting Started with WordPress (much more installation info)]]
* [[WordPress:Getting Started with WordPress|Getting Started with WordPress (much more installation info)]]
* [[WordPress:Getting Started with WordPress|开始使用WordPress (更多的安装信息)]]


== WordPress Installed for Free ==
== WordPress Installed for Free ==
== 免费安装WordPress ==
Before you read much further, if you, for whatever reason, aren't inclined to do this type of software installation on your web server/host, you can still use WordPress by requesting the [http://install4free.wordpress.net WordPress Install4Free] team do the installation for you for free!
Before you read much further, if you, for whatever reason, aren't inclined to do this type of software installation on your web server/host, you can still use WordPress by requesting the [http://install4free.wordpress.net WordPress Install4Free] team do the installation for you for free!
在你往下读更多的内容之前,如果你,不管什么原因,不想在你的网络服务器/主机上安装这种软件,你通过要求[http://install4free.wordpress.net 免费安装WordPress]小组免费为你安装,你仍然可以使用WordPress..


== Things to Know Before You Begin==
== Things to Know Before You Begin==
== 在你开始之前你需要了解的事情==
Before you begin the install, there are few things you need to have and do.
Before you begin the install, there are few things you need to have and do.


=== Things You Need For The Installation ===
在你开始安装之前,你需要有一些东西,需要做一些事情。
 
=== Things You Need For The Installation ==
=== 你需要为安装准备的东西 ==
 


You need access to your site and its directory and software to proceed with the installation. These are:
You need access to your site and its directory and software to proceed with the installation. These are:
你要能够使用自己的站点,站点的目录和软件来进行安装。这些是:


* Access to your [[WordPress:Glossary#Web server|web server]] (via [[WordPress:Glossary#Shell|shell]] or [[WordPress:Glossary#FTP|FTP]])
* Access to your [[WordPress:Glossary#Web server|web server]] (via [[WordPress:Glossary#Shell|shell]] or [[WordPress:Glossary#FTP|FTP]])
* 通过 [[WordPress:Glossary#Shell|shell]] 或者[[WordPress:Glossary#FTP|FTP]])来进入你的[[WordPress:Glossary#Web server|网络服务器]]
* A [[WordPress:Glossary#Text editor|text editor]]
* A [[WordPress:Glossary#Text editor|text editor]]
* A [[WordPress:Glossary#Text editor|文字编辑器]]
* An [[WordPress:FTP_Clients|FTP Client]] (if you need to install WordPress on a remote server)
* An [[WordPress:FTP_Clients|FTP Client]] (if you need to install WordPress on a remote server)
* An [[WordPress:FTP_Clients|FTP Client]] (如果你需要在一个远程服务器上安装WordPress)
* Your web browser of choice
* Your web browser of choice
*你精选的网络浏览器


===Things You Need to Do For The Installation===
===你需要为安装做的事情===


Begin your installation by:
Begin your installation by:
通过一下来开始安装:


# Checking to ensure that you and your web host has the [http://wordpress.org/about/requirements/ minimum requirements to run WordPress].
# Checking to ensure that you and your web host has the [http://wordpress.org/about/requirements/ minimum requirements to run WordPress].
#检查一下确保你和你的网络主机拥有[http://wordpress.org/about/requirements/ 运行WordPress的最低的条件].
# [http://wordpress.org/download/ Download] the latest release of WordPress.
# [http://wordpress.org/download/ Download] the latest release of WordPress.
# [http://wordpress.org/download/ 下载] 最新版本的WordPress.
# Unzip the downloaded file to a folder on your hard drive.
# Unzip the downloaded file to a folder on your hard drive.
#解压下载文件并放到你电脑硬盘的一个文件夹中
# Print this page out so you have it handy during the installation.
# Print this page out so you have it handy during the installation.
#打印此页,这样你在安装过程中,随时都可以看到。


== Famous 5-Minute Install ==
== Famous 5-Minute Install ==
==著名的5分钟安装 ==


Here's the quick version of the instructions, for those that are already comfortable with performing such installations. More [[WordPress:#Detailed_Instructions|detailed instructions]] follow.
Here's the quick version of the instructions, for those that are already comfortable with performing such installations. More [[WordPress:#Detailed_Instructions|detailed instructions]] follow.
对于那些已经习惯履行这样说明的人来说,这是说明的快速版本。以下是更多的[[WordPress:#Detailed_Instructions|详细说明]]。


# Download and unzip the WordPress package, if you haven't already.
# Download and unzip the WordPress package, if you haven't already.
#如果你还没有准备好,就下载并解压WordPress软件包
# Create a database for WordPress on your web server, as well as a [[WordPress:Glossary#MySQL|MySQL]] user who has all privileges for accessing and modifying it.
# Create a database for WordPress on your web server, as well as a [[WordPress:Glossary#MySQL|MySQL]] user who has all privileges for accessing and modifying it.
#在你的网络服务器上为WordPress建立一个数据库和一个[[WordPress:Glossary#MySQL|MySQL]]用户,MySQL用户有特权访问和更改它。
# Rename the <tt>wp-config-sample.php</tt> file to <tt>wp-config.php</tt>.
# Rename the <tt>wp-config-sample.php</tt> file to <tt>wp-config.php</tt>.
#将<tt>wp-config-sample.php</tt>文件重新命名为<tt>wp-config.php</tt>.
# Open <tt>wp-config.php</tt> in your favorite [[WordPress:Glossary#Text editor|text editor]] and [[WordPress:#Step_3:_Set_up_wp-config.php|fill in your database details]].
# Open <tt>wp-config.php</tt> in your favorite [[WordPress:Glossary#Text editor|text editor]] and [[WordPress:#Step_3:_Set_up_wp-config.php|fill in your database details]].
#在你最喜爱的[[WordPress:Glossary#Text editor|文字编辑器]]上打开<tt>wp-config.php</tt>并且[[WordPress:#Step_3:_Set_up_wp-config.php|添加上你的数据库详细信息]]
# Place the WordPress files in the desired location on your web server:
# Place the WordPress files in the desired location on your web server:
#将WordPress文档放在你网络服务器上的预期位置上。
#* If you want to integrate WordPress into the root of your domain (e.g. <tt><nowiki>http://example.com/</nowiki></tt>), move or upload all contents of the unzipped WordPress directory (but excluding the directory itself) into the root directory of your web server.
#* If you want to integrate WordPress into the root of your domain (e.g. <tt><nowiki>http://example.com/</nowiki></tt>), move or upload all contents of the unzipped WordPress directory (but excluding the directory itself) into the root directory of your web server.
#*如果你想将WordPress整合到你的域根,(例如<tt><nowiki>http://example.com/</nowiki></tt>),将解压的WordPress目录的所有内容(但是不包括目录本身)移到或者上载到你的网络服务器的根目录上
#* If you want to have your WordPress installation in its own subdirectory on your web site (e.g. <tt><nowiki>http://example.com/blog/</nowiki></tt>), rename the directory <tt>wordpress</tt> to the name you'd like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress installation in a subdirectory called "blog", you should rename the directory called "wordpress" to "blog" and upload it to the root directory of your web server.<br><br>'''Hint''': If your FTP transfer is too slow read how to avoid FTPing at : [http://codex.wordpress.org/Installing_WordPress#Step_1:_Download_and_Extract Step 1: Download and Extract].
#* If you want to have your WordPress installation in its own subdirectory on your web site (e.g. <tt><nowiki>http://example.com/blog/</nowiki></tt>), rename the directory <tt>wordpress</tt> to the name you'd like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress installation in a subdirectory called "blog", you should rename the directory called "wordpress" to "blog" and upload it to the root directory of your web server.<br><br>'''Hint''': If your FTP transfer is too slow read how to avoid FTPing at : [http://codex.wordpress.org/Installing_WordPress#Step_1:_Download_and_Extract Step 1: Download and Extract].
#*如果你想将WordPress安装在你的站点上,它自己的子目录上 (例如<tt><nowiki>http://example.com/blog/</nowiki></tt>),将目录<tt>wordpress</tt>重新命名为一个你喜欢的子目录名称,并将它移到或者上载到你的网络服务器上。例如,如果你想要将 WordPress安装到一个称为“blog”的子目录中,你应该将称作“wordpress”的目录重命名为”blog“,并把它上载到你的网络服务器的根目录上。<br><br>'''提示''':
如果你的FTP传输太慢了,没有阅读怎样在[http://codex.wordpress.org/Installing_WordPress#Step_1:_Download_and_Extract Step 1: 下载并提取]避免FTPing.
# Run the WordPress installation script by accessing <tt>wp-admin/install.php</tt> in your favorite web browser.
# Run the WordPress installation script by accessing <tt>wp-admin/install.php</tt> in your favorite web browser.
#在你最喜欢的网络浏览器上,通过访问<tt>wp-admin/install.php</tt>来运行WordPress的安装脚本。
#* If you installed WordPress in the root directory, you should visit: <tt><nowiki>http://example.com/wp-admin/install.php</nowiki></tt>
#* If you installed WordPress in the root directory, you should visit: <tt><nowiki>http://example.com/wp-admin/install.php</nowiki></tt>
#*如果你在根目录上安装了WordPress,你应该访问:<tt><nowiki>http://example.com/wp-admin/install.php</nowiki></tt>
#* If you installed WordPress in its own subdirectory called <tt>blog</tt>, for example, you should visit: <tt><nowiki>http://example.com/blog/wp-admin/install.php</nowiki></tt>
#* If you installed WordPress in its own subdirectory called <tt>blog</tt>, for example, you should visit: <tt><nowiki>http://example.com/blog/wp-admin/install.php</nowiki></tt>
#*例如,如果你在WordPress自身称作<tt>blog</tt>的子目录中安装了WordPress,你应该访问:<tt><nowiki>http://example.com/blog/wp-admin/install.php</nowiki></tt>


That's it! WordPress should now be installed.
That's it! WordPress should now be installed.
就这么多了!现在应该安装WordPress了。


See also:
See also:
也看看:
* [http://www.clearpointsystems.com/ewpi.php Example WordPress installation]
* [http://www.clearpointsystems.com/ewpi.php Example WordPress installation]
* [http://www.clearpointsystems.com/ewpi.php WordPress 安装实例]
* [http://cre8d-design.com/blog/2006/01/19/how-to-install-wordpress-20/ Visual tutorial on how to install Wordpress]
* [http://cre8d-design.com/blog/2006/01/19/how-to-install-wordpress-20/ Visual tutorial on how to install Wordpress]
* [http://cre8d-design.com/blog/2006/01/19/how-to-install-wordpress-20/ 怎样安装 Wordpress的视屏指南]
* [http://www.optiniche.com/blog/26/installing-wordpress-an-audio-visual-presentation/ Installing WordPress-An Audio-Visual Presentation]
* [http://www.optiniche.com/blog/26/installing-wordpress-an-audio-visual-presentation/ Installing WordPress-An Audio-Visual Presentation]
* [http://www.optiniche.com/blog/26/installing-wordpress-an-audio-visual-presentation/ 一个安装WordPress的视听专题介绍]
* [http://www.wpboy.com/ WordPress Installation Tutorial]
* [http://www.wpboy.com/ WordPress Installation Tutorial]
* [http://www.wpboy.com/ 安装WordPress指南]


== Detailed Instructions ==
== Detailed Instructions ==
== 详细说明 ==


=== Step 1: Download and Extract ===
=== Step 1: Download and Extract ===
=== 第一步:下载并提取 ===


Download and unzip the WordPress package from http://wordpress.org/download/.
Download and unzip the WordPress package from http://wordpress.org/download/.
从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 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.
*如果你要将WordPress上载到远程网络服务器,用你最喜爱的网络浏览器将WordPress软件包下载到你的电脑上,并给软件包解压。
* 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]] using <tt>wget</tt> (or <tt>lynx</tt> or another console-based web browser) if you want to avoid [[WordPress:Glossary#FTP|FTPing]]:
* 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]] using <tt>wget</tt> (or <tt>lynx</tt> or another console-based web browser) if you want to avoid [[WordPress:Glossary#FTP|FTPing]]:
** <tt>wget <nowiki>http://wordpress.org/latest.tar.gz</nowiki></tt>
** <tt>wget <nowiki>http://wordpress.org/latest.tar.gz</nowiki></tt>
如果你有[[WordPress:Glossary#Shell|shell]]权限进入你的网络服务器,也满意于使用以控制台为基础的工具。如果你想避免[[WordPress:Glossary#FTP|FTPing]]:
** <tt>wget <nowiki>http://wordpress.org/latest.tar.gz</nowiki></tt>的话,你可以使用<tt>wget</tt> (or <tt>lynx</tt>或者另一个以控制台为基础的网络浏览器,来将WordPress直接下载到你的[[WordPress:Glossary#Web server|网络浏览器]] 。
** Then unzip the package using: <br /> <tt>tar -xzvf latest.tar.gz </tt> <br><br>The WordPress package will extract into a folder called <tt>wordpress</tt> in the same directory that you downloaded <tt>latest.tar.gz</tt>.
** Then unzip the package using: <br /> <tt>tar -xzvf latest.tar.gz </tt> <br><br>The WordPress package will extract into a folder called <tt>wordpress</tt> in the same directory that you downloaded <tt>latest.tar.gz</tt>.
*然后用<br /> <tt>tar -xzvf latest.tar.gz </tt> <br><br>来解压软件包。WordPress软件包会提取出一个文件夹,称为<tt>wordpress</tt>,这个文件夹与你下载的<tt>latest.tar.gz</tt>处于同一个目录中。


* If you do '''not''' have [[WordPress:Glossary#Shell|shell]] access to your web server, or you are not comfortable using console-based tools, you may wish to deploy WordPress directly to your [[WordPress:Glossary#Web server|web server]] using [http://ftp-unzip.com/ZipDeploy/ ZipDeploy].
* If you do '''not''' have [[WordPress:Glossary#Shell|shell]] access to your web server, or you are not comfortable using console-based tools, you may wish to deploy WordPress directly to your [[WordPress:Glossary#Web server|web server]] using [http://ftp-unzip.com/ZipDeploy/ ZipDeploy].
*如果你'''没有'''[[WordPress:Glossary#Shell|shell]]权限进入你的网络服务器或者你不满意于使用以控制台为基础的工具,你也许想使用[http://ftp-unzip.com/ZipDeploy/ ZipDeploy].
直接将WordPress配置到你的[[WordPress:Glossary#Web server|网络服务器]]上。


=== Step 2: Create the Database and a User ===
=== Step 2: Create the Database and a User ===
=== 第二步: 创建数据库和一个用户===


If you are using a [[WordPress:Glossary#Hosting provider|hosting provider]], you may already have a WordPress database set up for you, or there may be an automated setup solution to do so. Check your hosting provider's support pages or your [[WordPress:Using cPanel|control panel]] for clues about whether or not you'll need to create one manually.
If you are using a [[WordPress:Glossary#Hosting provider|hosting provider]], you may already have a WordPress database set up for you, or there may be an automated setup solution to do so. Check your hosting provider's support pages or your [[WordPress:Using cPanel|control panel]] for clues about whether or not you'll need to create one manually.
如果你正在使用一个[[WordPress:Glossary#Hosting provider|主机供应商]],你可能已经有了一个为你设置好了的 WordPress数据库,或者有一个自动化设置数据库的方法。查看一下你的主机供应商的支持页面或者你的[[WordPress:Using cPanel|控制面板]],寻求线索了解你是否需要动手创造一个WordPress数据库。


If you determine that you'll need to create one manually, follow the instructions for [[WordPress:WordPress_Backups#Accessing_phpMyAdmin|accessing phpMyAdmin on various servers]], or follow the instructions for [[WordPress:#Using_cPanel|'''Using cPanel''']] or [[WordPress:#Using phpMyAdmin|'''Using phpMyAdmin''']] below.
If you determine that you'll need to create one manually, follow the instructions for [[WordPress:WordPress_Backups#Accessing_phpMyAdmin|accessing phpMyAdmin on various servers]], or follow the instructions for [[WordPress:#Using_cPanel|'''Using cPanel''']] or [[WordPress:#Using phpMyAdmin|'''Using phpMyAdmin''']] below.
如果你决定动手创建一个,依照[[WordPress:WordPress_Backups#Accessing_phpMyAdmin|在各种服务器上进入 phpMyAdmin]]的指示,或者依照[[WordPress:#Using_cPanel|'''使用 cPanel''']]的指示或者依照下面的[[WordPress:#Using phpMyAdmin|'''使用phpMyAdmin''']]的指示。


If you are installing WordPress on your own web server, follow the [[WordPress:#Using phpMyAdmin|'''Using phpMyAdmin''']] or [[WordPress:#Using the MySQL Client|'''Using the MySQL Client''']] instructions below to create your WordPress username and database.
If you are installing WordPress on your own web server, follow the [[WordPress:#Using phpMyAdmin|'''Using phpMyAdmin''']] or [[WordPress:#Using the MySQL Client|'''Using the MySQL Client''']] instructions below to create your WordPress username and database.
如果你在你自己的网络服务器上安装WordPress,依照[[WordPress:#Using phpMyAdmin|'''使用 phpMyAdmin''']]或者[[WordPress:#Using the MySQL Client|'''使用the MySQL Client''']]下面的说明来创建你的wordPress用户名和数据库。


==== Using cPanel ====
==== Using cPanel ====
==== 使用 cPanel ====


''Main article: [[WordPress:Using cPanel]]''
''Main article: [[WordPress:Using cPanel]]''
''主要的文章: [[WordPress:Using cPanel|使用cPanel]]''


If your hosting provider uses [[WordPress:Glossary#cPanel|cPanel]], you may follow these instructions to create your WordPress username and database.
If your hosting provider uses [[WordPress:Glossary#cPanel|cPanel]], you may follow these instructions to create your WordPress username and database.
如果你的主机供应商使用[[WordPress:Glossary#cPanel|cPanel]],你可以依据这些说明来创建你的WordPress用户名和数据库。


# Log in to your [[WordPress:Glossary#cPanel|cPanel]].
# Log in to your [[WordPress:Glossary#cPanel|cPanel]].
#登录到你的[[WordPress:Glossary#cPanel|cPanel]].
# Click '''MySQL Databases'''.
# Click '''MySQL Databases'''.
#点击'''MySQL 数据库'''.
# If a user relating to WordPress does not already exist under the '''Users''' section, create one:
# If a user relating to WordPress does not already exist under the '''Users''' section, create one:
#如果一个WordPress用户还没有存在在'''用户'''部分,创建一个:
## Chose a username for WordPress ('<tt>wordpress</tt>' is good) and enter it in the '''UserName''' field.
## Chose a username for WordPress ('<tt>wordpress</tt>' is good) and enter it in the '''UserName''' field.
##为WordPress选一个用户名('<tt>wordpress</tt>' 较好)并把它输进''用户名''' 区域。
## Choose a difficult-to-guess password (ideally containing a combination of upper- and lower-case letters, numbers, and symbols), and enter it in the '''Password''' field.
## Choose a difficult-to-guess password (ideally containing a combination of upper- and lower-case letters, numbers, and symbols), and enter it in the '''Password''' field.
###选择一个难以猜中的密码(理想的是大小写字母,数字和符号的组合),将它输入到'''密码'''栏。
## Write down the username and password you chose.
## Write down the username and password you chose.
##写下你选中的用户名和密码。
## Click '''Add User'''.
## Click '''Add User'''.
##点击'''添加用户'''
# If a database relating to WordPress does not already exist under the '''Databases''' section, create one:
# If a database relating to WordPress does not already exist under the '''Databases''' section, create one:
#如果一个与WordPress相关的数据库还没有在'''数据库'''部分,创建一个:
## Choose a name for your WordPress database ('<tt>wordpress</tt>' or '<tt>blog</tt>' are good), enter it in the '''Db''' field, and click '''Add Db'''.
## Choose a name for your WordPress database ('<tt>wordpress</tt>' or '<tt>blog</tt>' are good), enter it in the '''Db''' field, and click '''Add Db'''.
##为你的WordPress数据库选一个名称,('<tt>wordpress</tt>' 或者'<tt>blog</tt>' 较好),将它输进'''Db''' 栏,并且点击'''添加 Db'''.
# Under '''Databases''', select your WordPress username from the '''User''' dropdown, then select your WordPress database from the '''Db''' dropdown. Make sure '''All''' is checked under '''Privileges''', then click '''Add User to Db'''.
# Under '''Databases''', select your WordPress username from the '''User''' dropdown, then select your WordPress database from the '''Db''' dropdown. Make sure '''All''' is checked under '''Privileges''', then click '''Add User to Db'''.
#在'''数据库'''下,从'''用户'''的下拉列表中选择你的WordPress用户名,然后从'''Db'''下拉列表中选择你的WordPress数据库。确保'''所有的'''在'''特权'''情况下,都得到了核实。
# When you return to the main '''MySQL Account Maintenance''' screen, [[WordPress:Glossary#cPanel|cPanel]] will list information about the database you just created. You should see the username you just added to the database (with <tt>ALL PRIVILEGES</tt>), as well as a few sample '''Connection Strings''' for you to use in [[WordPress:Glossary#Perl|Perl]] or [[WordPress:Glossary#PHP|PHP]] scripts to connect to the database. The PHP code will have the following format:
# When you return to the main '''MySQL Account Maintenance''' screen, [[WordPress:Glossary#cPanel|cPanel]] will list information about the database you just created. You should see the username you just added to the database (with <tt>ALL PRIVILEGES</tt>), as well as a few sample '''Connection Strings''' for you to use in [[WordPress:Glossary#Perl|Perl]] or [[WordPress:Glossary#PHP|PHP]] scripts to connect to the database. The PHP code will have the following format:
  $dbh = mysql_connect("''hostname''", "''username''", "<PASSWORD HERE>") or die ("''message''");
  $dbh = mysql_connect("''hostname''", "''username''", "<PASSWORD HERE>") or die ("''message''");
  mysql_select_db("''databasename''");
  mysql_select_db("''databasename''");
: Write down the values of ''hostname'', ''username'', ''databasename'', and the password you chose. (Note that ''hostname'' will usually be '''localhost'''.)
: Write down the values of ''hostname'', ''username'', ''databasename'', and the password you chose. (Note that ''hostname'' will usually be '''localhost'''.)
#当你返回到主要的'''MySQL 帐户维持'''屏面时,[[WordPress:Glossary#cPanel|c面板]]会罗列出关于你刚刚创建的数据库的信息。你应该看看你刚刚添加到数据库上的用户名(在<tt>拥有所有特权的情况下</tt>),你也可以看到一些“连接字符串”,可以在[[WordPress:Glossary#Perl|Perl]]中用到,或者用在[[WordPress:Glossary#PHP|PHP]]脚本中来连接数据库。PHP代码会有一下这些形式:
$dbh = mysql_连接("''主机名''", "''用户名''", "<这里是密码>") 或者 die ("''消息''");


==== Using phpMyAdmin ====
==== Using phpMyAdmin ====
==== 使用 phpMyAdmin ====


If your web server has [[WordPress:Glossary#phpMyAdmin|phpMyAdmin]] installed, you may follow these instructions to create your WordPress username and database.
If your web server has [[WordPress:Glossary#phpMyAdmin|phpMyAdmin]] installed, you may follow these instructions to create your WordPress username and database.
如果你的网络服务器安装了[[WordPress:Glossary#phpMyAdmin|phpMyAdmin]],你可以遵循以下的指示来创建你的WordPress用户名和数据库。


'''''Note:''' These instructions are written for phpMyAdmin 2.6.0; the phpMyAdmin user interface can vary slightly between versions.''
'''''Note:''' These instructions are written for phpMyAdmin 2.6.0; the phpMyAdmin user interface can vary slightly between versions.''
''''注:'''这些说明是针对phpMyAdmin2.6.0的;不同版本的phpMyAdmin用户界面会稍微有所不同。


# If a database relating to WordPress does not already exist in the '''Database''' dropdown on the left, create one:
# If a database relating to WordPress does not already exist in the '''Database''' dropdown on the left, create one:
#如果一个与WordPress相关的数据库还没有出现在左边的'''数据库'''下拉列表上,就要创建一个:
## Choose a name for your WordPress database ('<tt>wordpress</tt>' or '<tt>blog</tt>' are good), enter it in the '''Create new database''' field, and click '''Create'''.
## Choose a name for your WordPress database ('<tt>wordpress</tt>' or '<tt>blog</tt>' are good), enter it in the '''Create new database''' field, and click '''Create'''.
##为你的WordPress数据库选择一个名称('<tt>wordpress</tt>' 或者'<tt>blog</tt>' 不错),将它输进'''创建新的数据库'''区,并且点击'''创建'''。
# Click the '''Home''' icon in the upper left to return to the main page, then click '''Privileges'''. If a user relating to WordPress does not already exist in the list of users, create one:
# Click the '''Home''' icon in the upper left to return to the main page, then click '''Privileges'''. If a user relating to WordPress does not already exist in the list of users, create one:
#点击左上方的'''主页'''图标,返回主页,然后点击'''特权'''.如果一个WordPress的用户还没有存在在用户目录上,创建一个:
## Click '''Add a new User'''.
## Click '''Add a new User'''.
##点击'''增加一个新用户'''.
## Chose a username for WordPress ('<tt>wordpress</tt>' is good) and enter it in the '''User name''' field. (Be sure '''Use text field:''' is selected from the dropdown.)
## Chose a username for WordPress ('<tt>wordpress</tt>' is good) and enter it in the '''User name''' field. (Be sure '''Use text field:''' is selected from the dropdown.)
##为WordPress选择一个用户名('<tt>wordpress</tt>' 就不错)并将它输进'''用户名''' 区.(确定'''使用文本字段:'''使用下拉列表中选的)
## Choose a difficult-to-guess password (ideally containing a combination of upper- and lower-case letters, numbers, and symbols), and enter it in the '''Password''' field. (Be sure '''Use text field:''' is selected from the dropdown.) Re-enter the password in the '''Re-type''' field.
## Choose a difficult-to-guess password (ideally containing a combination of upper- and lower-case letters, numbers, and symbols), and enter it in the '''Password''' field. (Be sure '''Use text field:''' is selected from the dropdown.) Re-enter the password in the '''Re-type''' field.
##选一个难以猜中的密码(理想的组合是大写字母,小写字母,数字和符号的集合体),并把它输进'''Password''' 区(确定使用了选自下拉列表中的'''使用文本字段''')。在'''重新输入'''栏再次输入密码。
## Write down the username and password you chose.
## Write down the username and password you chose.
##写下你选自的用户名和密码。
## Leave all options under '''Global privileges''' at their defaults.
## Leave all options under '''Global privileges''' at their defaults.
##让所有的选择处于默认状态在'''全局特权'''下。
## Click '''Go'''.
## Click '''Go'''.
## 点击 '''运行'''.
# Return to the '''Privileges''' screen and click the '''Check privileges''' icon on the user you've just created for WordPress. In the '''Database-specific privileges''' section, select the database you've just created for WordPress under the '''Add privileges to the following database''' dropdown. The page will refresh with privileges for that database. Click '''Check All''' to select all privileges, and click '''Go'''.
# Return to the '''Privileges''' screen and click the '''Check privileges''' icon on the user you've just created for WordPress. In the '''Database-specific privileges''' section, select the database you've just created for WordPress under the '''Add privileges to the following database''' dropdown. The page will refresh with privileges for that database. Click '''Check All''' to select all privileges, and click '''Go'''.
#返回到'''特权'''屏面并且在你刚刚为WordPress创建的用户上点击'''核实特权'''图标。在'''数据库特殊特权'''部分,在'''为下面的数据库添加特权''' 的下拉列表上选自你刚刚为WordPress创建的数据库。页面会刷新,并且出现数据库特权。点击'''核实所有的'''来选择所有的特权,并且点击'''运行'''.
# On the resulting page, make note of the host name listed after '''Server:''' at the top of the page. (This will usually be '''localhost'''.)
# On the resulting page, make note of the host name listed after '''Server:''' at the top of the page. (This will usually be '''localhost'''.)
#在随之出现的页面中,在页面的顶上方,在'''服务器:'''后面列上主机名。(这个通常是'''地方主机'''.)


==== Using the MySQL Client ====
==== Using the MySQL Client ====
==== 使用 MySQL Client ====


If you have [[WordPress:Glossary#Shell|shell]] access to your web server, are comfortable with using the command line, and your MySQL user has the [[WordPress:Glossary#Permissions|permissions]] to create MySQL users and databases, you may follow the example session below to create your WordPress username and database.
If you have [[WordPress:Glossary#Shell|shell]] access to your web server, are comfortable with using the command line, and your MySQL user has the [[WordPress:Glossary#Permissions|permissions]] to create MySQL users and databases, you may follow the example session below to create your WordPress username and database.
如果你有 [[WordPress:Glossary#Shell|shell]]权限进入你的网络服务器,满意于使用命令行,而且你的MySQL用户有[[WordPress:Glossary#Permissions|权限]]创建用户和数据库,你可以效法以下的实例部分来创建你的WordPress用户名和数据库。
<pre>
<pre>
$ mysql -u adminusername -p
$ mysql -u adminusername -p
第127行: 第297行:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5340 to server version: 3.23.54
Your MySQL connection id is 5340 to server version: 3.23.54
<pre>
$ mysql -u adminusername -p
输入密码:
欢迎来到 MySQL监控器.  命令行以 or \g结束.
Your MySQL connection id is 5340 to server version: 3.23.54
你的MySQL对于版本: 3.23.54服务器的连接id是5340.
   
   
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
输入'help;' or '\h'来寻求帮助。输入'\c'来清除缓冲区。
   
   
mysql> CREATE DATABASE databasename;
mysql> CREATE DATABASE databasename;
Query OK, 1 row affected (0.00 sec)
Query OK, 1 row affected (0.00 sec)
mysql> 创建数据库 数据库名;
查询 OK, 1 排收到影响 (0.00 秒)
   
   
mysql> GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname"
mysql> GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname"
     -> IDENTIFIED BY "password";
     -> IDENTIFIED BY "password";
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
mysql> 赋予数据库名所有的特权.* TO "wordpressusername"@"hostname"
    -> I由 "密码"鉴别;
查询 OK, 0 rows 收到影响(0.00秒)
    
    
mysql> FLUSH PRIVILEGES;
mysql> FLUSH PRIVILEGES;
第144行: 第333行:
$  
$  
</pre>
</pre>
mysql> FLUSH 特权;
查询 OK, 0 rows收到影响(0.01 秒)
mysql> 退出
Bye
$
</pre>
In the above:
In the above:
在以上中:
* ''adminusername'' will typically be <tt>root</tt>, unless you have another high-privileged account set up.
* ''adminusername'' will typically be <tt>root</tt>, unless you have another high-privileged account set up.
*''管理用户名''通常是一个<tt>root</tt>,除非你又设置了另一个高特权的帐户。
* <tt>wordpress</tt> or <tt>blog</tt> are good values for ''databasename''.
* <tt>wordpress</tt> or <tt>blog</tt> are good values for ''databasename''.
*对于''数据库用户名''来说,<tt>wordpress</tt> 或者 <tt>blog</tt>很值。
* <tt>wordpress</tt> is a good value for ''wordpressusername''.
* <tt>wordpress</tt> is a good value for ''wordpressusername''.
*对于''wordpressusername'',<tt>wordpress</tt>是一个很好的值。
* ''hostname'' will usually be <tt>localhost</tt>. If you don't know what this value should be, check with your system administrator. If you are the system administrator, figure out what this value should be.
* ''hostname'' will usually be <tt>localhost</tt>. If you don't know what this value should be, check with your system administrator. If you are the system administrator, figure out what this value should be.
*''主机名''通常是<tt>本地主机</tt>。如果你不知道这个值应该是怎样的,用你的系统管理者核实一下。如果你是系统管理者,计算出这个值应该是多少。
* ''password'' should be a difficult-to-guess password, ideally containing a combination of upper- and lower-case letters, numbers, and symbols.
* ''password'' should be a difficult-to-guess password, ideally containing a combination of upper- and lower-case letters, numbers, and symbols.
*''密码''应该是一个难以猜到的密码,理想的应该是大小写字母,数字和符号的集合体。


Write down the values you used for ''databasename'', ''wordpressusername'', ''hostname'', and ''password''.
Write down the values you used for ''databasename'', ''wordpressusername'', ''hostname'', and ''password''.
写下你为''数据库名'', ''wordpress用户名'', ''主机名'', 和 ''密码''设定的数值。


==== Using Plesk ====
==== Using Plesk ====
==== 使用 Plesk ====
See: [http://www.tamba2.org.uk/wordpress/plesk/ Plesk 7 at tamba2.org]
See: [http://www.tamba2.org.uk/wordpress/plesk/ Plesk 7 at tamba2.org]
看: [http://www.tamba2.org.uk/wordpress/plesk/ Plesk 7 at tamba2.org]


=== Step 3: Set up wp-config.php ===
=== Step 3: Set up wp-config.php ===
=== 第三步: 设置 wp-config.php ===


For the next part, the code you will be looking to change is as follows:
For the next part, the code you will be looking to change is as follows:
下一个部分中,你注意改变的代码是如下的:


<pre>// ** MySQL settings ** //
<pre>// ** MySQL settings ** //
第167行: 第392行:
define('DB_CHARSET', 'utf8');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');</pre>
define('DB_COLLATE', '');</pre>
<pre>// ** MySQL settings ** //
define('DB_NAME', 'putyourdbnamehere');    // 数据库名
define('DB_USER', 'usernamehere');    // 你的 MySQL 用户名
define('DB_PASSWORD', 'yourpasswordhere'); // ...和密码
define('DB_HOST', 'localhost');    // 99% 的机率,你不用该这个数值
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');</pre>


# Returning to where you extracted the WordPress package in '''Step 1''', rename the file <tt>wp-config-sample.php</tt> to <tt>wp-config.php</tt>.
# Returning to where you extracted the WordPress package in '''Step 1''', rename the file <tt>wp-config-sample.php</tt> to <tt>wp-config.php</tt>.
#返回到'''第一步''',你提取出WordPress软件包的地方,将文件<tt>wp-config-sample.php</tt>重新命名为<tt>wp-config.php</tt>。
# Open the renamed <tt>wp-config.php</tt> file in your favorite [[WordPress:Glossary#Text editor|text editor]] and fill in the following information, per the example above:
# Open the renamed <tt>wp-config.php</tt> file in your favorite [[WordPress:Glossary#Text editor|text editor]] and fill in the following information, per the example above:
#在你最喜爱的[[WordPress:Glossary#Text editor|文字编辑器中]]打开重新命名了的<tt>wp-config.php</tt>文件,按上面的例子,填上以下的信息。
#; '''DB_NAME''' : The name of the database you created for WordPress in '''Step 2''' .
#; '''DB_NAME''' : The name of the database you created for WordPress in '''Step 2''' .
#; '''DB_名''' :你在'''第2步'''为WordPress数据库创建的名
#; '''DB_USER''' : The username you created for WordPress in '''Step 2'''.
#; '''DB_USER''' : The username you created for WordPress in '''Step 2'''.
#; '''DB_用户''' :你在'''第二步'''为WordPress创建的用户名。
#; '''DB_PASSWORD''' : The password you chose for the WordPress username in '''Step 2'''.
#; '''DB_PASSWORD''' : The password you chose for the WordPress username in '''Step 2'''.
#; '''DB_密码''' :你在'''第二步'''为WordPress用户名选择的密码
#; '''DB_HOST''' : The hostname you determined in '''Step 2''' (usually <tt>localhost</tt>, but not always. See [[WordPress:Editing_wp-config.php#Possible_DB_HOST_values|some possible DB_HOST values]]).
#; '''DB_HOST''' : The hostname you determined in '''Step 2''' (usually <tt>localhost</tt>, but not always. See [[WordPress:Editing_wp-config.php#Possible_DB_HOST_values|some possible DB_HOST values]]).
#; '''DB_用户''' :你在'''第二步'''决定的主机名(通常是<tt>本地主机</tt>,但不是总是那样。看[[WordPress:Editing_wp-config.php#Possible_DB_HOST_values|一些可能的 DB_主机值]]).
#; '''DB_CHARSET''' : The database character set, normally should not be changed.  See ''[[WordPress:Editing wp-config.php]]'' for details.
#; '''DB_CHARSET''' : The database character set, normally should not be changed.  See ''[[WordPress:Editing wp-config.php]]'' for details.
#; '''DB_CHARSET''' :数据库的字符集设置,通常情况下不会改变。详细信息请看''[[WordPress:Editing wp-config.php]]''
#; '''DB_COLLATE''' : The database collation should normally be left blank.  See ''[[WordPress:Editing wp-config.php]]'' for details.
#; '''DB_COLLATE''' : The database collation should normally be left blank.  See ''[[WordPress:Editing wp-config.php]]'' for details.
#; '''DB_COLLATE''' :数据库的校勘通常情况下处于空白状态。详细信息请看''[[WordPress:Editing wp-config.php|编辑wp-config.php]]''
# Save the file.
# Save the file.
#保存文件。


*For more extensive details, and step by step instruction for creating the configuration file, refer to ''[[WordPress:Editing wp-config.php]]''.
*For more extensive details, and step by step instruction for creating the configuration file, refer to ''[[WordPress:Editing wp-config.php]]''.
*更多的关于创建配置文件的详细信息和一步一步的说明,请看''[[WordPress:Editing wp-config.php|编辑 wp-config.php]]''.


=== Step 4: Upload the files ===
=== Step 4: Upload the files ===
=== 第四步:上载文件 ===


Now you will need to decide where on your web site you'd like your blog to appear:
Now you will need to decide where on your web site you'd like your blog to appear:
现在你要决定你希望你的博客在你的站点的哪里出现:
* In the root directory of your web site. (For example, <tt><nowiki>http://example.com/</nowiki></tt>)
* In the root directory of your web site. (For example, <tt><nowiki>http://example.com/</nowiki></tt>)
*在你的站点的根目录上。(例如,<tt><nowiki>http://example.com/</nowiki></tt>)
* In a subdirectory of your web site. (For example, <tt><nowiki>http://example.com/blog/</nowiki></tt>)
* In a subdirectory of your web site. (For example, <tt><nowiki>http://example.com/blog/</nowiki></tt>)
*在你的站点的子目录上。(例如,<tt><nowiki>http://example.com/blog/</nowiki></tt>)


'''''Note:''' The location of your root web directory in the filesystem on your [[WordPress:Glossary#Web server|web server]] will vary across hosting providers and operating systems. Check with your [[WordPress:Glossary#Hosting provider|hosting provider]] or system administrator if you do not know where this is.''
'''''Note:''' The location of your root web directory in the filesystem on your [[WordPress:Glossary#Web server|web server]] will vary across hosting providers and operating systems. Check with your [[WordPress:Glossary#Hosting provider|hosting provider]] or system administrator if you do not know where this is.''
'''''注:'''你的[[WordPress:Glossary#Web server|网络服务器]]上的文件系统上的根目录位置在主机供应商和操作系统中会有所不同。如果你不知道这个在哪儿,与你的[[WordPress:Glossary#Hosting provider|主机供应商]]或者系统管理者核实一下。


==== In the Root Directory ====
==== In the Root Directory ====
==== 在根目录中 ====


* If you need to upload your files to your web server, use your favorite [[WordPress:Glossary#FTP|FTP]] client to upload all the ''contents'' of the <tt>wordpress</tt> directory (but not the directory itself) into the root directory of your web site.
* If you need to upload your files to your web server, use your favorite [[WordPress:Glossary#FTP|FTP]] client to upload all the ''contents'' of the <tt>wordpress</tt> directory (but not the directory itself) into the root directory of your web site.
*如果你要将你的文件上载到你的网络服务器上,用你最喜爱的[[WordPress:Glossary#FTP|FTP]]客户来上载<tt>wordpress</tt>目录的所有''内容''(但不是目录本身)到你网点的根目录上。
* If your files are already on your web server, and you are using [[WordPress:Glossary#Shell|shell]] access to install WordPress, move all of the ''contents'' of the <tt>wordpress</tt> directory (but not the directory itself) into the root directory of your web site.
* If your files are already on your web server, and you are using [[WordPress:Glossary#Shell|shell]] access to install WordPress, move all of the ''contents'' of the <tt>wordpress</tt> directory (but not the directory itself) into the root directory of your web site.
*如果你的文件已经在你的网络服务器上,你正使用[[WordPress:Glossary#Shell|shell]]权限来安装WordPress,将<tt>wordpress</tt>目录的所有''内容''(但不是目录本身)移到你的网站的根目录上。


==== In a Subdirectory ====
==== In a Subdirectory ====
==== 在一个子目录上 ====


* If you need to upload your files to your web server, rename the <tt>wordpress</tt> directory to your desired name, then use your favorite [[WordPress:Glossary#FTP|FTP]] client to upload the directory to your desired location within the root directory of your web site.
* If you need to upload your files to your web server, rename the <tt>wordpress</tt> directory to your desired name, then use your favorite [[WordPress:Glossary#FTP|FTP]] client to upload the directory to your desired location within the root directory of your web site.
*如果你要将你的文件上载到你的网络浏览器上,将<tt>wordpress</tt>的目录重新命名为一个你喜欢的名字,然后使用你最喜爱的[[WordPress:Glossary#FTP|FTP]]顾客将目录上载到在你的站点范围之内的根目录上你喜欢的位置上。
* If your files are already on your web server, and you are using [[WordPress:Glossary#Shell|shell]] access to install WordPress, move the <tt>wordpress</tt> directory to your desired location within the root directory of your web site, and rename the directory to your desired name.
* If your files are already on your web server, and you are using [[WordPress:Glossary#Shell|shell]] access to install WordPress, move the <tt>wordpress</tt> directory to your desired location within the root directory of your web site, and rename the directory to your desired name.
*如果你的文件已经在你的网络服务器上,你正使用[[WordPress:Glossary#Shell|shell]]权限来安装WordPress,将<tt>wordpress</tt>目录移到你的网站上根目录范围以内的一个你喜欢的位置上,并且给目录重新命名为一个你喜欢的名字。


=== Step 5: Run the Install Script ===
=== Step 5: Run the Install Script ===
=== 第五步: 运行安装脚本 ===


Point your favorite web browser to start the installation script.
Point your favorite web browser to start the installation script.
指定你最喜欢的网络浏览器开始安装脚本


* If you placed the WordPress files in the root directory, you should visit: <tt><nowiki>http://example.com/wp-admin/install.php</nowiki></tt>
* If you placed the WordPress files in the root directory, you should visit: <tt><nowiki>http://example.com/wp-admin/install.php</nowiki></tt>
*如果你将Worepress文件放在了根目录上,你应该访问;
<tt><nowiki>http://example.com/wp-admin/install.php</nowiki></tt>
* If you placed the WordPress files in a subdirectory called <tt>blog</tt>, for example, you should visit: <tt><nowiki>http://example.com/blog/wp-admin/install.php</nowiki></tt>
* If you placed the WordPress files in a subdirectory called <tt>blog</tt>, for example, you should visit: <tt><nowiki>http://example.com/blog/wp-admin/install.php</nowiki></tt>
*例如,如果你将Wordpress文件放在了一个称为<tt>blog</tt>的子目录中,你应该访问:
<tt><nowiki>http://example.com/blog/wp-admin/install.php</nowiki></tt>


The following screenshots show how the installation progresses.  Notice in the screen, Entering the details, you enter your Weblog title and your e-mail address.  Also displayed is a check-box asking if you would like your blog to appear in search engines like Google and Technorati.  Leave the box checked if you would like your blog to be visible to everyone, including search engines, and uncheck the box if you want to block search engines, but allow normal visitors.  Note all this information can be changed later in your [[WordPress:Administration_Panels|Administration Panels]].
The following screenshots show how the installation progresses.  Notice in the screen, Entering the details, you enter your Weblog title and your e-mail address.  Also displayed is a check-box asking if you would like your blog to appear in search engines like Google and Technorati.  Leave the box checked if you would like your blog to be visible to everyone, including search engines, and uncheck the box if you want to block search engines, but allow normal visitors.  Note all this information can be changed later in your [[WordPress:Administration_Panels|Administration Panels]].
以下的屏幕截图显示了安装过程是怎样进行的。注意看屏幕,输入详细的信息,输入你的博客名和你的邮箱地址。再在看一个检查框中一下,询问一下你是否希望自己的博客出现在如Google和Technorai这样的搜索引擎中。如果你想包括搜索引擎在内的每个人都可以访问你的博客,选中检查框,如果你允许普通游客,但不允许搜索引擎访问你的博客,就不要选中检查框。注意所有的这些信息以后能在你的[[WordPress:Administration_Panels|管理面板]].
中更改。
<div style="clear:both;height:10px">
<div style="clear:both;height:10px">
'''Version 2.3'''
'''Version 2.3'''
第223行: 第524行:
<div style="clear:both;height:10px">
<div style="clear:both;height:10px">
</div>
</div>
<div style="clear:both;height:10px">
'''Version 2.3'''
'' 2.3版本'''
[[WordPress:Image:install23-step0.png|left|thumb|300px|WordPress 2.3版本, 输入详细信息]
[[WordPress:Image:install23-step1.png|left|thumb|300px|WordPress 2.3版本, 都完成了!]]
<!-- leaving prior screens for now
<!—暂时离开前面的屏面
<div style="clear:both;height:10px">
'''2.1 and 2.2版本'''
[[WordPress:Image:install21-step0-cropped.png|left|thumb|300px|WordPress 2.1/2.2版本, 启动 屏幕]]
[[WordPress:Image:install21-step1-cropped.png|left|thumb|300px|WordPress 2.1/2.2版本, 输入详细信息]]
[[WordPress:Image:install21-step2-cropped.png|left|thumb|300px|WordPress 2.1/2.2版本, 所有都完成了!]]
[[WordPress:Image:install-step1.png|left|thumb|启动屏幕]]
[[WordPress:Image:install-step2.png|left|thumb|输入详细信息]]
[[WordPress:Image:install-step3.png|left|thumb|所有都完成了!]] -->
</div>
<div style="clear:both;height:10px">
</div>


==== Install Script Troubleshooting ====
==== Install Script Troubleshooting ====
==== 发现并修理安装脚本时的故障 ====


* If you get an error about the database when you run the install script:
* If you get an error about the database when you run the install script:
*如果你在安装脚本的时候,遇到了一个安装数据库方面的错误信息:
** Go back to [[WordPress:#Step_2:_Create_the_Database_and_a_User|Step 2]] and [[WordPress:#Step_3:_Set_up_wp-config.php|Step 3]], and be sure you got all the correct database information and that it was entered correctly into <tt>wp-config.php</tt>.
** Go back to [[WordPress:#Step_2:_Create_the_Database_and_a_User|Step 2]] and [[WordPress:#Step_3:_Set_up_wp-config.php|Step 3]], and be sure you got all the correct database information and that it was entered correctly into <tt>wp-config.php</tt>.
**返回到[[WordPress:#Step_2:_Create_the_Database_and_a_User|第二步]] and [[WordPress:#Step_3:_Set_up_wp-config.php|第三步]], 确保你获得了所有的数据库的正确信息,并且正确的输进了<tt>wp-config.php</tt>.
** Be sure you granted your WordPress user permission to access your WordPress database in '''Step 3'''.
** Be sure you granted your WordPress user permission to access your WordPress database in '''Step 3'''.
**确保你在'''第三步'''时给予了你的WordPress用户权限进入你的Wordpress数据库。
** Be sure the database server is running.
** Be sure the database server is running.
**确保数据库服务器在运行。


== Common Installation Problems ==
== Common Installation Problems ==
== 常见安装问题 ==


The following are some of the most common installation problems.  For more information and troubleshooting for problems with your WordPress installation, check out [[WordPress:FAQ Installation]] and [[WordPress:FAQ Troubleshooting]].
The following are some of the most common installation problems.  For more information and troubleshooting for problems with your WordPress installation, check out [[WordPress:FAQ Installation]] and [[WordPress:FAQ Troubleshooting]].
以下是一些最常见的安装问题。关于更多的安装Wordpress的问题和发现并修理故障问题的信息,请查看[[WordPress:FAQ Installation|常见问题解答 安装]]和 [[WordPress:FAQ Troubleshooting|常见问题解答 发现并修理故障]].


; I see lots of <tt>Headers already sent</tt> errors. How do I fix this? : You probably introduced a syntax error in editing <tt>wp-config.php</tt>.
; I see lots of <tt>Headers already sent</tt> errors. How do I fix this? : You probably introduced a syntax error in editing <tt>wp-config.php</tt>.
;我看见了许多<tt>Headers已经发送</tt>错误。我怎么解决这个问题?:你也许在编辑<tt>wp-config.php</tt>的时候,引进了一个句法错误。
:# Download <tt>wp-config.php</tt> (if you don't have [[WordPress:Glossary#Shell|shell]] access).
:# Download <tt>wp-config.php</tt> (if you don't have [[WordPress:Glossary#Shell|shell]] access).
:#下载<tt>wp-config.php</tt>(如果你没有[[WordPress:Glossary#Shell|shell]]权限)
:# Open it in your favorite [[WordPress:Glossary#Text editor|text editor]].
:# Open it in your favorite [[WordPress:Glossary#Text editor|text editor]].
:#在你最喜爱的[[WordPress:Glossary#Text editor|文本编辑器]]中将它打开。
:# Check that the first line contains nothing but <tt><?php</tt>, and that there is '''no''' text before it (not even whitespace).
:# Check that the first line contains nothing but <tt><?php</tt>, and that there is '''no''' text before it (not even whitespace).
:# Check that the last line contains nothing but <tt>?></tt>, and that there is '''no''' text after it (not even whitespace).
:# 核实一下第一行除了<tt><?php</tt>之外什么也不没有,而且它的前面没有文字,(甚至没有空格)。
 
 
:# Check that the last line contains nothing but <tt>?></tt>, and that there is '''no''' text after it (not even whitespace)
 
:# 核实一下最后一行除了<tt>?></tt>之外什么也没有,而且它的后面没有文字(甚至没有空格)。
 
:# Save the file, upload it again if necessary, and reload the page in your browser.
:# Save the file, upload it again if necessary, and reload the page in your browser.
:# 保存文件,如果需要的话,再次上载一遍,将网页重新载入你的浏览器。


; My page comes out gibberish. When I look at the source I see a lot of "<tt><?php ?></tt>" tags. : If the <tt><?php ?></tt> tags are being sent to the browser, it means your [[WordPress:Glossary#PHP|PHP]] is not working properly. All PHP code is supposed to be executed ''before'' the server sends the resulting [[WordPress:Glossary#HTML|HTML]] to your web browser. (That's why it's called a ''pre''processor.) Make sure your web server meets the requirements to run WordPress, that PHP is installed and configured properly, or contact your hosting provider or system administrator for assistance.
; My page comes out gibberish. When I look at the source I see a lot of "<tt><?php ?></tt>" tags. : If the <tt><?php ?></tt> tags are being sent to the browser, it means your [[WordPress:Glossary#PHP|PHP]] is not working properly. All PHP code is supposed to be executed ''before'' the server sends the resulting [[WordPress:Glossary#HTML|HTML]] to your web browser. (That's why it's called a ''pre''processor.) Make sure your web server meets the requirements to run WordPress, that PHP is installed and configured properly, or contact your hosting provider or system administrator for assistance.
;我的网页出来一些杂乱无章的语句,当我查看源头,我看见了许多"<tt><?php ?></tt>"的标签。  如果"<tt><?php ?></tt>"标签被输入了浏览器,这意味着你的[[WordPress:Glossary#PHP|PHP]]没有正常的运行。所有的PHP代码应该是在服务器向你的网络浏览器发送HTML结果''之前''执行的。(这就是它称作''预''处理程序的原因。)确保你的网络服务器符合运行Wordpress的要求,PHP安装了,并且得到了妥当的配置,或者联系你的主机供应商或者系统管理者寻求的帮助。


; I keep getting an <tt>Error connecting to database</tt> message but I'm sure my configuration is correct. : Try resetting your MySQL password manually. If you have access to MySQL via shell, try issuing:
; I keep getting an <tt>Error connecting to database</tt> message but I'm sure my configuration is correct. : Try resetting your MySQL password manually. If you have access to MySQL via shell, try issuing:


  SET PASSWORD FOR '<var>wordpressusername</var>'@'<var>hostname</var>' = OLD_PASSWORD('<var>password</var>');
  SET PASSWORD FOR '<var>wordpressusername</var>'@'<var>hostname</var>' = OLD_PASSWORD('<var>password</var>');
;我一直收到<tt>一个连接数据库的错误信息<tt>,但我确定我的配置是正确的。尝试着动手设置一下你的密码。如果你有权限通过shell进入MySQL,试着发布:
为'<var>wordpressusername</var>'@'<var>hostname</var>' = OLD_PASSWORD('<var>password</var>');
设置密码;


: If you are using a version of MySQL prior to 4.1, use <tt>PASSWORD</tt> instead of <tt>OLD_PASSWORD</tt>. If you do not have shell access, you should be able to simply enter the above into an SQL query in phpMyAdmin. Failing that, you may need to use your host's control panel to reset the password for your database user.
: If you are using a version of MySQL prior to 4.1, use <tt>PASSWORD</tt> instead of <tt>OLD_PASSWORD</tt>. If you do not have shell access, you should be able to simply enter the above into an SQL query in phpMyAdmin. Failing that, you may need to use your host's control panel to reset the password for your database user.
;如果你使用的是MySQL4.1之前的一个版本,使用<tt>密码</tt>而不是<tt>旧的_密码</tt>.如果你没有shell使用权限,你仅要把以上的输入进phpMyAdmin中的SQL询问。做不到以上这一点,你也许要在你的主机控制面板上为你的数据库用户重新设置一个密码。


; My image/MP3 uploads aren't working. : If you use the Rich Text Editor on a blog  that's installed in a subdirectory, and drag a newly uploaded image into  the editor  field, the image may vanish a couple seconds later. This is due to a problem with TinyMCE (the rich text editor) not getting enough information during the drag operation to construct the path to the image or other file  correctly. The solution is to  NOT drag uploaded images into the editor. Instead, click and  hold on the image and select "Send to Editor."
; My image/MP3 uploads aren't working. : If you use the Rich Text Editor on a blog  that's installed in a subdirectory, and drag a newly uploaded image into  the editor  field, the image may vanish a couple seconds later. This is due to a problem with TinyMCE (the rich text editor) not getting enough information during the drag operation to construct the path to the image or other file  correctly. The solution is to  NOT drag uploaded images into the editor. Instead, click and  hold on the image and select "Send to Editor."
;我的图片/MP3上传不了。
如果你在一个安装在子目录上的博客中使用Rich文字编辑器,并向编辑领域拖动一个刚刚上载的图像,图像可能几秒钟后就会消失。这是由TinyMCE产生的问题引起的,(丰富的文本编辑器,在进行拖动时没有得到足够的信息来为图像或其它的文件正确地建立一个路线。解决的办法是不要向编辑器拖动上载的图像。相反,点击并按住形象,并且选择“发送到编辑器”


== Installation Instructions in Other Languages ==
== Installation Instructions in Other Languages ==
== 其它语言的安装说明==


For installation instructions in other languages, see [[WordPress:WordPress in Your Language]].
For installation instructions in other languages, see [[WordPress:WordPress in Your Language]].
关于以其它语言安装的说明,请看[[WordPress:WordPress in Your Language|你的语言的WordPress]].


== Installing Multiple Blogs ==
== Installing Multiple Blogs ==
==安装多个博客 ==


Detailed information about [[WordPress:Installing Multiple Blogs]] is available.
Detailed information about [[WordPress:Installing Multiple Blogs]] is available.
提供关于[[WordPress:Installing Multiple Blogs|安装多个博客的详细信息]]


== Installing WordPress Locally ==
== Installing WordPress Locally ==
== 本地安装WordPress ==


If you have a sufficiently powerful home computer and a sufficiently fast broadband connection, you may want to avoid certain hosting charges by using your own computer as a server.  The following tutorials will show you how to setup a server environment and install WordPress on your home computer.
If you have a sufficiently powerful home computer and a sufficiently fast broadband connection, you may want to avoid certain hosting charges by using your own computer as a server.  The following tutorials will show you how to setup a server environment and install WordPress on your home computer.
如果你有一个足够强大的家用电脑和一个足够强大的宽带连接,你也许会将你自己的电脑作为一个服务器来避免一定的托管费用。以下的教程会向你展示怎样设置一个服务器环境和怎样在你的家用电脑上安装WordPress.


* [http://michaeldoig.net/4/installing-mamp-and-wordpress.htm Install WordPress Locally on MacOS X with MAMP (easy)]
* [http://michaeldoig.net/4/installing-mamp-and-wordpress.htm Install WordPress Locally on MacOS X with MAMP (easy)]
* [http://michaeldoig.net/4/installing-mamp-and-wordpress.htm 在 MacOS X上用MAMP (简单)本地安装WordPress]
* [http://maczealots.com/tutorials/wordpress/ Install WordPress Locally on MacOS X (advanced)]
* [http://maczealots.com/tutorials/wordpress/ Install WordPress Locally on MacOS X (advanced)]
* [http://maczealots.com/tutorials/wordpress/  在 MacOS X (高级)上本地安装WordPress]
* [http://www.tamba2.org.uk/wordpress/xampp/ Install WordPress Locally on Windows XP with XAMPP (easy)]
* [http://www.tamba2.org.uk/wordpress/xampp/ Install WordPress Locally on Windows XP with XAMPP (easy)]
* [http://www.tamba2.org.uk/wordpress/xampp/ 在 Windows XP 上用XAMPP (简单)本地安装WordPress]
* [http://wojciechbednarski.com/articles/installing-wordpress-locally-on-gentoo-linux Install WordPress Locally on Gentoo Linux (easy)]
* [http://wojciechbednarski.com/articles/installing-wordpress-locally-on-gentoo-linux Install WordPress Locally on Gentoo Linux (easy)]
* [http://wojciechbednarski.com/articles/installing-wordpress-locally-on-gentoo-linux在Gentoo Linux (简单)上本地安装WordPress]
* [http://sharealike.org/index.php/2007/04/07/multiple-wordpress-blogs-on-a-debian-server/ Install WordPress Locally on Debian Etch using .deb (easiest)]
* [http://sharealike.org/index.php/2007/04/07/multiple-wordpress-blogs-on-a-debian-server/ Install WordPress Locally on Debian Etch using .deb (easiest)]
* [http://sharealike.org/index.php/2007/04/07/multiple-wordpress-blogs-on-a-debian-server/在Debian Etch using .deb (最简单的)上本地安装WordPress]
* [http://www.supriyadisw.net/2006/08/wordpress-on-debian-linux Install WordPress Locally on Debian Linux (easy)]
* [http://www.supriyadisw.net/2006/08/wordpress-on-debian-linux Install WordPress Locally on Debian Linux (easy)]
* [http://www.supriyadisw.net/2006/08/wordpress-on-debian-linux在 Debian Linux (简单)上本地安装WordPress]
* [http://www.supriyadisw.net/2006/12/wordpress-installation-on-ubuntu-with-lamp Install WordPress Locally on Ubuntu Linux with LAMP (easy)]
* [http://www.supriyadisw.net/2006/12/wordpress-installation-on-ubuntu-with-lamp Install WordPress Locally on Ubuntu Linux with LAMP (easy)]
* [http://www.supriyadisw.net/2006/12/wordpress-installation-on-ubuntu-with-lamp 在 Ubuntu Linux 用LAMP (简单)本地安装WordPress]


== Resources ==
== Resources ==
== 资源==
*[http://www.lucidgreen.net/wordpressGuides/everymansWPinstall.pdf Brandan Booth's Everyman's WordPress Installation Guide]
*[http://www.lucidgreen.net/wordpressGuides/everymansWPinstall.pdf Brandan Booth's Everyman's WordPress Installation Guide]


第278行: 第696行:


*[http://coevolving.com/blogs/index.php/archive/installing-and-customizing-wordpress-on-your-own-domain/ Coevolving Innovations guide for installing on a web host with Fantastico and cPanel] (at Wordpress 2.2.1)
*[http://coevolving.com/blogs/index.php/archive/installing-and-customizing-wordpress-on-your-own-domain/ Coevolving Innovations guide for installing on a web host with Fantastico and cPanel] (at Wordpress 2.2.1)
*[http://www.lucidgreen.net/wordpressGuides/everymansWPinstall.pdf Brandan Booth's Everyman的 WordPress 安装指南]
*[http://www.installity.com/wordpress Vladimir Ghetau的 Wordpress 网络安装器]
*[http://coevolving.com/blogs/index.php/archive/installing-and-customizing-wordpress-on-your-own-domain/ Coevolving Innovations guide for installing on a web host 用Fantastico and cPanel在一个网络主机上安装演变创新指南] (at Wordpress 2.2.1)

2008年3月25日 (二) 13:22的版本

WordPress is well known for its ease of installation. Under most circumstances installing WordPress is a very simple process and takes less than five minutes to complete. The following installation guide will help you, whether you go for the Famous 5 Minute Installation, or require the more detailed installation guide.

WordPress以它的安装非常简便而有名。在大多情况下,安装WordPress是一个非常简单的过程,花不了五分钟时间就能完成。不管你是为了找那个有名的五分钟安装还是需要更详细的安装向导,以下的安装指导会帮助你。



WordPress Installed for Free

免费安装WordPress

Before you read much further, if you, for whatever reason, aren't inclined to do this type of software installation on your web server/host, you can still use WordPress by requesting the WordPress Install4Free team do the installation for you for free!

在你往下读更多的内容之前,如果你,不管什么原因,不想在你的网络服务器/主机上安装这种软件,你通过要求免费安装WordPress小组免费为你安装,你仍然可以使用WordPress..


Things to Know Before You Begin

在你开始之前你需要了解的事情

Before you begin the install, there are few things you need to have and do.

在你开始安装之前,你需要有一些东西,需要做一些事情。

= Things You Need For The Installation

= 你需要为安装准备的东西

You need access to your site and its directory and software to proceed with the installation. These are:

你要能够使用自己的站点,站点的目录和软件来进行安装。这些是:


  • An FTP Client (if you need to install WordPress on a remote server)
  • An FTP Client (如果你需要在一个远程服务器上安装WordPress)
  • Your web browser of choice
  • 你精选的网络浏览器

你需要为安装做的事情

Begin your installation by: 通过一下来开始安装:

  1. Checking to ensure that you and your web host has the minimum requirements to run WordPress.
  2. 检查一下确保你和你的网络主机拥有运行WordPress的最低的条件.
  1. Download the latest release of WordPress.
  2. 下载 最新版本的WordPress.
  1. Unzip the downloaded file to a folder on your hard drive.
  2. 解压下载文件并放到你电脑硬盘的一个文件夹中
  3. Print this page out so you have it handy during the installation.
  4. 打印此页,这样你在安装过程中,随时都可以看到。

Famous 5-Minute Install

著名的5分钟安装

Here's the quick version of the instructions, for those that are already comfortable with performing such installations. More [[WordPress:#Detailed_Instructions|detailed instructions]] follow.

对于那些已经习惯履行这样说明的人来说,这是说明的快速版本。以下是更多的[[WordPress:#Detailed_Instructions|详细说明]]。

  1. Download and unzip the WordPress package, if you haven't already.
  2. 如果你还没有准备好,就下载并解压WordPress软件包
  3. Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.
  4. 在你的网络服务器上为WordPress建立一个数据库和一个MySQL用户,MySQL用户有特权访问和更改它。
  1. Rename the wp-config-sample.php file to wp-config.php.
  2. wp-config-sample.php文件重新命名为wp-config.php.
  3. Open wp-config.php in your favorite text editor and [[WordPress:#Step_3:_Set_up_wp-config.php|fill in your database details]].
  4. 在你最喜爱的文字编辑器上打开wp-config.php并且[[WordPress:#Step_3:_Set_up_wp-config.php|添加上你的数据库详细信息]]
  5. Place the WordPress files in the desired location on your web server:
  6. 将WordPress文档放在你网络服务器上的预期位置上。
    • If you want to integrate WordPress into the root of your domain (e.g. http://example.com/), move or upload all contents of the unzipped WordPress directory (but excluding the directory itself) into the root directory of your web server.
    • 如果你想将WordPress整合到你的域根,(例如http://example.com/),将解压的WordPress目录的所有内容(但是不包括目录本身)移到或者上载到你的网络服务器的根目录上
    • If you want to have your WordPress installation in its own subdirectory on your web site (e.g. http://example.com/blog/), rename the directory wordpress to the name you'd like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress installation in a subdirectory called "blog", you should rename the directory called "wordpress" to "blog" and upload it to the root directory of your web server.

      Hint: If your FTP transfer is too slow read how to avoid FTPing at : Step 1: Download and Extract.
    • 如果你想将WordPress安装在你的站点上,它自己的子目录上 (例如http://example.com/blog/),将目录wordpress重新命名为一个你喜欢的子目录名称,并将它移到或者上载到你的网络服务器上。例如,如果你想要将 WordPress安装到一个称为“blog”的子目录中,你应该将称作“wordpress”的目录重命名为”blog“,并把它上载到你的网络服务器的根目录上。

      提示:

如果你的FTP传输太慢了,没有阅读怎样在Step 1: 下载并提取避免FTPing.


  1. Run the WordPress installation script by accessing wp-admin/install.php in your favorite web browser.
  2. 在你最喜欢的网络浏览器上,通过访问wp-admin/install.php来运行WordPress的安装脚本。
    • If you installed WordPress in the root directory, you should visit: http://example.com/wp-admin/install.php
    • 如果你在根目录上安装了WordPress,你应该访问:http://example.com/wp-admin/install.php
    • If you installed WordPress in its own subdirectory called blog, for example, you should visit: http://example.com/blog/wp-admin/install.php
    • 例如,如果你在WordPress自身称作blog的子目录中安装了WordPress,你应该访问:http://example.com/blog/wp-admin/install.php


That's it! WordPress should now be installed.

就这么多了!现在应该安装WordPress了。

See also: 也看看:



Detailed Instructions

详细说明

Step 1: Download and Extract

第一步:下载并提取

Download and unzip the WordPress package from http://wordpress.org/download/. 从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.
  • 如果你要将WordPress上载到远程网络服务器,用你最喜爱的网络浏览器将WordPress软件包下载到你的电脑上,并给软件包解压。
  • If you have shell access to your web server, and are comfortable using console-based tools, you may wish to download WordPress directly to your web server using wget (or lynx or another console-based web browser) if you want to avoid FTPing:
    • wget http://wordpress.org/latest.tar.gz


如果你有shell权限进入你的网络服务器,也满意于使用以控制台为基础的工具。如果你想避免FTPing:

    • wget http://wordpress.org/latest.tar.gz的话,你可以使用wget (or lynx或者另一个以控制台为基础的网络浏览器,来将WordPress直接下载到你的网络浏览器


    • Then unzip the package using:
      tar -xzvf latest.tar.gz

      The WordPress package will extract into a folder called wordpress in the same directory that you downloaded latest.tar.gz.
  • 然后用
    tar -xzvf latest.tar.gz

    来解压软件包。WordPress软件包会提取出一个文件夹,称为wordpress,这个文件夹与你下载的latest.tar.gz处于同一个目录中。
  • If you do not have shell access to your web server, or you are not comfortable using console-based tools, you may wish to deploy WordPress directly to your web server using ZipDeploy.
  • 如果你没有shell权限进入你的网络服务器或者你不满意于使用以控制台为基础的工具,你也许想使用ZipDeploy.

直接将WordPress配置到你的网络服务器上。

Step 2: Create the Database and a User

第二步: 创建数据库和一个用户

If you are using a hosting provider, you may already have a WordPress database set up for you, or there may be an automated setup solution to do so. Check your hosting provider's support pages or your control panel for clues about whether or not you'll need to create one manually.

如果你正在使用一个主机供应商,你可能已经有了一个为你设置好了的 WordPress数据库,或者有一个自动化设置数据库的方法。查看一下你的主机供应商的支持页面或者你的控制面板,寻求线索了解你是否需要动手创造一个WordPress数据库。


If you determine that you'll need to create one manually, follow the instructions for accessing phpMyAdmin on various servers, or follow the instructions for [[WordPress:#Using_cPanel|Using cPanel]] or [[WordPress:#Using phpMyAdmin|Using phpMyAdmin]] below.

如果你决定动手创建一个,依照在各种服务器上进入 phpMyAdmin的指示,或者依照[[WordPress:#Using_cPanel|使用 cPanel]]的指示或者依照下面的[[WordPress:#Using phpMyAdmin|使用phpMyAdmin]]的指示。


If you are installing WordPress on your own web server, follow the [[WordPress:#Using phpMyAdmin|Using phpMyAdmin]] or [[WordPress:#Using the MySQL Client|Using the MySQL Client]] instructions below to create your WordPress username and database.

如果你在你自己的网络服务器上安装WordPress,依照[[WordPress:#Using phpMyAdmin|使用 phpMyAdmin]]或者[[WordPress:#Using the MySQL Client|使用the MySQL Client]]下面的说明来创建你的wordPress用户名和数据库。


Using cPanel

使用 cPanel

Main article: WordPress:Using cPanel

主要的文章: 使用cPanel


If your hosting provider uses cPanel, you may follow these instructions to create your WordPress username and database.

如果你的主机供应商使用cPanel,你可以依据这些说明来创建你的WordPress用户名和数据库。

  1. Log in to your cPanel.
  2. 登录到你的cPanel.
  3. Click MySQL Databases.
  4. 点击MySQL 数据库.
  1. If a user relating to WordPress does not already exist under the Users section, create one:
  2. 如果一个WordPress用户还没有存在在用户部分,创建一个:
    1. Chose a username for WordPress ('wordpress' is good) and enter it in the UserName field.
    2. 为WordPress选一个用户名('wordpress' 较好)并把它输进用户名' 区域。
    1. Choose a difficult-to-guess password (ideally containing a combination of upper- and lower-case letters, numbers, and symbols), and enter it in the Password field.
      1. 选择一个难以猜中的密码(理想的是大小写字母,数字和符号的组合),将它输入到密码栏。
    1. Write down the username and password you chose.
    2. 写下你选中的用户名和密码。
    1. Click Add User.
    2. 点击添加用户
  1. If a database relating to WordPress does not already exist under the Databases section, create one:
  2. 如果一个与WordPress相关的数据库还没有在数据库部分,创建一个:
    1. Choose a name for your WordPress database ('wordpress' or 'blog' are good), enter it in the Db field, and click Add Db.
    2. 为你的WordPress数据库选一个名称,('wordpress' 或者'blog' 较好),将它输进Db 栏,并且点击添加 Db.
  3. Under Databases, select your WordPress username from the User dropdown, then select your WordPress database from the Db dropdown. Make sure All is checked under Privileges, then click Add User to Db.
  4. 数据库下,从用户的下拉列表中选择你的WordPress用户名,然后从Db下拉列表中选择你的WordPress数据库。确保所有的特权情况下,都得到了核实。
  5. When you return to the main MySQL Account Maintenance screen, cPanel will list information about the database you just created. You should see the username you just added to the database (with ALL PRIVILEGES), as well as a few sample Connection Strings for you to use in Perl or PHP scripts to connect to the database. The PHP code will have the following format:
$dbh = mysql_connect("hostname", "username", "<PASSWORD HERE>") or die ("message");
mysql_select_db("databasename");
Write down the values of hostname, username, databasename, and the password you chose. (Note that hostname will usually be localhost.)
  1. 当你返回到主要的MySQL 帐户维持屏面时,c面板会罗列出关于你刚刚创建的数据库的信息。你应该看看你刚刚添加到数据库上的用户名(在拥有所有特权的情况下),你也可以看到一些“连接字符串”,可以在Perl中用到,或者用在PHP脚本中来连接数据库。PHP代码会有一下这些形式:

$dbh = mysql_连接("主机名", "用户名", "<这里是密码>") 或者 die ("消息");


Using phpMyAdmin

使用 phpMyAdmin

If your web server has phpMyAdmin installed, you may follow these instructions to create your WordPress username and database.

如果你的网络服务器安装了phpMyAdmin,你可以遵循以下的指示来创建你的WordPress用户名和数据库。

Note: These instructions are written for phpMyAdmin 2.6.0; the phpMyAdmin user interface can vary slightly between versions. '注:这些说明是针对phpMyAdmin2.6.0的;不同版本的phpMyAdmin用户界面会稍微有所不同。

  1. If a database relating to WordPress does not already exist in the Database dropdown on the left, create one:
  2. 如果一个与WordPress相关的数据库还没有出现在左边的数据库下拉列表上,就要创建一个:
    1. Choose a name for your WordPress database ('wordpress' or 'blog' are good), enter it in the Create new database field, and click Create.
    2. 为你的WordPress数据库选择一个名称('wordpress' 或者'blog' 不错),将它输进创建新的数据库区,并且点击创建
  1. Click the Home icon in the upper left to return to the main page, then click Privileges. If a user relating to WordPress does not already exist in the list of users, create one:
  2. 点击左上方的主页图标,返回主页,然后点击特权.如果一个WordPress的用户还没有存在在用户目录上,创建一个:
    1. Click Add a new User.
    2. 点击增加一个新用户.
    3. Chose a username for WordPress ('wordpress' is good) and enter it in the User name field. (Be sure Use text field: is selected from the dropdown.)
    4. 为WordPress选择一个用户名('wordpress' 就不错)并将它输进用户名 区.(确定使用文本字段:使用下拉列表中选的)
    1. Choose a difficult-to-guess password (ideally containing a combination of upper- and lower-case letters, numbers, and symbols), and enter it in the Password field. (Be sure Use text field: is selected from the dropdown.) Re-enter the password in the Re-type field.
    2. 选一个难以猜中的密码(理想的组合是大写字母,小写字母,数字和符号的集合体),并把它输进Password 区(确定使用了选自下拉列表中的使用文本字段)。在重新输入栏再次输入密码。
    1. Write down the username and password you chose.
    2. 写下你选自的用户名和密码。
    1. Leave all options under Global privileges at their defaults.
    2. 让所有的选择处于默认状态在全局特权下。
    3. Click Go.
    4. 点击 运行.


  1. Return to the Privileges screen and click the Check privileges icon on the user you've just created for WordPress. In the Database-specific privileges section, select the database you've just created for WordPress under the Add privileges to the following database dropdown. The page will refresh with privileges for that database. Click Check All to select all privileges, and click Go.
  2. 返回到特权屏面并且在你刚刚为WordPress创建的用户上点击核实特权图标。在数据库特殊特权部分,在为下面的数据库添加特权 的下拉列表上选自你刚刚为WordPress创建的数据库。页面会刷新,并且出现数据库特权。点击核实所有的来选择所有的特权,并且点击运行.


  1. On the resulting page, make note of the host name listed after Server: at the top of the page. (This will usually be localhost.)
  1. 在随之出现的页面中,在页面的顶上方,在服务器:后面列上主机名。(这个通常是地方主机.)

Using the MySQL Client

使用 MySQL Client

If you have shell access to your web server, are comfortable with using the command line, and your MySQL user has the permissions to create MySQL users and databases, you may follow the example session below to create your WordPress username and database. 如果你有 shell权限进入你的网络服务器,满意于使用命令行,而且你的MySQL用户有权限创建用户和数据库,你可以效法以下的实例部分来创建你的WordPress用户名和数据库。


$ mysql -u adminusername -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5340 to server version: 3.23.54

<pre>
$ mysql -u adminusername -p
输入密码:
欢迎来到 MySQL监控器.  命令行以 or \g结束.
Your MySQL connection id is 5340 to server version: 3.23.54
你的MySQL对于版本: 3.23.54服务器的连接id是5340.


 
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
输入'help;' or '\h'来寻求帮助。输入'\c'来清除缓冲区。
 
mysql> CREATE DATABASE databasename;
Query OK, 1 row affected (0.00 sec)


mysql> 创建数据库 数据库名;
查询 OK, 1 排收到影响 (0.00 秒)
 
mysql> GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname"
    -> IDENTIFIED BY "password";
Query OK, 0 rows affected (0.00 sec)

mysql> 赋予数据库名所有的特权.* TO "wordpressusername"@"hostname"
    -> I由 "密码"鉴别;
查询 OK, 0 rows 收到影响(0.00秒)

  
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)

mysql> EXIT
Bye
$ 

mysql> FLUSH 特权; 查询 OK, 0 rows收到影响(0.01 秒)

mysql> 退出 Bye $

In the above:

在以上中:

  • adminusername will typically be root, unless you have another high-privileged account set up.
  • 管理用户名通常是一个root,除非你又设置了另一个高特权的帐户。
  • wordpress or blog are good values for databasename.
  • 对于数据库用户名来说,wordpress 或者 blog很值。


  • wordpress is a good value for wordpressusername.
  • 对于wordpressusernamewordpress是一个很好的值。
  • hostname will usually be localhost. If you don't know what this value should be, check with your system administrator. If you are the system administrator, figure out what this value should be.
  • 主机名通常是本地主机。如果你不知道这个值应该是怎样的,用你的系统管理者核实一下。如果你是系统管理者,计算出这个值应该是多少。
  • password should be a difficult-to-guess password, ideally containing a combination of upper- and lower-case letters, numbers, and symbols.
  • 密码应该是一个难以猜到的密码,理想的应该是大小写字母,数字和符号的集合体。

Write down the values you used for databasename, wordpressusername, hostname, and password.

写下你为数据库名, wordpress用户名, 主机名, 和 密码设定的数值。

Using Plesk

使用 Plesk

See: Plesk 7 at tamba2.org 看: Plesk 7 at tamba2.org


Step 3: Set up wp-config.php

第三步: 设置 wp-config.php

For the next part, the code you will be looking to change is as follows:

下一个部分中,你注意改变的代码是如下的:

// ** MySQL settings ** //
define('DB_NAME', 'putyourdbnamehere');    // The name of the database
define('DB_USER', 'usernamehere');     // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');


// ** MySQL settings ** //
define('DB_NAME', 'putyourdbnamehere');    // 数据库名
define('DB_USER', 'usernamehere');     // 你的 MySQL 用户名
define('DB_PASSWORD', 'yourpasswordhere'); // ...和密码
define('DB_HOST', 'localhost');    // 99% 的机率,你不用该这个数值
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');


  1. Returning to where you extracted the WordPress package in Step 1, rename the file wp-config-sample.php to wp-config.php.
  1. 返回到第一步,你提取出WordPress软件包的地方,将文件wp-config-sample.php重新命名为wp-config.php
  1. Open the renamed wp-config.php file in your favorite text editor and fill in the following information, per the example above:
  1. 在你最喜爱的文字编辑器中打开重新命名了的wp-config.php文件,按上面的例子,填上以下的信息。
  1. DB_NAME
    The name of the database you created for WordPress in Step 2 .
    DB_名
    你在第2步为WordPress数据库创建的名
  1. DB_USER
    The username you created for WordPress in Step 2.
    DB_用户
    你在第二步为WordPress创建的用户名。
  1. DB_PASSWORD
    The password you chose for the WordPress username in Step 2.
    DB_密码
    你在第二步为WordPress用户名选择的密码
  1. DB_HOST
    The hostname you determined in Step 2 (usually localhost, but not always. See some possible DB_HOST values).
  1. DB_用户
    你在第二步决定的主机名(通常是本地主机,但不是总是那样。看一些可能的 DB_主机值).


  1. DB_CHARSET
    The database character set, normally should not be changed. See WordPress:Editing wp-config.php for details.
    DB_CHARSET
    数据库的字符集设置,通常情况下不会改变。详细信息请看WordPress:Editing wp-config.php
  1. DB_COLLATE
    The database collation should normally be left blank. See WordPress:Editing wp-config.php for details.
    DB_COLLATE
    数据库的校勘通常情况下处于空白状态。详细信息请看编辑wp-config.php
  1. Save the file.
  2. 保存文件。

Step 4: Upload the files

第四步:上载文件

Now you will need to decide where on your web site you'd like your blog to appear: 现在你要决定你希望你的博客在你的站点的哪里出现:

  • In the root directory of your web site. (For example, http://example.com/)
  • 在你的站点的根目录上。(例如,http://example.com/)
  • In a subdirectory of your web site. (For example, http://example.com/blog/)
  • 在你的站点的子目录上。(例如,http://example.com/blog/)


Note: The location of your root web directory in the filesystem on your web server will vary across hosting providers and operating systems. Check with your hosting provider or system administrator if you do not know where this is.

注:你的网络服务器上的文件系统上的根目录位置在主机供应商和操作系统中会有所不同。如果你不知道这个在哪儿,与你的主机供应商或者系统管理者核实一下。

In the Root Directory

在根目录中

  • If you need to upload your files to your web server, use your favorite FTP client to upload all the contents of the wordpress directory (but not the directory itself) into the root directory of your web site.
  • 如果你要将你的文件上载到你的网络服务器上,用你最喜爱的FTP客户来上载wordpress目录的所有内容(但不是目录本身)到你网点的根目录上。
  • If your files are already on your web server, and you are using shell access to install WordPress, move all of the contents of the wordpress directory (but not the directory itself) into the root directory of your web site.
  • 如果你的文件已经在你的网络服务器上,你正使用shell权限来安装WordPress,将wordpress目录的所有内容(但不是目录本身)移到你的网站的根目录上。

In a Subdirectory

在一个子目录上

  • If you need to upload your files to your web server, rename the wordpress directory to your desired name, then use your favorite FTP client to upload the directory to your desired location within the root directory of your web site.
  • 如果你要将你的文件上载到你的网络浏览器上,将wordpress的目录重新命名为一个你喜欢的名字,然后使用你最喜爱的FTP顾客将目录上载到在你的站点范围之内的根目录上你喜欢的位置上。


  • If your files are already on your web server, and you are using shell access to install WordPress, move the wordpress directory to your desired location within the root directory of your web site, and rename the directory to your desired name.
  • 如果你的文件已经在你的网络服务器上,你正使用shell权限来安装WordPress,将wordpress目录移到你的网站上根目录范围以内的一个你喜欢的位置上,并且给目录重新命名为一个你喜欢的名字。

Step 5: Run the Install Script

第五步: 运行安装脚本

Point your favorite web browser to start the installation script. 指定你最喜欢的网络浏览器开始安装脚本

  • If you placed the WordPress files in the root directory, you should visit: http://example.com/wp-admin/install.php
  • 如果你将Worepress文件放在了根目录上,你应该访问;

http://example.com/wp-admin/install.php


  • If you placed the WordPress files in a subdirectory called blog, for example, you should visit: http://example.com/blog/wp-admin/install.php
  • 例如,如果你将Wordpress文件放在了一个称为blog的子目录中,你应该访问:

http://example.com/blog/wp-admin/install.php


The following screenshots show how the installation progresses. Notice in the screen, Entering the details, you enter your Weblog title and your e-mail address. Also displayed is a check-box asking if you would like your blog to appear in search engines like Google and Technorati. Leave the box checked if you would like your blog to be visible to everyone, including search engines, and uncheck the box if you want to block search engines, but allow normal visitors. Note all this information can be changed later in your Administration Panels.

以下的屏幕截图显示了安装过程是怎样进行的。注意看屏幕,输入详细的信息,输入你的博客名和你的邮箱地址。再在看一个检查框中一下,询问一下你是否希望自己的博客出现在如Google和Technorai这样的搜索引擎中。如果你想包括搜索引擎在内的每个人都可以访问你的博客,选中检查框,如果你允许普通游客,但不允许搜索引擎访问你的博客,就不要选中检查框。注意所有的这些信息以后能在你的管理面板. 中更改。



Version 2.3 2.3版本'

[[WordPress:Image:install23-step0.png|left|thumb|300px|WordPress 2.3版本, 输入详细信息] left|thumb|300px|WordPress 2.3版本, 都完成了!



Install Script Troubleshooting

发现并修理安装脚本时的故障

  • If you get an error about the database when you run the install script:
  • 如果你在安装脚本的时候,遇到了一个安装数据库方面的错误信息:
    • Go back to [[WordPress:#Step_2:_Create_the_Database_and_a_User|Step 2]] and [[WordPress:#Step_3:_Set_up_wp-config.php|Step 3]], and be sure you got all the correct database information and that it was entered correctly into wp-config.php.
    • 返回到[[WordPress:#Step_2:_Create_the_Database_and_a_User|第二步]] and [[WordPress:#Step_3:_Set_up_wp-config.php|第三步]], 确保你获得了所有的数据库的正确信息,并且正确的输进了wp-config.php.
    • Be sure you granted your WordPress user permission to access your WordPress database in Step 3.
    • 确保你在第三步时给予了你的WordPress用户权限进入你的Wordpress数据库。


    • Be sure the database server is running.
    • 确保数据库服务器在运行。


Common Installation Problems

常见安装问题

The following are some of the most common installation problems. For more information and troubleshooting for problems with your WordPress installation, check out WordPress:FAQ Installation and WordPress:FAQ Troubleshooting.

以下是一些最常见的安装问题。关于更多的安装Wordpress的问题和发现并修理故障问题的信息,请查看常见问题解答 安装常见问题解答 发现并修理故障.


I see lots of Headers already sent errors. How do I fix this?
You probably introduced a syntax error in editing wp-config.php.

;我看见了许多Headers已经发送错误。我怎么解决这个问题?:你也许在编辑wp-config.php的时候,引进了一个句法错误。


  1. Download wp-config.php (if you don't have shell access).
  2. 下载wp-config.php(如果你没有shell权限)
  1. Open it in your favorite text editor.
  2. 在你最喜爱的文本编辑器中将它打开。


  1. Check that the first line contains nothing but <?php, and that there is no text before it (not even whitespace).
  2. 核实一下第一行除了<?php之外什么也不没有,而且它的前面没有文字,(甚至没有空格)。


  1. Check that the last line contains nothing but ?>, and that there is no text after it (not even whitespace)
  1. 核实一下最后一行除了?>之外什么也没有,而且它的后面没有文字(甚至没有空格)。
  1. Save the file, upload it again if necessary, and reload the page in your browser.
  1. 保存文件,如果需要的话,再次上载一遍,将网页重新载入你的浏览器。
My page comes out gibberish. When I look at the source I see a lot of "<?php ?>" tags.
If the <?php ?> tags are being sent to the browser, it means your PHP is not working properly. All PHP code is supposed to be executed before the server sends the resulting HTML to your web browser. (That's why it's called a preprocessor.) Make sure your web server meets the requirements to run WordPress, that PHP is installed and configured properly, or contact your hosting provider or system administrator for assistance.


;我的网页出来一些杂乱无章的语句,当我查看源头,我看见了许多"<?php ?>"的标签。 如果"<?php ?>"标签被输入了浏览器,这意味着你的PHP没有正常的运行。所有的PHP代码应该是在服务器向你的网络浏览器发送HTML结果之前执行的。(这就是它称作处理程序的原因。)确保你的网络服务器符合运行Wordpress的要求,PHP安装了,并且得到了妥当的配置,或者联系你的主机供应商或者系统管理者寻求的帮助。


I keep getting an Error connecting to database message but I'm sure my configuration is correct.
Try resetting your MySQL password manually. If you have access to MySQL via shell, try issuing:
SET PASSWORD FOR 'wordpressusername'@'hostname' = OLD_PASSWORD('password');

;我一直收到一个连接数据库的错误信息,但我确定我的配置是正确的。尝试着动手设置一下你的密码。如果你有权限通过shell进入MySQL,试着发布:

为'wordpressusername'@'hostname' = OLD_PASSWORD('password'); 设置密码;


If you are using a version of MySQL prior to 4.1, use PASSWORD instead of OLD_PASSWORD. If you do not have shell access, you should be able to simply enter the above into an SQL query in phpMyAdmin. Failing that, you may need to use your host's control panel to reset the password for your database user.

;如果你使用的是MySQL4.1之前的一个版本,使用密码而不是旧的_密码.如果你没有shell使用权限,你仅要把以上的输入进phpMyAdmin中的SQL询问。做不到以上这一点,你也许要在你的主机控制面板上为你的数据库用户重新设置一个密码。


My image/MP3 uploads aren't working.
If you use the Rich Text Editor on a blog that's installed in a subdirectory, and drag a newly uploaded image into the editor field, the image may vanish a couple seconds later. This is due to a problem with TinyMCE (the rich text editor) not getting enough information during the drag operation to construct the path to the image or other file correctly. The solution is to NOT drag uploaded images into the editor. Instead, click and hold on the image and select "Send to Editor."

;我的图片/MP3上传不了。 如果你在一个安装在子目录上的博客中使用Rich文字编辑器,并向编辑领域拖动一个刚刚上载的图像,图像可能几秒钟后就会消失。这是由TinyMCE产生的问题引起的,(丰富的文本编辑器,在进行拖动时没有得到足够的信息来为图像或其它的文件正确地建立一个路线。解决的办法是不要向编辑器拖动上载的图像。相反,点击并按住形象,并且选择“发送到编辑器”


Installation Instructions in Other Languages

其它语言的安装说明

For installation instructions in other languages, see WordPress:WordPress in Your Language. 关于以其它语言安装的说明,请看你的语言的WordPress.

Installing Multiple Blogs

安装多个博客

Detailed information about WordPress:Installing Multiple Blogs is available. 提供关于安装多个博客的详细信息

Installing WordPress Locally

本地安装WordPress

If you have a sufficiently powerful home computer and a sufficiently fast broadband connection, you may want to avoid certain hosting charges by using your own computer as a server. The following tutorials will show you how to setup a server environment and install WordPress on your home computer.

如果你有一个足够强大的家用电脑和一个足够强大的宽带连接,你也许会将你自己的电脑作为一个服务器来避免一定的托管费用。以下的教程会向你展示怎样设置一个服务器环境和怎样在你的家用电脑上安装WordPress.








Resources

资源