Cannot find the htdocs directory in the file manager of the host console

Updated at:

In the file manager of the management console for a Linux web hosting instance, the htdocs directory may not be visible in the site root directory. This is expected behavior. When you use the file manager to compress or decompress files, the site root directory, shown as /, is actually the /htdocs directory. No action is required.

Symptoms

When you use the File Manager on the host console to compress or decompress files, the File Directory page shows only the / directory. You will not find the /htdocs directory.

  1. View in an FTP client

    When you connect to a Linux web hosting instance using an FTP client, the Remote site area displays multiple directories. The /htdocs directory is the site root directory. You must upload your website files to the /htdocs directory. For example, when you connect to the FTP server using FileZilla, the remote site root directory (/) contains five folders: backup, ftplogs, htdocs, myfolder, and wwwlogs. The htdocs folder is the site root directory, and all web page files must be uploaded to it.

  2. View in the file manager

    On the File Manager page of the host console, when you compress or decompress a file, only the / directory is displayed.

    The /htdocs directory is not visible on the File Manager page.

    The site root directory displays only three folders: HttpErrors, PHPMailer-master, and gd. The /htdocs directory is not included.

Cause

When you use the file manager in the management console for a Linux web hosting instance, the interface treats the site root directory (/) as the actual /htdocs directory. Because you are effectively already working inside the htdocs directory, the /htdocs directory itself does not appear in the file list.

Resolution

No action is required. This behavior is by design. Understanding the purpose of each directory helps you effectively manage your web hosting instance. For more information, see Directory structure of a Linux-based web hosting instance.