WordPress:Using cPanel

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

This tutorial will take you step-by-step through the process of installling WordPress with CPanel.

这个指南会指导你一步步地使用CPanel安装WordPress。

Login to your site[ ]

登录的你的站点[ ]

Login to your website cpanel. 登录到你的网站cpanel。

You should see many icons, but you want just the mySQL databases one:

你将会看到许多图标,但是你只是想要mySQL 数据库图标:

center|thumb|Initial icon

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.

在那儿,你可能已经有了其它的数据库或者信息,只要忽视所有这些内容-你并不需要这些内容。

center|thumb|552px|mySQL details

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创建单独的帐户。

center|thumb|548px|Set User info

center|thumb|548px|设置用户信息

Then click Add User and you will see this screen 然后,点击添加用户,你就会看到这个界面 center|thumb|322px|Success !

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.

创建数据库的时间。你现在应该看看下面的界面。注意你-用户-列在了框的顶上方,而且也在行的下方。

center|thumb|552px|mySQL details

center|thumb|552px|mySQL 详细信息

Now complete the box where wordpress is listed. Then click Add Db

现在完成列出wordpress的框。然后,点击添加 Db

center|thumb|317px|Success !

center|thumb|317px|成功了 !

Database is now created. 数据库现在创建好了。

The Really Important 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. 看看这两个下拉框。

center|thumb|554px|The vital click

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添加用户的按钮。

This is REALLY important - nothing will work unless you click that button. Honest, it won't. Click it.

真的重要-除非你点击这个按钮,否则,任何操作都不会运行。真的,不会。点击按钮。

You should see this. 你会看到。 center|thumb|386px|Success !

center|thumb|386px|成功了 !

Click Go Back 点击返回

Connection Information[ ]

连接信息[ ]

You've now got three working pieces of information for your wp-config.php file.

你现在为你的wp-config.php文件,得到三方面的信息。

This next shot will help you find the fourth. 接着是帮你找到第四方面的信息。 center|thumb|580px|All the info you need

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 配置文件[ ]

Open the file wp-config-sample.php using a text editor.

使用文本编辑器打开文件wp-config-sample.php

There are the four pieces of information you need to complete in the file. The following is an example; yours may look slightly different:

你需要完成这个文件中,四个方面的信息。下面是个例子,你的文件中的部分,看起来可能会有所不同。

// ** 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


// ** MySQL 设置 ** //
定义('DB_NAME', 'wptemp_wordpress');     // 数据库名
定义('DB_USER', 'wptemp_Podz');     // 你的MySQL 用户名
定义('DB_PASSWORD', 'secret'); // ...和密码
定义('DB_HOST', 'localhost');     // 你可能99% 都不需要更改这个参数值


Note that you must include the prefix that CPanel attaches to your details.

注意你必须包含CPanel附加到你详细信息上的前缀。

Save the completed file as wp-config.php. 将完成的文件保存为wp-config.php

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文件,包括以上的文件,上传到你想要存放的目录上。这个目录不需要有什么特别的名称-根据你的选择。

Let's say you uploaded the files to a directory called blog - use your browser to go to

加入你将文件上传到称为博客的目录 –使用你的浏览器进入

www.example.com/blog/wp-admin/install.php and then you'll see this screen:

www.example.com/blog/wp-admin/install.php 然后你将会看到这个界面:

center|thumb|400px|This is easy isn't it ? :)

center|thumb|400px|真很简单,不是吗? :)

Have fun ! 玩的开心!


Resources[ ]

资源[ ]