WordPress:Installing WordPress

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

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


免费安装WordPress

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


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

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


你需要为安装准备的东西

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

  • An FTP 客户端 (如果你需要在一个远程服务器上安装WordPress)
  • 你精选的网络浏览器

你需要为安装做的事情

Begin your installation by: 开始安装:

  1. 检查一下确保你和你的网络主机拥有运行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

资源