Managing files in your VHost


 

OVERVIEW

Target audience: Administrators of virtual host websites

The Virtual Web Hosting service (VHost) allows web publishers to publish an independently designed website on a centrally managed system that is secure, reliable, easily recoverable, and offers a reduced risk of server downtime.

In this article:

The File Manager feature

Use the File Manager feature to see the home filesystem for your account.

To access the File Manager:

  1. Log in to the cPanel interface.
  2. Under the first sub-panel, which is labeled Files, look for the File Manager.

Note: This is not the document root for your website. Your website resides in the www directory, which is a link to the directory public_html. The other directories are there to support the virtualization of your account within the system and do not require you to edit anything for the correct functioning of your website.

 

Navigating the File Manager

The File Manager has two panels:

In either panel, click the directory or file name to see a listing of the directory contents in the main panel.

 

Uploading and manipulating files

To upload files to the File Manager directory you are in, you can either use:

The toolbar also allows you manipulate files (e.g., edit, delete):

  1. Select a file or directory in the list
  2. Right-click on the file or directory.
  3. Select the action you wish to perform from the pop-up menu.

 

Directory structures

As your document root is www, you will place your files that support your website here. A common directory structure under www has the following directories:

You would then reference the contents of these directories with a "/" where www is your document root. The HTML for an image would be formatted as:

Example: <img src="/images/vacay1.jpg" alt="Ibiza Beach at dawn">

The cascading style sheet (CSS) you use to style a page is formatted as:

Example: <link rel="stylesheet" href="/css/vacay.css">

Of course, you may set up whatever structure you need to support the site you are building.


The Images feature

Use the Images feature to:

 

To access the Images feature:

  1. Log in to the cPanel interface.
  2. Click the feature labeled Images.

The File Manager and Images features are fully documented at https://docs.cpanel.net/


references

ADDITIONAL REFERENCES: