ORC Webhosting GmbH Landquart/Switzerland

How do I use the file manager in cPanel?

Introduction

One of the most basic computer operations is the File managementthat are stored on a typical computer. Each operating system provides different tools to perform basic operations on its file system, and the most common approaches to managing files are either through the operating system's command line or through some sort of graphical user interface.

cPanel is no different from a standard operating system when it comes to providing a convenient way of Files in the web hosting account of the user. In the following lines of this tutorial, we will discuss in detail what cPanel File Manager is and how to use it to better organize the files of your web hosting account. New to cPanel? What is cPanel briefly explained.

Access to the cPanel file manager

In order to use the features of cPanel, you must first register with cPanel. For this purpose we have created another tutorial on this topic - "How to log in to the cPanel", so check it out if you feel lost.

Once you have logged into cPanel, you will see different areas with different icons. We will explain all of them in the next tutorials of our cPanel tutorial series. Now you need to click on the function "File Manager" click:

use file manager in cpanel
File Manager in cPanel

Clicking on this function will take you to a whole new page where you can perform further file management actions.

The user interface of the file manager

To better understand how the file manager works, it is important to first get an overview of the file manager's functions.

cPanel File Manager Overview
cPanel File Manager Overview

When you access the "File Manager" function, you will be presented with a page that can be logically divided into 3 sections:

  • Control panel or actions view - This section provides all the tools you need to manage the files and folders of your web hosting account. Moreover, in the upper-right corner of the area you will find file search tools and, of course, a Settings button that opens the configuration interface for various configurations of the File Manager feature.
  • Folder structure or folder tree - This section shows a tree-like structure of the files and folders associated with your web hosting account. In this area you can easily navigate through the folders to reach the desired destination. Once you select a folder by clicking on it, the contents of this folder will be displayed in the next area of the File Manager - the Folder Structure Content View.
  • Folder content view file structure - This pane displays a list of all the files and folders located in the folder you selected in the Folder Tree view. Of course, you can also use the Folder Contents view to navigate the folders of your web hosting account without using the Folder Tree view.

Understanding the "File Manager" interface will help you navigate better and take full advantage of this feature!

Managing the files and folders of your web hosting account

Now that you know what the file manager looks like, let's take a look at the various functions it offers. Please note that all the functions we will describe are available both as separate buttons in the "Actions" area and as drop-down menus for each selected file.

File manager dropdown with right mouse button
File manager dropdown with right mouse button

Create new files or folders

To create a new file or folder, you must first make sure that you are in the correct folder. A typical file structure for any web hosting account consists of:

/home/username - This is the home folder of your web hosting account. Since this is the root folder of your account, all other files and folders associated with your account are located in this folder.

/home/username/public_html (/home/username/www - symlink) - This is the public folder of your web hosting account. The main domain of your web hosting account and all domain aliases you add to your account will, by definition, display the contents of this folder. You should place the files of your website(s) in this folder.

/home/username/etc, /home/username/logs, /home/username/lscache, /home/username/lscmData, /home/username/perl - These are system folders that are required for the correct operation of your web hosting account. We strongly recommend that you do not modify or delete the folders themselves or their contents in order to keep the cPanel service and all your websites working correctly.

/home/username/mail - In this folder you will find all the emails associated with the email accounts you have created for your web hosting account.

/home/username/ssl - In this folder you will find all SSL certificates issued for the domains/subdomains of your web hosting account. Again, if you want everything to work properly, please do not change the content or structure of this folder.

/home/username/tmp - This folder is used for storing temporary files that cPanel generates when you interact with the provided functions.

/home/username/access-logs - As the name suggests, this folder contains the access logs created for the domains/subdomains associated with your web hosting account.

Now that you know what folders you will find in your web hosting account, let's create a new folder called "user-files" in the root directory of your account. To do this, click the "New Folder" button in the "Show Actions" section.

Create a new folder in the file manager
Create a new folder with the file manager

When you click the button, a new configuration window opens with the name "New folder". Enter the actual name of the folder you want to create. Here you can make further settings such as the location of the new folder. Please note that this function requires you to enter the relative path to the folder if you want to create the folder in a location other than the current location (displayed in the Folder Contents area).

Create a new folder in the file manager
Create a new folder in the file manager

Finally, click the "Create new folder" button to create the folder.

manage files in cpanel
Newly created folder

The folder is now displayed in the Folder Contents view.

Now create a new file in the newly created folder. To do this, access the folder by double-clicking on it in the folder contents view. This will show you the contents of the folder, which in our case is empty.

File management empty folder
New empty folder

Please also note that cPanel the folder name highlights in the folder tree view so you know exactly which folder you are in.

To create a new file, please click the "New File" button in the "Actions" section.

Create a new file in the file manager
We create a new file

Again, a new window will open where you must enter the name of the newly created file. Also here you have to enter the relative path to the root folder of your account. You will notice that the second field for the relative path to the file is already filled in with the name of the folder. If you want the file to be created in the current folder, leave the field unchanged. If you want to create the file in another folder, enter the relative path to your home folder in this field.

new file in cpanel

Click on the button "Create new file". The file you specified is created.

Newly created text file
Newly created text file

Please note that in our example we have also specified a file extension (.txt). However, this is not necessary, since the UNIX-like operating system considers this file as a plain text content type.

Upload/download files

Probably one of the best features offered by the file manager is the ability to upload or download files. Let's take a look at how this works.

To upload a new file, you must ensure that the folder to which the file will be uploaded is selected and displayed in the Folder Contents section. For the purposes of this tutorial, we will stay in the newly created "user-files" folder.

Load a new file
Load a new file

When you click the "Upload" button, you will be redirected to a new page where you can select the file from your local computer or send it by Drag & Drop can transfer.

File upload in cPanel
File upload in cPanel

Once the file is selected, it is automatically uploaded. To track the progress of the upload, a progress bar is displayed directly below the upload interface.

Please note that you can select multiple files during the upload and a progress bar will be displayed for each of them.

Finally, if you click on the "Back to ...." link just below the file list, you will be redirected back to the folder where the files should be uploaded.

You will see the uploaded file
You will see the uploaded file

If you have several Files uploaded have, these should also be displayed.

Downloading a file is even easier! There are Only two actions that you need to perform. Selecting the file in the "Folder Contents" section and using the "Download" button in the "Actions" section.

Download a file
Download a file

The file will be downloaded to the Downloads folder or to another folder. This depends on the configuration of your Web browser for downloads.

Delete files/folders

To delete a file or folder, select the file or folder. Then click the Delete button in the Actions section.

Delete a file in cPanel
Delete a file in cPanel

You will see a new window where you have to confirm how the file should be deleted. You can choose whether to move the file to the recycle bin of your web hosting account or delete it permanently.

cpanel trash folder

We recommend that you do not move the file to the Recycle Bin, but download it and then delete it permanently to avoid data loss.

Rename file or folder

To rename a file or folder, you need to select it again. In the Actions section you need to press the button "Rename" operate.

Rename a file to cPanel
Rename a file to cPanel

A new window will open where you enter the new name of the file you want to rename.

New file name
New file name

When you are done, please click the "Rename File" button to rename the file successfully.

Edit a file

Editing a file means changing its contents. The cPanel file manager offers a handy text editor for all files. To edit the Text editor you need to select a file and then click the "Edit" button located in the "Actions" area.

Edit a file
Edit a file

A new window will open where you have to select the file encoding.

You can choose the file encoding.
You can choose the file encoding.

We strongly recommend that you select the "utf-8" encoding, which is selected by default. Finally, click the "Edit" button to access the file editor.

You see the cPanel file editor
You see the cPanel file editor

The functions of the File Editor are pretty much self-explanatory, so we won't cover them in this tutorial.

If the file you want to edit is an HTML file, you can also take advantage of an additional editor optimized specifically for HTML files. The HTML editor. Again, you can find it in the action view, right next to the "Edit" button.

The HTML editor is actually a simple WYSIWYG editor that allows you to edit not only the content of the file, but also its source code.

Set permissions for files and folders

In all UNIX-based operating systems all files and folders are protected by a set of security permissions. To set these permissions, a user usually has to do it from the command line. Thanks to the cPanel File Manager Function however, you can set the permissions of a file or folder via an easy-to-use permission manager.

To view the current file permissions or set new file permissions, please select the file or folder you want to edit. Then click the Permissions button in the Actions section.

Set new file permissions
Set new file permissions

You will see the Permissions window. You can fully manage them and configure them according to your personal needs. Please note that the default permissions for files are 644 and for folder 750 are.

Set new file permissions

When you click the Change Permissions button, they are set for the selected file or folder.

The management of the files and folders of your Web hosting Accounts will always be an important foundation that every web hosting account user must understand and be able to perform without any problems. If there is a function that you don't understand or can't cope with, please contact our technical support Team and ask what you need to achieve your file management goals.

Register your domain and get started!

Unleash your online potential - register your desired domain and lay the foundation for your digital success!

Register domain
Hat Ihnen diese Anleitung geholfen?