Support
Web hosting

Managing Files and Directories in cPanel

This is a set of functions that allows you to Create and manage files and folders. These functions can be found grouped under File category of your cPanel.

  1. Backups
    • Full backups
    • Save a Full Backup
    • Some Backups
  2. Backup Wizard
    • Backup
    • Restore
  3. File Manager
    • The File Manager Directory Selection window
    • The File Manager toolbar
    • Character coding confirmation
    • Select path - file
    • The files window
    • The navigation toolbar
    • File and folder options
    • File search
  4. Legacy File Manager
  5. Disk Space Usage
    • Disk space usage
    • Further information
  6. Web Disk
  7. FTP Accounts
    • Add FTP account
    • FTP Accounts
    • Change Password
    • Change Quota
    • Delete an FTP account
    • FTP client setup
  8. FTP Session Control
    • View open FTP connections
    • Disconnect users from an FTP session

1. Backups

This option gives you the ability to download and store all or some of the files and the databases of your site, your forwarders and filters.

Full backups

You can use this feature to create a full backup. The full backup includes the folder /home, your databases, your email forwarders and your filters .

To save a full backup on the server, follow these steps:

  1. Press the Download a Full Website Backup button. Now you should see a window like this:
  2. Select the menu Backup Destination in Home Directory.
  3. If you wish to receive notification when your backup is complete, enter the address of your mail.
  4. Press the Generate Backup button. You will receive an email notification when your backup is complete.

* Note: The creation date of your backup included in the backup name (and starts from backup- DD-MM-YYYY). The system saves your backup as a compressed file with the suffix .tar.gz.

Save a Full Backup

To download a full backup and save it on your computer, follow these steps:

  1. Press the Download a Full Web Site Backup button.
  2. If you created a previous backup, it will be on the Available backups list , as you can see in the previous image. In the picture of example, we have not gotten a previous backup, so the tag "No previous backups" is indicated.
  3. As we have already pointed out, the name of the backup file contains the date of creation, so you can select the backup you want.
  4. Press the Generate backup button.

* Note:

  • The server can store a maximum of 2 backups of your site. If you wish to keep more copies, you should save them on your computer and delete them from the server.
  • This feature of cPanel mainly concerns experienced users. You can not directly use a full backup to restore to your site through the cPanel. You will need to download the backup to your computer, unzip and then upload the contents of your site that contained the backup.

A few Backups

In the Backup section, you can also create some backups of your account. You can choose to create backup or whole home folder, or your SQL databases, or for email forwarders and your filters. Under their respective titles, found in the Partial Backups category, click on the corresponding link to create the backup you want.

If you wish to restore part of your account, click on Browse to select the desired file from your computer and then press Upload.

* Note: The backup file of your email filters will contain only the domain account-level filters in the folder /etc/vfilters/$domain. The backup file does not include the user account-level filters.

2. Backup Wizard

The Backup Wizard interface allows you get the backup of your entire site or of some parts or to restore your site from a recent backup.

* Note: Experienced users who wish to speed up the backup process can use the option Backups instead of the Backup Wizard (Home > Files > Backups).

When you receive the home folder backup, the backup file includes all of the following:

  • All your files
  • Files that do not belong to you, but you have access to.

* Note: The backup files exclude files that you do not own and you have not access to them.

To exclude files or folders from the backup, add a configuration file to your home folder. For more information, please refer to the section How do I exclude files from Backup.

Backup or Restore

To get started, choose whether you want to proceed to backup your site or to restore it.

  • To create a backup file, click on Backup.
  • To restore your site from a backup file, click on Restore.

Backup

You can choose whether to create a full or partial backup of your site.

Full Backup

* Note: You can not use a full backup to restore your site via the cPanel. Before you restore download and compress a backup file. After you decompress the file on your computer, you can add and restore individual sections of your site that included on the backup.

To create a full backup, follow the steps below:

  1. Click on Full Backup option.
    You should now see a window like this:

  2. Select from the drop down menu the destination for the backup file. You can select one of the following:

    • Home Directory: Use this option to save your backup to the server.
    • Remote FTP Server: Through this option, you can save your backup using an FTP remote server.
    • Remote FTP Server (Passive Mode Transfer): Use this option to save your backup via passive FTP to a remote server.
    • SCP: You can use this option to save your backup to a remote server, via SCP.

  3. Choose which way you wish to be notified.

    1. If you want to receive a notification when your backup process is complete, enter your email address in the corresponding Email address field.
    2. If you do not wish to receive notification, select Do not send email notification of backup completion.

  4. If you chose any of the FTP Server, Remote FTP Server (Passive Mode Transfer) or SCP, from the Backup menu Destination, type the logon information for the remote destination in the available fields:

Partial Backup

From here, you can choose to backup and download a part of your account. You can choose to download the backup of main (home) folder of your site, the backup of your Database or even the backup of forwarders and filters of your emails.

For example, if you choose to take a backup of the home directory, in the last step it will be necessary to simply click the Download button to complete the process, as you can see in the picture below.

If you choose to download a partial backup of your databases, you will need to select the database you want to get a backup

In our example are shown some of the databases we have built for to test. Clicking on one of these, we can download the backup.

The same applies respectively with email forwarders. To download the backup of a forwarder, select it first in the list of Forwarders. In our example we have not yet created filters for email accounts, so the Email Filters list is empty. If there are email filters, you can download and backup every filter also by clicking on it.

* Note: The file type resulting from the process of a partial backup, depends on the section whose backup you chose to download.

The table below contains a list of the components and the types of files that result if we attempt to download to backup every part:

Backup type File type
Home Directory *.tar.gz
Email Forwarders and Filters *.net, *.com
MySQL Databases *.sql

Restore

Through the Backup Wizard, you can also choose to restore a part of your website from an older backup. To restore a portion of your site from an existing backup, follow these steps:

  1. Κάνετε κλικ στο κουμπί Restore όπως μπορείτε να δείτε και στο προηγούμενο στιγμιότυπο.
  2. Στη συνέχεια επιλέγετε το τμήμα του site σας το οποίο επιθυμείτε να επαναφέρετε από τα:

    • Home Directory — Restores the central (/home) folder of your site.
    • MySQL Databases — Restores your databases.
    • Email Forwarders and Filters — Restores email forwarders or filters.

  3. Let's look as an example the restore process of home directory. From the Restore types, click on Home Directory.
  4. Then click on Browse... button to select from your data the file that you want to upload and restore.
  5. After selecting your file, click on Upload button to start the restore process.

3. File Manager

The File Manager environment allows users of cPanel to manage and edit files.

The File Manager Directory Selection window

With the File Manager environment open, follow these steps:

  1. Open the desired folder in the file window:

    • Home Directory (/home/user)
    • Web Root (/public_html/www)
    • Public FTP Root (/public_ftp)
    • Document Root (/public_html)

    * You can check the option Show Hidden Files to see hidden files.
    * You can also check the option so the File Manager Directory Selection window does not appear again, but to open directly the File Manager with the default folder that you already specified.

  2. Press on Go.

The File Manager environment opens in a New window into your browser and the selected folder appears in the files window.

The File Manager toolbar

The File Manager toolbar includes the following features for managing your files:

  • New File: It creates a new file with a suffix that the user specified.
  • New Folder:It creates a new folder in the current path.
  • Copy: Copies objects from the path specified by the user.
  • Move File: Transfer the selected file to another folder.
  • Upload: Uploads files to the specified folder.
  • Download: Downloads the selected files to your computer.
  • Delete: Deletes the selected files from the server.
  • Rename: Renames the selected file or folder.
  • Edit: Opens the selected file in a text editor.
  • Code Editor: Opens the selected files in the Code Editor.
  • HTML Editor: Opens the selected HTML file into a visual HTML editor.
  • Change Permissions: Changes reading, writing and execution rights (read, write, execute) on the selected files.
  • View: Opens the selected files so that you can see the code.
  • Extract: Decompresses the selected .zip, .Gz, or .Bz2 files and stores the files in a folder.
  • Compress: It compresses the selected files into a single .zip, .Gz, or .Bz2 file and stores it in the specified path.

* Note:

  • When any of the functions of the toolbar is not available, is disabled from the interface.
  • The functions of the File Manager are designed such that they can be used for one file each time. Before attempting any action, please Select the desired file.
  • If you choose to use the Rename, Edit, or View functions for more than one file, the environment will perform the action only in the first of the selected files.
  • The Extract and Compress functions work with the .zip file type only if the Zip is available on your server.

Character encoding verification

When you make changes to a file through Edit, Code Editor, or HTML Editor modes, a window appears requesting confirmation about the character encoding of the file.

So for example we use the File Manager to create a new file, new_file.html.

We now want to edit this file with the Edit function to add content to it.

Clicking the Edit option, the window appears to confirm the character coding:

You can click on the option Toggle Help to find more information on how to select the correct encoding. You can also use, the Disable Encoding Check button, so that the window does not reappear in the future. You may also Disable this option or Enable again through the Settings of File Manager. You will find the settings in the upper left corner of the Environment of the File Manager:

Click in the settings, you will see a new window like this:

You can check the option Disable Character Encoding Verification Dialogs so the confirmation window will not appear in the future. In the same way, you can activate this function again. Click Save to save your changes.

* Attention: if you choose the wrong encoding, your file may be damaged. If your file appears as a series of special characters, immediately quit the process and select the correct encoding. Do not save the file.

Selecting a Path - Folder

You can navigate to your Files and Folders in two different ways, either by tree view in File Manager, or with the location field.

There are several ways you can use the tree view (which is located on the left side of the File Manager window) to navigate through your files:

  • You can click on the folder name you want, to see its contents.
  • You can click on the + icon next to a folder to see the list of subfolders that are in this folder.
  • You can click on the - icon next to a folder to close the contents.

To use the box location, which is located just above the file tree, use the following steps:

1. Enter the The folder path, which you want to view the contents. For example, we used the route you can see on the image below to view the contents of folder test, which is located in the subfolder example, in the mail folder, which is located in the folder public_html!

2. After you enter the path, press the Go button. The file window should now contain anything in the selected folder.

The file window

In the file window, are showing the contents of the selected folder. If there are no files or subfolders in the selected folder, the window simply displays "This directory is empty.".

The information about the files and subfolders include this fields:

(File icon) Before each file, is displayed the icon corresponding to the type of this file. The subfolders are displayed with the folder icon.
Name The filename.
Size The file size.
Last Modified The date of last modification.
Type The media type (MIME).
Perms The rights for this file, in octal system. The default value is 0644.

* Note: You can click on one of the above fields to sort the list of files based on this field.

The navigation toolbar

You can use the toolbar at the top of the file window to navigate between the files in it.

Home Takes you directly to your home folder (/home/user)
Up One Level It takes you to the folder containing the folder where you are.
Back It takes you to the folder that you displayed immediately before the folder where you are now.
Forward You go to the folder where we were before the use of the Back option.
Reload Refreshes the list of displayed files and folders.
Select all

Selects all the submitted files and folders.

Note:
If you attempt to Rename, Edit or View the selected files, the action affects only the first of the files in the list.

Unselect all De-selects all the submitted files.

File and folder options

You can Right-click on a file or folder in the data window to select an available actions menu, depending on the file type.

Energy Available for Description
Move Files, Compressed Files, Folders Move the selected file or folder to a new route.
Copy Files, Compressed Files, Folders Copies the selected file or folder in the path specified by the user.
Rename Files, Compressed Files, Folders Renames the selected file or folder.
Change Permissions Files, Compressed Files, Folders It allows a user to change the read, write and execute rights for the selected file or folder.
Delete Files, Compressed Files, Folders Deletes the selected files and folders from the server.
Extract Files, Compressed Files, Folders Decompresses the selected .zip, .Gz, or .Bz2 file and stores the contents in a location.
Compress Files, Compressed Files, Folders It compresses the selected files in a .zip, .Gz, or .Bz2 file and stores the selected path.
Password Protect Folders Specifies a username and password to limit access to a folder.
Leech Protect Folders Redirects users who know the password to a restricted area of your site with other users. The system redirects the accounts that exceed a connection limit in a two hour period at a predetermined URL or visitors see a internal server error message.
Manage Indices Folders Adjusts the way in which users view a path online.

File search

The search tool in the upper right corner of the environment of the File Manager allows users to search for a specific file.

By default, the search tool checks all files in the home folder. It is possible to limit the search to root directory or the directory displayed in the data window.

To search for a file, follow these steps:

  1. Use the search tool to select the folder you want to search. You can choose between:

    • All Your Files
    • Only public_html or
    • Current Directory.

  2. Type the filename you want to search into the "for" text field.
  3. Click th Go button.

A new window will appear, which will display the filenames that match your search.

We, as an example, search for the folder public_html all files containing the word new.

The results obtained are shown in the following figure:

To go to a folder or to the folder containing the desired file, you double click on the desired object in the list. If there is not a file whose name contains the keyword searched for, I will return the message No records found.

4. Legacy File Manager

The Legacy File Manager environment provides file management capabilities in a older web-based environment. Users who are familiar with an earlier version of cPanel, may prefer to use the Legacy File Manager, than the latest version of the File Manager environment.

5. Web Disk

Through Web Disk option you can manage your Web Disk accounts. The Disk Web interface allows you to manage files on your server in several types of interfaces (for example on your computer, on a mobile device or to specific types of software). You can select an environment with which you are most familiar, and makes file management easier process for you

For example, when entering the Web Disk environment from your computer, it opens in a new window. You can move, add or delete files from the server, through this window.

6. Disk Space Usage

Inside the environment of Disk Space Usage you can find information on the usage of disk space which provides you with your hosting package and all subfolders of the main Folder (home directory) of your package. It also helps you to manage the space allocation on the disk, and you can view files or folders that may occupy large space.

Disk space usage

The Disk Usage Viewer shows the overall use for all folders in your package as well as all databases in total, not per individual file or database.

Specifically, the information can be found here are:

  • The files contained in the home folder.
  • The files in hidden subfolders.
  • Files not found on your home folder (the bar Other Usage).

The bars in the graph represent the use of the disc in relation to the largest volume file rather than a predetermined range.

To see in detail the use of disk for individual files you can use the File Manager, as respectively to use the center MySQL environment to find more information about the space occupied by individual databases.

Clicking on one of the folders that are shown here, you can open the corresponding sub-folder in the File Manager environment.

Further information

  • Most files occupy a little bigger disk space than the actual size. For example, a 300-byte file may occupy space 4 KB disk. As a result, there might be small differences between the data that you can see through the environment of the File Manager and the environment of Disk Space Usage.
  • The information on the disk usage is not indicative of how much space occupied by the file itself. Typically, a file itself occupies a negligible amount of disk space.
  • When the system calculates the use of the disc, it calculates the size of MySQL and PostgreSQL databases too. However, the system does not impose any limits on the usage, when the size of a database causes the packet to exceed the limits of use.
  • The figures shown in the Disk Space Usage environment may not reflect the very recent changes.

7. FTP Accounts

Through this environment you can create and manage your File Transfer Protocol (FTP) accounts. The FTP allows you to manage your site files.

* Note:

  • You can use the username and password for your cPanel to log in to FTP.
  • To see the FTP connections to your site, you can browse the selection of Raw Access Logs in cPanel (Home >> Logs >> Raw Access Logs).

Add an FTP account

To create a new FTP account, follow these steps:

  1. Enter the username you want in the Login text field. These accounts usually have this form logariasmosftp@todomainmoy.com. In the Login field fill prefix before the @.
  2. Enter the Password that you want the new FTP account to have and then in the Password (again) field to confirm.

    * Note:

    • The system evaluates the password you will use based on the scale of 100. 0 indicates a very weak password, while the 100 a very secure password. The indication Password Strength tells if your password is as secure as required.
    • You can also click on the Password Generator button to create a powerful password.

  3. Enter the root directory (home directory) of your FTP account.

    * Note:

    • The Directory field text box defines the folder, which is the maximum access level to the FTP account that will be created. For example, if the scope Directory populate the folder "test", o new FTP account will have access to the folder/home/example/test and all subfolders of the test.
    • The system automatically fills this field with the path public_html/account, where the account is the username you completed in the Login field.

  4. Enter the disk space quota, or select Unlimited.
  5. Click on Create FTP Account button. The new FTP account will appear in the table FTP Accounts .

* Note: If an FTP account has problems with the upload, you may need to increase the Quota.

FTP Accounts

Your FTP Accounts panel allows you to manage existing FTP accounts. For example purposes, we have created two FTP accounts, the test@example.com and test1@example.com, as you can see in the picture below:

Change Password

To change the password of an FTP account, follow these steps:

  1. Click the Change Password option for the FTP account you want to change password.


  2. Below your account, you should now see a form like this:



    Enter the new password in the Password field and confirm it in Password (again) field.

    * Σημείωση:

    • The system evaluates the password you will use based on the scale of 100. 0 indicates a very weak password, while the 100 a very secure password. The indication Password Strength tells if your password is as secure as required.
    • You can also click on the Password Generator button to create a powerful password.

  3. Click the Change Password button.
  4. Change Quota

    To change an FTPs account quota, follow these steps:

    1. Click on Change Quota option for the FTP account you want to change quota. Now, under your account, you should see a form like this:

    2. Insert disk space quota or choose Unlimited.
    3. Click the Change Quota button.

    Delete an FTP account

    To delete an FTP acount, follow these steps:

    1. Click the Delete option for th FTP account you want to delete. As you can see in the picture below, now you have two options:

      You can choose to simply remove the FTP account, while leaving intact the contents of that folder or you can choose to remove that account together with the entire contents of this folder.

    2. Click in the corresponding Delete Account button or Delete Account and Files button.

      * Attention:
      Use this option very carefully. If the account that you will delete has access to the public_html folder, this option automatically deletes the public_html folder and all its contents, resulting in lost your site.

    3. You can also click Cancel option so you don't delete the account.

    FTP Client Setup

    * Important: Before taking any action, you must first install an FTP client on your computer before you download and run the script. For more information refer to FileZilla or Core FTP sites for Windows or Cyberduck for Mac computers.

    If problems occur during the automatic configuration of your FTP client, make sure that the client is properly installed on your computer. If the problem persists, consult the documentation of your client.

    To configure your FTP client, you can follow the steps below:

    1. Click Configure FTP Client option for the FTP account you want. Below your account, you should now see the following:

    2. You can either use the Manual Settings to set yourself your FTP client, or you can click on FTP Configuration File, under the logo of your FTP client. You can choose among the Filezilla, Core FTP and Cyberduck clients.

      * Note:

      • The cPanel currently supports only 3 FTP clients for automatic configuration. To use another client, you can configure your client manually.
      • You can click on the Instructions option to find detailed information on the client you selected.

    3. Open the configuration script that has downloaded to your computer. Your FTP client will open automatically, configured and connected to your FTP server.

    8. FTP Session Control

    This interface allows you to access information about the current connections to your FTP server and allows you to stop some of them.

    View open FTP connections

    This option includes the following information for connections to the FTP server:

    User The user name of the FTP account. i.e. user
    Logged in From The host through which the user is connected to your FTP server. i.e. ns1.example.com
    Log in Time The time and date the FTP session started. i.e. Fri Jul 19 13:19:20 2013
    Status The current status of FTP session. i.e. IDLE
    Disconnect It allows you to disconnect this FTP session. X
    Process ID The process ID of this FTP session. i.e. 13926

    To refresh the list of FTP sessions, click on the Reload button.

    Disconnect users from an FTP session

    If you suspect that someone makes a malicious action or if the user is idle, you can disconnect this FTP session.

    To disconnect a user from an FTP session, you can follow the steps below:

    1. Click on the Disconnect icon (X) next to the FTP session to disconnect.
    2. To verify that the server has stopped the session, click on the Reload button.

IPGLOBAL IKE   |  IP.GR Web Hosting and Domain Name registration services in Greece