WordPress: Uploading wordPress to a remote host:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: (''This is part 2 of the Using FileZilla guide''.) To upload (or delete) files and folders to your web host, you will need an FTP application. One of many f...)
 
无编辑摘要
第1行: 第1行:
(''This is part 2 of the [[WordPress:Using_FileZilla|Using FileZilla guide]]''.)
(''This is part 2 of the [[WordPress:Using_FileZilla|Using FileZilla guide]]''.)
('' 这是[[WordPress:Using_FileZilla|使用FileZilla指南]]的第2部分''。)


To upload (or delete) files and folders to your web host, you will need an FTP application. One of many free options that are at your disposal is [[WordPress:Using FileZilla|FileZilla]]. Though written using screenshots from a Windows XP machine, using FileZilla, the following instructions carry over to just about every FTP client with a GUI (Graphical User Interface). You may want to read how to [[WordPress:Using_FileZilla|Set up FileZilla]] for your server, before you read the following.  
To upload (or delete) files and folders to your web host, you will need an FTP application. One of many free options that are at your disposal is [[WordPress:Using FileZilla|FileZilla]]. Though written using screenshots from a Windows XP machine, using FileZilla, the following instructions carry over to just about every FTP client with a GUI (Graphical User Interface). You may want to read how to [[WordPress:Using_FileZilla|Set up FileZilla]] for your server, before you read the following.  
要向你的网络主机上传(或者删除文件),你需要FTP应用软件。你可以处理的许多免费选项之一就是[[WordPress:Using FileZilla|FileZilla]]。虽然是使用Windows XP系统的屏面截图编写的,使用FileZilla,将下面的说明执行到每个拥有GUI(图形用户界面)的FTP client上。在阅读这些说明之前,你可能需要阅读怎样[[WordPress:Using_FileZilla|设置 FileZilla]]处理服务器。


== Uploading Files ==
== Uploading Files ==
== 上传文件 ==


How your server is setup differs from host to host. The screen shots you see here show two generic hosts:
How your server is setup differs from host to host. The screen shots you see here show two generic hosts:
每个主机上的服务器设置可能都不同。你在这里看到的屏面截图显示了两类主机:


[[WordPress:Image:podz_filezilla_4.gif|left|thumb|300px|Figure 1: Host example #1]]
[[WordPress:Image:podz_filezilla_4.gif|left|thumb|300px|Figure 1: Host example #1]]
[[WordPress:Image:podz_filezilla_5.gif|right|thumb|300px|Figure 2: Host example #2]]
[[WordPress:Image:podz_filezilla_5.gif|right|thumb|300px|Figure 2: Host example #2]]
<div style="clear:both;margin:10px">
</div>
[[WordPress:Image:podz_filezilla_4.gif|left|thumb|300px|图 1: 主机例子 #1]]
[[WordPress:Image:podz_filezilla_5.gif|right|thumb|300px|图 2: 主机例子 #2]]
<div style="clear:both;margin:10px">
<div style="clear:both;margin:10px">
</div>
</div>


Your screen could have <tt>htdocs</tt> or <tt>public_html</tt> where the screenshots show <tt>mainwebsite_html</tt>.
Your screen could have <tt>htdocs</tt> or <tt>public_html</tt> where the screenshots show <tt>mainwebsite_html</tt>.
你的界面可能有<tt>htdocs</tt>或者<tt>public_html</tt>,屏面截图在这里显示为<tt>mainwebsite_html</tt>。


To install WordPress double-click the one that is web-root directory for webpages on your server. This is usually named <tt>htdocs</tt>, <tt>public_html</tt>, <tt>mainwebsite_html</tt>, <tt>www</tt>, <tt>web</tt>, or something very similar. The other folders are not of consequence in installing WordPress.
To install WordPress double-click the one that is web-root directory for webpages on your server. This is usually named <tt>htdocs</tt>, <tt>public_html</tt>, <tt>mainwebsite_html</tt>, <tt>www</tt>, <tt>web</tt>, or something very similar. The other folders are not of consequence in installing WordPress.
要安装WordPress,请双击你的服务器网页的根目录。这个目录通常命名为<tt>htdocs</tt>, <tt>public_html</tt>, <tt>mainwebsite_html</tt>, <tt>www</tt>, <tt>web</tt>,或者其它相似的名称。安装WordPress时,其它文件夹并不重要。


You should now see listing of files and folders that are contained inside your server's root folder. Just how many there are depends on what and how much you have on your website.
You should now see listing of files and folders that are contained inside your server's root folder. Just how many there are depends on what and how much you have on your website.
现在你会在服务器根目录上,看到文件和文件夹的列表。有多少文件和文件夹,取决于你的网站上有多少。


The point of this exercise is to upload WordPress, so let us continue down that road:
The point of this exercise is to upload WordPress, so let us continue down that road:
关键是要上传WordPress,因此,我们现在继续:


Right click in the server window:
Right click in the server window:
在服务器窗口中点击:


[[WordPress:Image:podz_filezilla_6.gif|center|thumb|400px|Figure 3 : Server window]]
[[WordPress:Image:podz_filezilla_6.gif|center|thumb|400px|Figure 3 : Server window]]
[[WordPress:Image:podz_filezilla_6.gif|center|thumb|400px|图3 : 服务器窗口]]


Click '''Create Directory''', enter the name you want, and click '''Okay'''.
Click '''Create Directory''', enter the name you want, and click '''Okay'''.
点击'''创建目录''',输入你命名的目录名称,并且点击'''Okay'''。


'''NOTE:''' The name you choose will be where your WordPress weblog will appear, and although it can be changed later, it's much better to avoid that by choosing what you want now. For example, if your website has the URL <tt><nowiki>http://example.com</nowiki></tt> and you want your weblog to be located at <tt><nowiki>http://example.com/blog</nowiki></tt>, then name the new folder <tt>blog</tt>.
'''NOTE:''' The name you choose will be where your WordPress weblog will appear, and although it can be changed later, it's much better to avoid that by choosing what you want now. For example, if your website has the URL <tt><nowiki>http://example.com</nowiki></tt> and you want your weblog to be located at <tt><nowiki>http://example.com/blog</nowiki></tt>, then name the new folder <tt>blog</tt>.
'''注:'''你选择的目录名称,就是你的WordPress网络博客即将显示的地址名称。虽然这个名称随后可以更改,但是你最后现在选好,避免以后更改。例如,如果你的网页拥有URL<tt><nowiki>http://example.com</nowiki></tt>而且你希望你的网络日志,位于<tt><nowiki>http://example.com/blog</nowiki></tt>,那么请命名新的文件夹<tt>博客</tt>。


In this example, we have created the directory <tt>blog</tt>.
In this example, we have created the directory <tt>blog</tt>.
在这个例子中,我们已经创建了目录<tt>博客</tt>。


[[WordPress:Image:podz_filezilla_7.gif|center|thumb|256px|Figure 4 : Newly created directory]]
[[WordPress:Image:podz_filezilla_7.gif|center|thumb|256px|Figure 4 : Newly created directory]]
[[WordPress:Image:podz_filezilla_7.gif|center|thumb|256px|图4 : 新创建的目录]]


Now the directory <tt>blog</tt> has been made, double-click on it to open it.
Now the directory <tt>blog</tt> has been made, double-click on it to open it.
现在目录<tt>博客</tt>已经创建好了,双击这个目录,将其打开。


[[WordPress:Image:podz_filezilla_8.gif|center|thumb|406px|Figure 5 : The new and empty directory]]
[[WordPress:Image:podz_filezilla_8.gif|center|thumb|406px|Figure 5 : The new and empty directory]]
[[WordPress:Image:podz_filezilla_8.gif|center|thumb|406px|图5 : 新的空目录]]


Nothing there yet ... but note the folder with the dots following it -- clicking that takes you back up a folder level.
Nothing there yet ... but note the folder with the dots following it -- clicking that takes you back up a folder level.
目录中还没有任何内容…但是注意文件夹后面带有点号—点击,带你备份文件夹层级。


== Upload WordPress ==
== Upload WordPress ==
== 上传WordPress ==


Before you begin to upload WordPress, it is essential to have [http://www.wordpress.org/download downloaded WordPress], and unzipped it, on your local computer. When you unzip the <tt>downloaded .zip</tt> file, a folder called <tt>wordpress</tt> will be created. Please note the location of this folder in your computer. You may also want to prepare the downloaded files for installation, by reading [[WordPress:Installing WordPress]] and completing the relevant steps, such as editing <tt> wp-config-sample.php</tt>.
Before you begin to upload WordPress, it is essential to have [http://www.wordpress.org/download downloaded WordPress], and unzipped it, on your local computer. When you unzip the <tt>downloaded .zip</tt> file, a folder called <tt>wordpress</tt> will be created. Please note the location of this folder in your computer. You may also want to prepare the downloaded files for installation, by reading [[WordPress:Installing WordPress]] and completing the relevant steps, such as editing <tt> wp-config-sample.php</tt>.
在你开始上传WordPress之前,已经拥有[http://www.wordpress.org/download 已下载的 WordPress],并且将其解压到了你的本地电脑上,这一点,很重要。当你解压<tt>downloaded .zip</tt>文件的时候,会创建一个称为<tt>wordpress</tt>的文件夹。请注意这个文件夹在你的电脑上的位置。你可能准备将已下载的文件,安装,请阅读[[WordPress:Installing WordPress|安装WordPress]],完成相关的步骤,例如编辑<tt> wp-config-sample.php</tt>。


In Area 2 of [[WordPress:Using_FileZilla#Set_Up_FileZilla|Using Filezilla -> Figure 1]], find your way to where you have the WordPress folder on your computer after unzipping the zip file that you downloaded.
In Area 2 of [[WordPress:Using_FileZilla#Set_Up_FileZilla|Using Filezilla -> Figure 1]], find your way to where you have the WordPress folder on your computer after unzipping the zip file that you downloaded.
在[[WordPress:Using_FileZilla#Set_Up_FileZilla|使用Filezilla -> 图 1]]的第二个区域,在解压了你下载的文件夹后,查找你将WordPress文件夹放在电脑的什么位置,


[[WordPress:Image:podz_filezilla_9.gif|center|thumb|383px|Figure 6 : Folder navigation - top window]]
[[WordPress:Image:podz_filezilla_9.gif|center|thumb|383px|Figure 6 : Folder navigation - top window]]
[[WordPress:Image:podz_filezilla_9.gif|center|thumb|383px|图6 : 文件夹导航 - top window]]


When you have found it and clicked the <tt>wordpress</tt> folder, the window underneath that will show the contents of said folder:
When you have found it and clicked the <tt>wordpress</tt> folder, the window underneath that will show the contents of said folder:
你找到这个文件夹后,请点击<tt>wordpress</tt>文件夹,下面的窗口会显示上述文件夹的内容:


[[WordPress:Image:podz_filezilla_10.gif|center|thumb|382px|Figure 7 : Folder navigation - bottom window]]
[[WordPress:Image:podz_filezilla_10.gif|center|thumb|382px|Figure 7 : Folder navigation - bottom window]]
[[WordPress:Image:podz_filezilla_10.gif|center|thumb|382px|图7 : 文件夹导航 - bottom window]]


Hold the SHIFT key , and press the DOWN arrow on the keyboard to highlight all the files and folders in that window.
Hold the SHIFT key , and press the DOWN arrow on the keyboard to highlight all the files and folders in that window.
按住SHIFT键,同时按住键盘上的向下箭头,突出那个窗口上的所有的文件和文件夹。


Now RIGHT-click, and choose '''Upload''' from the menu.  Now watch ...... everything should be uploaded straight to your website.
Now RIGHT-click, and choose '''Upload''' from the menu.  Now watch ...... everything should be uploaded straight to your website.
现在右击,从菜单中选择'''上传'''。现在观察……所有内容应该都直接上传到了你的站点。


Once that has happened, then whatever is in the server window should be on your computer window. The <tt>blog</tt> folder on the server, and the <tt>wordpress</tt> folder on your computer should be identical with regards to the contents.
Once that has happened, then whatever is in the server window should be on your computer window. The <tt>blog</tt> folder on the server, and the <tt>wordpress</tt> folder on your computer should be identical with regards to the contents.
上传好后,服务器窗口中的任何内容,都会出现在你的电脑窗口上。服务器上的<tt>blog</tt>文件夹和你的电脑上<tt>wordpress</tt>文件夹,内容应该是一样的。


Click on folders -- such as <tt>wp-admin</tt> -- in both windows and check that each window has the same list of files and folders.
Click on folders -- such as <tt>wp-admin</tt> -- in both windows and check that each window has the same list of files and folders.
点击文件夹—例如<tt>wp-admin</tt> --在两个窗口中,核实每个窗口都有相同的文件和文件夹列表。


[[WordPress:Image:podz_filezilla_11.gif|center|thumb|509px|Figure 8 : Files in each folder should be the same]]
[[WordPress:Image:podz_filezilla_11.gif|center|thumb|509px|Figure 8 : Files in each folder should be the same]]
[[WordPress:Image:podz_filezilla_11.gif|center|thumb|509px|图8 : 各自文件夹中的文件应该是相同的]]


This concludes the guide for uploading files to your server, using an FTP client, FileZilla, especially with regard to installing WordPress.
This concludes the guide for uploading files to your server, using an FTP client, FileZilla, especially with regard to installing WordPress.
这样结束了使用FTP client, FileZilla,将啊文件上传到你的服务器上的指南,特别是有个安装WordPress方面。


You may want to read more about [[WordPress:Changing_File_Permissions|Changing File Permissions and seeing hidden files]] on the server.
You may want to read more about [[WordPress:Changing_File_Permissions|Changing File Permissions and seeing hidden files]] on the server.
你可以在服务器上阅读更多的关于[[WordPress:Changing_File_Permissions|更改文件权限和查看影藏文件]]的内容。

2008年9月16日 (二) 13:49的版本

(This is part 2 of the Using FileZilla guide.)

( 这是使用FileZilla指南的第2部分。)

To upload (or delete) files and folders to your web host, you will need an FTP application. One of many free options that are at your disposal is FileZilla. Though written using screenshots from a Windows XP machine, using FileZilla, the following instructions carry over to just about every FTP client with a GUI (Graphical User Interface). You may want to read how to Set up FileZilla for your server, before you read the following.

要向你的网络主机上传(或者删除文件),你需要FTP应用软件。你可以处理的许多免费选项之一就是FileZilla。虽然是使用Windows XP系统的屏面截图编写的,使用FileZilla,将下面的说明执行到每个拥有GUI(图形用户界面)的FTP client上。在阅读这些说明之前,你可能需要阅读怎样设置 FileZilla处理服务器。

Uploading Files

上传文件

How your server is setup differs from host to host. The screen shots you see here show two generic hosts:

每个主机上的服务器设置可能都不同。你在这里看到的屏面截图显示了两类主机:

left|thumb|300px|Figure 1: Host example #1 right|thumb|300px|Figure 2: Host example #2

left|thumb|300px|图 1: 主机例子 #1 right|thumb|300px|图 2: 主机例子 #2

Your screen could have htdocs or public_html where the screenshots show mainwebsite_html.

你的界面可能有htdocs或者public_html,屏面截图在这里显示为mainwebsite_html

To install WordPress double-click the one that is web-root directory for webpages on your server. This is usually named htdocs, public_html, mainwebsite_html, www, web, or something very similar. The other folders are not of consequence in installing WordPress.

要安装WordPress,请双击你的服务器网页的根目录。这个目录通常命名为htdocs, public_html, mainwebsite_html, www, web,或者其它相似的名称。安装WordPress时,其它文件夹并不重要。

You should now see listing of files and folders that are contained inside your server's root folder. Just how many there are depends on what and how much you have on your website.

现在你会在服务器根目录上,看到文件和文件夹的列表。有多少文件和文件夹,取决于你的网站上有多少。

The point of this exercise is to upload WordPress, so let us continue down that road:

关键是要上传WordPress,因此,我们现在继续:

Right click in the server window: 在服务器窗口中点击:

center|thumb|400px|Figure 3 : Server window

center|thumb|400px|图3 : 服务器窗口

Click Create Directory, enter the name you want, and click Okay.

点击创建目录,输入你命名的目录名称,并且点击Okay

NOTE: The name you choose will be where your WordPress weblog will appear, and although it can be changed later, it's much better to avoid that by choosing what you want now. For example, if your website has the URL http://example.com and you want your weblog to be located at http://example.com/blog, then name the new folder blog.

注:你选择的目录名称,就是你的WordPress网络博客即将显示的地址名称。虽然这个名称随后可以更改,但是你最后现在选好,避免以后更改。例如,如果你的网页拥有URLhttp://example.com而且你希望你的网络日志,位于http://example.com/blog,那么请命名新的文件夹博客

In this example, we have created the directory blog. 在这个例子中,我们已经创建了目录博客

center|thumb|256px|Figure 4 : Newly created directory

center|thumb|256px|图4 : 新创建的目录

Now the directory blog has been made, double-click on it to open it.

现在目录博客已经创建好了,双击这个目录,将其打开。

center|thumb|406px|Figure 5 : The new and empty directory

center|thumb|406px|图5 : 新的空目录

Nothing there yet ... but note the folder with the dots following it -- clicking that takes you back up a folder level.

目录中还没有任何内容…但是注意文件夹后面带有点号—点击,带你备份文件夹层级。

Upload WordPress

上传WordPress

Before you begin to upload WordPress, it is essential to have downloaded WordPress, and unzipped it, on your local computer. When you unzip the downloaded .zip file, a folder called wordpress will be created. Please note the location of this folder in your computer. You may also want to prepare the downloaded files for installation, by reading WordPress:Installing WordPress and completing the relevant steps, such as editing wp-config-sample.php.

在你开始上传WordPress之前,已经拥有已下载的 WordPress,并且将其解压到了你的本地电脑上,这一点,很重要。当你解压downloaded .zip文件的时候,会创建一个称为wordpress的文件夹。请注意这个文件夹在你的电脑上的位置。你可能准备将已下载的文件,安装,请阅读安装WordPress,完成相关的步骤,例如编辑 wp-config-sample.php

In Area 2 of Using Filezilla -> Figure 1, find your way to where you have the WordPress folder on your computer after unzipping the zip file that you downloaded.

使用Filezilla -> 图 1的第二个区域,在解压了你下载的文件夹后,查找你将WordPress文件夹放在电脑的什么位置,

center|thumb|383px|Figure 6 : Folder navigation - top window

center|thumb|383px|图6 : 文件夹导航 - top window

When you have found it and clicked the wordpress folder, the window underneath that will show the contents of said folder:

你找到这个文件夹后,请点击wordpress文件夹,下面的窗口会显示上述文件夹的内容:

center|thumb|382px|Figure 7 : Folder navigation - bottom window

center|thumb|382px|图7 : 文件夹导航 - bottom window


Hold the SHIFT key , and press the DOWN arrow on the keyboard to highlight all the files and folders in that window.

按住SHIFT键,同时按住键盘上的向下箭头,突出那个窗口上的所有的文件和文件夹。

Now RIGHT-click, and choose Upload from the menu. Now watch ...... everything should be uploaded straight to your website.

现在右击,从菜单中选择上传。现在观察……所有内容应该都直接上传到了你的站点。

Once that has happened, then whatever is in the server window should be on your computer window. The blog folder on the server, and the wordpress folder on your computer should be identical with regards to the contents.

上传好后,服务器窗口中的任何内容,都会出现在你的电脑窗口上。服务器上的blog文件夹和你的电脑上wordpress文件夹,内容应该是一样的。

Click on folders -- such as wp-admin -- in both windows and check that each window has the same list of files and folders.

点击文件夹—例如wp-admin --在两个窗口中,核实每个窗口都有相同的文件和文件夹列表。

center|thumb|509px|Figure 8 : Files in each folder should be the same

center|thumb|509px|图8 : 各自文件夹中的文件应该是相同的

This concludes the guide for uploading files to your server, using an FTP client, FileZilla, especially with regard to installing WordPress.

这样结束了使用FTP client, FileZilla,将啊文件上传到你的服务器上的指南,特别是有个安装WordPress方面。

You may want to read more about Changing File Permissions and seeing hidden files on the server.

你可以在服务器上阅读更多的关于更改文件权限和查看影藏文件的内容。