编辑“WordPress:CPanel X”
该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第1行: | 第1行: | ||
This tutorial will take you step-by-step through the process of installling WordPress with CPanel. | |||
这个指南会带你一步步地使用CPanel安装WordPress。 | 这个指南会带你一步步地使用CPanel安装WordPress。 | ||
== Login to your site == | |||
== 登录到你的站点 == | == 登录到你的站点 == | ||
Login to your website cpanel. | |||
登录到你的网站cpanel。 | 登录到你的网站cpanel。 | ||
You should see many icons, but you want just the '''mySQL databases''' one: | |||
你应该看到许多图标,但是你只想看到'''mySQL 数据库''': | 你应该看到许多图标,但是你只想看到'''mySQL 数据库''': | ||
[[WordPress:Image:Cpanel1.gif|center|thumb|Initial icon]] | |||
[[WordPress:Image:Cpanel1.gif|center|thumb|最初的图标]] | [[WordPress:Image:Cpanel1.gif|center|thumb|最初的图标]] | ||
Click it. | |||
点击这个图标。 | 点击这个图标。 | ||
This is where all the action takes place. | |||
这是所有操作开始地方。 | 这是所有操作开始地方。 | ||
You may already have other databases and other information there, but just ignore it all - you don't need it. | |||
在那里你可能已经有了另外的数据库和其它的信息,你只要忽视这些内容-你不需要这些内容。 | 在那里你可能已经有了另外的数据库和其它的信息,你只要忽视这些内容-你不需要这些内容。 | ||
[[WordPress:Image:cpanel2.gif|center|thumb|552px|mySQL details]] | |||
[[WordPress:Image:cpanel2.gif|center|thumb|552px|mySQL 详细信息]] | [[WordPress:Image:cpanel2.gif|center|thumb|552px|mySQL 详细信息]] | ||
== Add User == | |||
== 添加用户 == | == 添加用户 == | ||
Complete the boxes indicated below. And copy your password - don't trust yourself to remember it. Note: If you already have a user account that you use with another database then you can use it without creating a separate account for WordPress. | |||
完成下面暗示的框。并且复制你的密码-不要依赖你自己来记住密码。注意:如果你已经有个用户帐户,用于另一个数据库,你可以使用这个帐户作为WordPress帐户,无需为WordPress单独创建帐户。 | 完成下面暗示的框。并且复制你的密码-不要依赖你自己来记住密码。注意:如果你已经有个用户帐户,用于另一个数据库,你可以使用这个帐户作为WordPress帐户,无需为WordPress单独创建帐户。 | ||
[[WordPress:Image:cpanel3.gif|center|thumb|548px|Set User info]] | |||
[[WordPress:Image:cpanel3.gif|center|thumb|548px|设置用户信息]] | [[WordPress:Image:cpanel3.gif|center|thumb|548px|设置用户信息]] | ||
Then click '''Add User''' and you will see this screen | |||
然后点击'''添加用户''',你就会看到这个界面 | 然后点击'''添加用户''',你就会看到这个界面 | ||
[[WordPress:Image:cpanel4.gif|center|thumb|322px|Success !]] | |||
[[WordPress:Image:cpanel4.gif|center|thumb|322px|成功 !]] | [[WordPress:Image:cpanel4.gif|center|thumb|322px|成功 !]] | ||
Click '''Go Back''' | |||
点击'''返回''' | 点击'''返回''' | ||
== Create Database == | |||
== 创建数据库 == | == 创建数据库 == | ||
Time to make a database. You should now be looking at the screen below. Note that you - the User - are listed in a box at the top, and also below the line too. | |||
是创建数据库的时候了。你现在应该看看下面的界面。注意你- 用户 –列表了顶上方的框子中,也在行的下面。 | 是创建数据库的时候了。你现在应该看看下面的界面。注意你- 用户 –列表了顶上方的框子中,也在行的下面。 | ||
[[WordPress:Image:cpanel6.gif|center|thumb|552px|mySQL details]] | |||
[[WordPress:Image:cpanel6.gif|center|thumb|552px|mySQL 详细信息]] | [[WordPress:Image:cpanel6.gif|center|thumb|552px|mySQL 详细信息]] | ||
Now complete the box where '''wordpress''' is listed. Then click '''Add Db''' | |||
现在完成列出'''wordpress'''的框。然后点击'''添加Db''' | 现在完成列出'''wordpress'''的框。然后点击'''添加Db''' | ||
[[WordPress:Image:cpanel7.gif|center|thumb|317px|Success !]] | |||
[[WordPress:Image:cpanel7.gif|center|thumb|317px|成功!]] | [[WordPress:Image:cpanel7.gif|center|thumb|317px|成功!]] | ||
Database is now created. | |||
数据库现在创建了。 | 数据库现在创建了。 | ||
== The Really Important Bit == | |||
==真正重要的Bit == | ==真正重要的Bit == | ||
The two pieces of information you just added are now here on this screen: the user name and the database name. | |||
你刚刚添加的两条信息,现在出现在这个界面上:用户名和数据库名。 | 你刚刚添加的两条信息,现在出现在这个界面上:用户名和数据库名。 | ||
If you have other databases and users, the whole screen may look different, but this small part will look the same. | |||
如果你还有个数据库和用户,整个界面看起来不同,但是这个部分看起来仍然相同。 | 如果你还有个数据库和用户,整个界面看起来不同,但是这个部分看起来仍然相同。 | ||
Look at the two drop-down boxes. | |||
看看两个下拉框。 | 看看两个下拉框。 | ||
[[WordPress:Image:cpanel8.gif|center|thumb|554px|The vital click]] | |||
[[WordPress:Image:cpanel8.gif|center|thumb|554px|重要的点击]] | [[WordPress:Image:cpanel8.gif|center|thumb|554px|重要的点击]] | ||
The '''User''' box MUST contain the name that you added first above. (Note that for each name you put in, the CPanel has added a prefix.) If you need to, click the drop down to get the name you added to appear in the left hand box. The same applies to the '''Db:''' - get the name of the database in the box too. | |||
'''用户'''框必须包含你首先添加的名称。(注意,CPanel为每个你添加的名称加上了前缀。)如果你需要,点击下拉框,使得你添加的名称显示在左边的框中。同样适用于'''Db:''' –也在框中得到数据库名。 | |||
''' | When finished, click the button that says '''Add User to Db'''. | ||
完成后,点击显示按钮'''向Db添加用户'''。 | 完成后,点击显示按钮'''向Db添加用户'''。 | ||
Thisis ''REALLY'' important - nothing will work unless you click that button. Honest, it won't. Click it. | |||
这''真的''很重要-只有你点击按钮,否则任何操作都不会执行。真的,是这样的。点击按钮。 | 这''真的''很重要-只有你点击按钮,否则任何操作都不会执行。真的,是这样的。点击按钮。 | ||
You should see this. | |||
你将会看到。 | 你将会看到。 | ||
[[WordPress:Image:cpanel9.gif|center|thumb|386px|Success !]] | |||
[[WordPress:Image:cpanel9.gif|center|thumb|386px|成功 !]] | [[WordPress:Image:cpanel9.gif|center|thumb|386px|成功 !]] | ||
Click '''Go Back''' | |||
点击'''返回''' | 点击'''返回''' | ||
== Connection Information == | |||
== 连接信息== | == 连接信息== | ||
You've now got three working pieces of information for your <tt>wp-config.php</tt> file. | |||
你现在为你的<tt>wp-config.php</tt>文件得到三条运行信息。 | 你现在为你的<tt>wp-config.php</tt>文件得到三条运行信息。 | ||
This next shot will help you find the fourth. | |||
下一步为你找到第四条信息。 | 下一步为你找到第四条信息。 | ||
[[WordPress:Image:cpanel10.gif|center|thumb|580px|All the info you need]] | |||
[[WordPress:Image:cpanel10.gif|center|thumb|580px|你需要的所有信息]] | [[WordPress:Image:cpanel10.gif|center|thumb|580px|你需要的所有信息]] | ||
Look at the '''Connection String''' that you get. | |||
请看看你得到的'''连接字符串'''。 | 请看看你得到的'''连接字符串'''。 | ||
Does it say '''localhost''' ? If so, excellent. Job is done here. Skip down a section. | |||
是否显示'''本地主机'''?如果是的,很好。你的任何已经完成。跳到下一个部分。 | 是否显示'''本地主机'''?如果是的,很好。你的任何已经完成。跳到下一个部分。 | ||
If it does NOT say '''localhost''', the information you need is still there - just carefully compare where '''localhost''' appears in this screenshot to what you have in your connection string. Remember this information. | |||
如果没有显示'''本地主机''',你需要的信息仍然在那儿-只要仔细地将'''本地主机'''出现在这个截屏上的位置与你的连接字符串中出现的位置相比较。记住这个信息。 | 如果没有显示'''本地主机''',你需要的信息仍然在那儿-只要仔细地将'''本地主机'''出现在这个截屏上的位置与你的连接字符串中出现的位置相比较。记住这个信息。 | ||
== Editing the WordPress Config File == | |||
== 编辑WordPress Config 文件 == | == 编辑WordPress Config 文件 == | ||
Open the file <tt>wp-config-sample.php</tt> using a [[WordPress:Glossary#Text editor|text editor]]. | |||
There are the four pieces of information you need to complete in the file. The following is an example; yours may look slightly different: | |||
使用[[WordPress:Glossary#Text editor|文本编辑器]]打开文件<tt>wp-config-sample.php</tt>。 | 使用[[WordPress:Glossary#Text editor|文本编辑器]]打开文件<tt>wp-config-sample.php</tt>。 | ||
你需要完成文件中的四条信息。下面是个例子;你的可能看起来稍微不同: | 你需要完成文件中的四条信息。下面是个例子;你的可能看起来稍微不同: | ||
<pre> | |||
// ** MySQL settings ** // | |||
define('DB_NAME', 'wptemp_wordpress'); // The name of the database | |||
define('DB_USER', 'wptemp_Podz'); // Your MySQL username | |||
define('DB_PASSWORD', 'secret'); // ...and password | |||
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value | |||
</pre> | |||
<pre> | <pre> | ||
// ** MySQL settings ** // | // ** MySQL settings ** // | ||
第90行: | 第171行: | ||
define('DB_HOST', 'localhost'); // 99% 的情况下,你不需要更改这个参数值 | define('DB_HOST', 'localhost'); // 99% 的情况下,你不需要更改这个参数值 | ||
</pre> | </pre> | ||
Note that you must include the prefix that CPanel attaches to your details. | |||
Save the completed file as <tt>wp-config.php</tt>. | |||
注意你必须包含CPanel向你的相信信息中附加的前缀。 | 注意你必须包含CPanel向你的相信信息中附加的前缀。 | ||
将已完成的文件保存为<tt>wp-config.php</tt>。 | 将已完成的文件保存为<tt>wp-config.php</tt>。 | ||
== Install == | |||
== 安装 == | == 安装 == | ||
Upload all the WordPress files, including the file above, to the directory where you want it to be. It doesn't have to be called anything in particular - your choice. | |||
将所有的WordPress文件,包括上述的文件,上传到你中意的目录中。目录不需要特别的命名-根据你的选择。 | 将所有的WordPress文件,包括上述的文件,上传到你中意的目录中。目录不需要特别的命名-根据你的选择。 | ||
Let's say you uploaded the files to a directory called <tt>blog</tt> - use your browser to go to | |||
<tt><nowiki>www.example.com/blog/wp-admin/install.php</nowiki></tt> and then you'll see this screen: | |||
假如你将文件上传到称为<tt>博客</tt> 的目录中-使用你的浏览器进入 | 假如你将文件上传到称为<tt>博客</tt> 的目录中-使用你的浏览器进入 | ||
<tt><nowiki>www.example.com/blog/wp-admin/install.php</nowiki></tt>你将会看到这个界面: | <tt><nowiki>www.example.com/blog/wp-admin/install.php</nowiki></tt>你将会看到这个界面: | ||
[[WordPress:Image:install21-step0-cropped.png|center|thumb|400px|This is easy isn't it ? :)]] | |||
[[WordPress:Image:install21-step0-cropped.png|center|thumb|400px|这很简单,是不是 :)]] | [[WordPress:Image:install21-step0-cropped.png|center|thumb|400px|这很简单,是不是 :)]] | ||
Have fun ! | |||
玩得开心! | 玩得开心! | ||
---- | ---- | ||
---- | |||
==Resources== | |||
==资源== | ==资源== | ||
* [http://www.tamba2.org.uk/wordpress/ Podz' WordPress Guides] | |||
* [http://amxhost.com/cpanelmovies.html AmxHost CPanel Tutorials (Flash)] | |||
* [http://www.tamba2.org.uk/wordpress/ Podz的 WordPress 指南] | * [http://www.tamba2.org.uk/wordpress/ Podz的 WordPress 指南] | ||
* [http://amxhost.com/cpanelmovies.html AmxHost CPanel 指南 (Flash)] | * [http://amxhost.com/cpanelmovies.html AmxHost CPanel 指南 (Flash)] |