To upload website programs to a Web Hosting instance, you must first compress, upload, and then decompress all files.
Before you upload website programs to a Web Hosting instance, note the following:
- A package with a password cannot be decompressed. Therefore, do not upload a compressed file with a password.
- No package can contain files or folders named with Chinese characters. Otherwise, the compressed file may not be properly decompressed.
- Only .zip and .tar files can be decompressed.
- Page time-out may occur when large files are compressed. We recommend that you compress files in batches. If the page times out, do not repeatedly compress the files. Instead, log on to FTP to check what folders and files have been compressed.
- All files must be stored in the
Compress all the files to be uploaded.Go to the local source code folder, select the required files and folders, then right click and select Add to the Compressed File from the shortcut menu.We recommend that you compress the files to a .zip package.Note: We recommend that all the selected files be compressed directly, instead of compressing the upper-level folder. In this way, when you decompress the package, you get the source files but not the upper-level folder, which helps minimizes time required to move the files to the root directory from the sub-directory using FTP.
After compression, upload the package to the Web Hosting instance using FTP.Alternatively, you can use FileZilla to upload the package. For this method, see FileZilla user manual.
Decompress the package. The procedure is as follows:
- Log on to the Web Hosting console.
- On the Host list page, find the Web Hosting instance and click Manage in the Operation column.
- In the left-side navigation pane, click File Management > File Extraction.
- Locate the package, select the
htdocsdirectory as the directory to store the decompressed files, and then click OK.