WIKI使用導(dǎo)航
站長百科導(dǎo)航
站長專題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢
- 虛擬主機(jī)
- cPanel
- 網(wǎng)址導(dǎo)航專題
- 云計(jì)算
- 微博營銷
- 虛擬主機(jī)管理系統(tǒng)
- 開放平臺
- WIKI程序與應(yīng)用
- 美國十大主機(jī)
WordPress:CPanel X
This tutorial will take you step-by-step through the process of installling WordPress with CPanel.
這個指南會帶你一步步地使用CPanel安裝WordPress。
Login to your site
登錄到你的站點(diǎn)
Login to your website cpanel. 登錄到你的網(wǎng)站cpanel。
You should see many icons, but you want just the mySQL databases one:
你應(yīng)該看到許多圖標(biāo),但是你只想看到mySQL 數(shù)據(jù)庫:
Click it. 點(diǎn)擊這個圖標(biāo)。
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.
在那里你可能已經(jīng)有了另外的數(shù)據(jù)庫和其它的信息,你只要忽視這些內(nèi)容-你不需要這些內(nèi)容。
center|thumb|552px|mySQL details
center|thumb|552px|mySQL 詳細(xì)信息
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.
完成下面暗示的框。并且復(fù)制你的密碼-不要依賴你自己來記住密碼。注意:如果你已經(jīng)有個用戶帳戶,用于另一個數(shù)據(jù)庫,你可以使用這個帳戶作為WordPress帳戶,無需為WordPress單獨(dú)創(chuàng)建帳戶。
center|thumb|548px|Set User info
center|thumb|548px|設(shè)置用戶信息
Then click Add User and you will see this screen
然后點(diǎn)擊添加用戶,你就會看到這個界面
Click Go Back 點(diǎn)擊返回
Create Database
創(chuàng)建數(shù)據(jù)庫
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.
是創(chuàng)建數(shù)據(jù)庫的時(shí)候了。你現(xiàn)在應(yīng)該看看下面的界面。注意你- 用戶 –列表了頂上方的框子中,也在行的下面。
center|thumb|552px|mySQL details
center|thumb|552px|mySQL 詳細(xì)信息
Now complete the box where wordpress is listed. Then click Add Db
現(xiàn)在完成列出wordpress的框。然后點(diǎn)擊添加Db center|thumb|317px|Success !
Database is now created. 數(shù)據(jù)庫現(xiàn)在創(chuàng)建了。
The Really Important Bit
真正重要的Bit
The two pieces of information you just added are now here on this screen: the user name and the database name.
你剛剛添加的兩條信息,現(xiàn)在出現(xiàn)在這個界面上:用戶名和數(shù)據(jù)庫名。
If you have other databases and users, the whole screen may look different, but this small part will look the same.
如果你還有個數(shù)據(jù)庫和用戶,整個界面看起來不同,但是這個部分看起來仍然相同。 Look at the two drop-down boxes.
看看兩個下拉框。
center|thumb|554px|The vital click
center|thumb|554px|重要的點(diǎn)擊
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為每個你添加的名稱加上了前綴。)如果你需要,點(diǎn)擊下拉框,使得你添加的名稱顯示在左邊的框中。同樣適用于Db: –也在框中得到數(shù)據(jù)庫名。
When finished, click the button that says Add User to Db.
完成后,點(diǎn)擊顯示按鈕向Db添加用戶。
Thisis REALLY important - nothing will work unless you click that button. Honest, it won't. Click it.
這真的很重要-只有你點(diǎn)擊按鈕,否則任何操作都不會執(zhí)行。真的,是這樣的。點(diǎn)擊按鈕。
You should see this. 你將會看到。 center|thumb|386px|Success !
Click Go Back 點(diǎn)擊返回
Connection Information
連接信息
You've now got three working pieces of information for your wp-config.php file.
你現(xiàn)在為你的wp-config.php文件得到三條運(yùn)行信息。
This next shot will help you find the fourth.
下一步為你找到第四條信息。
center|thumb|580px|All the info you need
Look at the Connection String that you get.
請看看你得到的連接字符串。
Does it say localhost ? If so, excellent. Job is done here. Skip down a section.
是否顯示本地主機(jī)?如果是的,很好。你的任何已經(jīng)完成。跳到下一個部分。
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.
如果沒有顯示本地主機(jī),你需要的信息仍然在那兒-只要仔細(xì)地將本地主機(jī)出現(xiàn)在這個截屏上的位置與你的連接字符串中出現(xiàn)的位置相比較。記住這個信息。
Editing the WordPress Config File
編輯WordPress Config 文件
Open the file wp-config-sample.php using a 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:
使用文本編輯器打開文件wp-config-sample.php。 你需要完成文件中的四條信息。下面是個例子;你的可能看起來稍微不同:
// ** 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 settings ** // define('DB_NAME', 'wptemp_wordpress'); // 數(shù)據(jù)庫名 define('DB_USER', 'wptemp_Podz'); // 你的MySQL 用戶名 define('DB_PASSWORD', 'secret'); // ...和密碼 define('DB_HOST', 'localhost'); // 99% 的情況下,你不需要更改這個參數(shù)值
Note that you must include the prefix that CPanel attaches to your details.
Save the completed file as wp-config.php.
注意你必須包含CPanel向你的相信信息中附加的前綴。 將已完成的文件保存為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文件,包括上述的文件,上傳到你中意的目錄中。目錄不需要特別的命名-根據(jù)你的選擇。
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:
假如你將文件上傳到稱為博客 的目錄中-使用你的瀏覽器進(jìn)入 www.example.com/blog/wp-admin/install.php你將會看到這個界面:
center|thumb|400px|This is easy isn't it ? :)
center|thumb|400px|這很簡單,是不是 :)
Have fun ! 玩得開心!
Resources
資源