编辑“WordPress:Uploading WordPress to a remote host”
该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第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]]''.) | ||
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. | ||
== 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 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>. | ||
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. | ||
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: | ||
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]] | ||
Click '''Create Directory''', enter the name you want, and click '''Okay'''. | Click '''Create Directory''', enter the name you want, and click '''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>. | ||
In this example, we have created the directory <tt>blog</tt>. | In this example, we have created the directory <tt>blog</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]] | ||
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. | ||
[[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]] | ||
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 == | ||
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>. | ||
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: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]] | ||
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: | ||
[[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]] | ||
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. | ||
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. | ||
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. | ||
[[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]] | ||
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. | ||
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. | ||