Manage website files with FileZilla

更新时间:
复制 MD 格式

If you need to deploy a new website on a Web Hosting instance, or upload, download, update, or back up website application files for an existing website, you can use FileZilla to efficiently manage your files. This topic describes how to manage your website application files with FileZilla.

Note
  • FileZilla is a convenient and efficient FTP client. Use an FTP client to upload website applications or web pages to a web server over File Transfer Protocol (FTP). For more information, see FTP client usage instructions.

  • If you encounter permission errors or connection issues while managing your website files with FileZilla, see Common website management issues.

Step 1: Connect to your Web Hosting instance

Before you begin, make sure that you have an FTP client installed. We recommend that you use FileZilla. You can click FileZilla to download the tool.

  1. Obtain the FTP logon information for the Cloud Web Hosting instance.
    1. Log on to the Cloud Web Hosting management page.
    2. Find the Cloud Web Hosting instance to which you want to upload website programs and click Manage in the Actions column.
    3. In the navigation pane on the left, click Site Information.
    4. On the Site Information page, obtain the FTP logon information from the Account Information section.
      The FTP logon information includes the FTP Username, FTP Password, and FTP Logon Host Address.
      Note If you forget the FTP logon password, you can reset it. For more information, see Reset the password of the host management console and the FTP password.
      获取FTP信息
  2. Start FileZilla.

    (Optional) If FileZilla is not in English, you can change the language when you first start it.

    1. In the top menu bar, select Edit > Settings.

    2. In the navigation pane on the left, select Language.

    3. In the Select language area, select Chinese(Simplified)(zh_CN).

    4. Click OK.

    5. Close and restart FileZilla.

  3. In the menu bar, choose File > Site Manager.
  4. In the Site Manager dialog box, click New site.

    You can also configure settings on the Advanced, Transfer Settings, and Charset tabs. After you complete the configuration, click Connect to connect to the Web Hosting instance.

  5. Under the My Sites node, enter a name for the new site.

  6. On the General tab, configure the FTP settings for the new site.

    The following table describes the parameters.

    Parameter

    Description

    Protocol

    Keep the default option, FTP - File Transfer Protocol.

    Host

    Enter the FTP host address.

    Port

    Set the value to 21.

    Encryption

    Select an encryption method based on your requirements.

    login type

    Select Normal.

    User

    Enter the FTP username.

    Password

    Enter the FTP password.

  7. Click Connect to connect to your Web Hosting instance.

    Site directories vary based on the Web Hosting product. The actual directories on your instance may differ from what is described in this topic.

    • Common directories for Web Hosting instances that run the Linux operating system

      Directory name

      Description

      Permission

      /

      The FTP root directory.

      read-only permission

      /awstats

      The directory where log analysis reports are stored. This directory is currently empty.

      read-only permission

      /ftplogs

      The directory where FTP access logs are stored.

      read-only permission

      /htdocs

      The website's root directory. You must upload your website application or web page files to this directory.

      read and write permission

      /myfolder

      The content in this directory is not visible to web users. You can use it to temporarily store private content, such as site backups and database backups.

      read and write permission

      /php_upload_tmp

      The directory for system-cached files from PHP uploads, such as session information.

      read and write permission

      /wwwlogs

      The directory where web access logs are stored.

      read-only permission

    • Common directories for Web Hosting instances that run the Windows operating system

      Directory name

      Description

      Permission

      /

      The website's root directory. You must upload your website application files to this directory.

      read and write permission

      /HttpErrors

      You can upload your 404 error page to this directory.

      read and write permission

    The FileZilla interface is divided into the following areas:

    The following table describes each area.

    Number

    Description

    Message log: Displays commands, FTP connection status, and task execution results.

    Local site: Displays the files and directories on your local computer.

    Remote site: Displays the files and directories on the web server. Double-click a directory to enter it.

    Transfer queue: Displays the status of queued and completed file transfers.

Step 2: Manage website files

After you connect to your Web Hosting instance with FileZilla, you can upload, download, move, create, or delete website application files, and modify their permissions.

Upload or download website files

Usage notes

Before you upload or download files for a Web Hosting instance, note the following for different operating systems:

  • Web Hosting instances that run the Linux operating system

    • When you name your website application files, follow these guidelines:

      • We recommend that you use only letters (case-sensitive), numbers, or a combination of letters and numbers.

      • Do not use Chinese characters or special characters in file names. This prevents issues with operations such as compressing or deleting files in the Web Hosting management console.

    • If your web space is full and you cannot delete large, outdated files, use one of the following solutions based on your Web Hosting instance type:

      Note

      If a file size is displayed as 0 after you upload it, your web space is full. Clear some files to free up space.

  • Web Hosting instances that run the Windows operating system

    • When you name your website application files, follow these guidelines:

      • We recommend that you use only letters (case-sensitive), numbers, or a combination of letters and numbers.

      • Do not use Chinese characters or special characters in file names. This prevents issues with operations such as compressing or deleting files in the Web Hosting management console.

    • If you use an Access database, you must upload the database file and your web page files together to the / root directory of your Web Hosting instance.

Video tutorial

This video demonstrates how to upload website application files to a Web Hosting instance that runs the Linux operating system. The user interface in the video may differ from the actual interface.

Procedure

The procedure for uploading files is similar to downloading them. This section uses uploading as an example. To download a file, select it in the Remote site pane and then double-click it or drag it to the Local site pane.

  • Upload small files

    1. In the Local site pane, select the web pages or files that you want to upload.

    2. Double-click a file or drag it to the website's root directory in the Remote site pane to upload it.

      • For Web Hosting instances that run the Linux operating system, the website root directory is /htdocs. After the upload is complete, you can view the uploaded files in the Remote site pane.

        After the upload, the files and folders appear in the /htdocs directory. The transfer queue at the bottom of the window shows that the transfer is complete.

      • For Web Hosting instances that run the Windows operating system, the website root directory is /. After the upload is complete, you can view the uploaded files in the Remote site pane.

        After the upload, the files appear in the / root directory. System directories such as HttpErrors are also visible.

  • Upload large files

    Uploading many files at once with an FTP client can be slow or get interrupted. If your website application files are large, we recommend that you compress them into an archive before you upload them with FileZilla. This practice reduces the risk of transfer interruptions and increases transfer speed.

    Important

    Before you begin, prepare the following tools and files.

    • You must have a file compression tool installed. We recommend that you use 7-Zip. You can download it from the official 7-Zip website .

    • The website application files must be saved to your local computer.

    1. On your local computer, select the website program files to compress, right-click, and select 7-Zip > Add to archive....

    2. In the Add to Archive dialog box, configure parameters such as the archive format, size, and name.

    3. Click OK.

    4. Upload the compressed website application files to the website root directory on your Web Hosting instance.

      • For Web Hosting instances that run the Linux operating system, the website root directory is /htdocs.

      • For Web Hosting instances that run the Windows operating system, the website root directory is /.

Move website files to a specific directory

If you need to reorganize your website or change file permissions, you can use FileZilla to move a website application file to a different directory.

  1. In the Remote site pane, select the website application file that you want to move.

    This example shows how to move the test-move file from the /myfolder directory to the /htdocs directory on a Web Hosting instance that runs the Linux operating system.

  2. Drag the file to the /htdocs directory in the Remote site pane.

    The test-move file is now in the /htdocs directory.

Modify file permissions

For security, you might need to modify a file's permissions to prevent unauthorized access or modification.

  1. In the Remote site pane of FileZilla, right-click the file and select File permissions....

    The right-click menu includes options such as Download (D), Add Files to Queue (A), View/Edit (V), Create Directory (C), Delete (E), Rename (R), and File Permissions (F).... Click File Permissions (F)... to modify the permissions.

  2. In the Change file attributes dialog box, enter the new permission value in the Numeric value text box.

    For owner permissions, group permissions, and public permissions, you can set the read, write, and execute permissions. For example, the permission value 644 means the owner can read and write, while the group and public can only read.

  3. Click OK.

    The permission change takes effect immediately. You can confirm the new permissions in the Permissions column of the file list.

Create or delete website files

Scenario

Procedure

When you need to add new web pages, scripts, or other files to your website, you can create them with FileZilla.

In a blank area of the Remote site pane, right-click and then select Create new file.

If you find a file containing malicious code, delete it. You should then work with a developer to locate and fix the root cause, for example, by configuring a firewall or tightening permissions.

In the Remote site pane, select the file that you want to delete, right-click it, and then click Delete.

Related topics