cPanel File Manager is cPanel's web interface for handling of your local file storage for cPanel accounts. This interface is capable of doing many things, including editing files for quick modifications.
In this guide we will be going over various aspects of the cPanel File Manager.
The cPanel File Manager has the ability to show hidden files. Hidden files are marked with periods before the file name (also called dotfiles); such as
To enable this; you'll want to login to your cPanel File Manager.
Most hidden files are going to be located within the root document directory. This is typically always going to be 'public_html'; so we'll load that folder.
We'll want to click the "Settings" button at the top right of the screen; it is highlighted by the red outline.
This will bring up a configuration window; we'll want to click "Show Hidden Files" and save our changes.
After you click save, the cPanel File Manager window will reload automatically and our .htaccess file will be showing like the following example.
As you can see the hidden file .htaccess now shows within the file listing and can be modified like all the other files.
Deleting files is pretty straight forward within cPanel.
However, there are some circumstances where you may experience an issue with deletion, such as a folders permissions being set to 000.
You'll want to get inside your file manager.
Once you're inside; you'll want to navigate to the folder you want to remove files in. For our example; our files are located within the public_html and so we'll access it by double clicking the folder to enter.
Now you'll want to notice the far right column regarding permissions and identify which ones are marked as '000'
We're going to attempt to delete the folder titled "example1", so we'll right click it and go to 'delete'.
You'll get a window like this asking if you want to delete this file.
If we click delete we'll experience the following error.
This error occurs because the File Manager default function cannot move this folder to ./trash; as it doesn't have the proper permissions to do so.
At this point you can do one of two things;
We'll use the skip trash function in this example;
The folder is now removed.
That's all there is to it when it comes to deleting files or folders!
Permissions set the rights that a folder or file may have. These are broken down into three sections;
Which is given permissions by the following; read, write and execute.
Value Permission 4 read (r) 2 write (w) 1 execute (x)
Here's a general idea of how it looks.
|Read ( r )||4||4||4|
|Write ( w )||2||-||-|
|Execute ( x )||-||-||-|
The above shows that the owner of the file can read/write to the file.
The group can only read the file.
Others can only read the file.
This is basic file permissions for files(644); folders would be 755.
So when you have 000 used or applied to your files/folders; then none of the respective groups can modify or access the files or folders.
In order to adjust permissions; you'll want to be within the File Manager of your cPanel account.
You'll then navigate to the folder that retains the files or folders you want to modify; in our case we'll use public_html
Once inside; we'll look at 'example1.php' – this file errors when attempting to modify it due to the permissions being set as 000.
We'll want to adjust the permissions by right clicking the file > Change Permissions
You'll see a with configurable checkboxes to adjust the permissions
We'll want to set 644 as shown in the following screenshot; then click on "Change permissions"
The permissions will be changed and the file will be accessible again.
This same concept works for Folders too, should they ever need their permission adjusted.
We hope this guide helps on how to delete files and adjust permissions within the cPanel File Manager.