Files and File Manager in cPanel¶
File Manager in cPanel is used to manage files stored on your hosting account.
You can use it to:
- browse website files,
- create folders,
- add new files,
- upload files from your computer to the hosting account,
- download files from the hosting account,
- edit text files,
- rename files,
- copy and move files,
- delete files.
You do not need an FTP application for these tasks.
1. Opening File Manager¶
After logging in to cPanel, find the:
Files
section.
Then click:
File Manager
After a moment, you will see a list of folders and files on the hosting account.
2. Where website files are stored¶
The main website files are usually stored in:
This is where you will typically find files such as:
and website directories.
Example:
If you want to modify website files, this is usually the first place to look.
Do not randomly delete folders outside
public_html. Some of them are required for the hosting account, email, or cPanel itself.
3. Uploading a file¶
To upload a file from your computer:
- Open the folder where you want to place the file.
- In most cases, this will be:
- In the top menu, click:
Upload
- Drag the file into the browser window or select it from your computer.
- Wait until the upload reaches
100%. - Return to File Manager.
The file should appear in the selected folder.
4. Creating a new folder¶
To create a new folder:
- Open the location where you want to create it.
- Click:
+ Folder
- Enter the folder name, for example:
- Confirm.
Done.
5. Creating a new file¶
To create an empty file:
- Open the appropriate folder.
- Click:
+ File
- Enter the file name, for example:
- Confirm.
6. Editing a file¶
If you want to change the contents of a text file, for example:
right-click the file and select:
Edit
You can also select the file and use the Edit button in the top menu.
After making changes, click:
Save Changes
Before modifying an important file, it is worth making a copy. A single missing character in a PHP or
.htaccessfile can cause the website to stop working.
7. Downloading a file¶
To download a file from the hosting account to your computer:
- Select the file.
- Click:
Download
The file will be downloaded to your computer.
8. Renaming a file¶
To rename a file:
- Select the file or folder.
- Click:
Rename
- Enter the new name.
- Confirm.
Example:
can be renamed to:
9. Copying a file¶
To make a copy of a file:
- Select the file.
- Click:
Copy
- Select the destination folder.
- Confirm.
This is especially useful before editing important files.
For example:
can be copied as:
10. Moving a file¶
To move a file to another folder:
- Select the file.
- Click:
Move
- Select the destination folder.
- Confirm.
11. Deleting a file¶
To delete a file:
- Select the file or folder.
- Click:
Delete
- Confirm the deletion.
Depending on the cPanel settings, the deleted file may be moved to the trash.
If you are deleting something important, first make sure you have a backup.
12. Trash¶
File Manager may keep deleted files in the trash.
If you accidentally delete something, check:
View Trash
If the file is still there, it may be possible to restore it.
13. Hidden files¶
Some files begin with a dot, for example:
These are hidden files.
If you cannot see them:
- Click Settings in the upper-right corner of File Manager.
- Enable:
Show Hidden Files (dotfiles)
- Save the settings.
14. The most important folder: public_html¶
In most cases:
is the main website directory.
If you place:
in this directory, it will usually be available at:
If the file is located in:
its URL will usually be:
15. Index file¶
The server automatically looks for a default start file, usually:
or:
This means that opening:
may automatically display:
without including the file name in the URL.
16. File permissions¶
In File Manager, you may see values such as:
These are file and directory permissions.
Typically:
is used for files, and:
for directories.
If you are not sure what you are doing, do not change permissions at random.
In particular, do not set:
unless there is a specific reason to do so.
17. What you should avoid¶
If you are not sure what a file or folder is used for:
do not delete it.
Be especially careful with files such as:
and directories located outside public_html.
Before making a major change, it is best to:
- download the file to your computer,
- make a copy,
- edit it only afterwards.
18. Simplest rule¶
If you simply want to upload a file to your website:
- Open File Manager.
- Go to:
- Click Upload.
- Select the file.
- Wait until the upload reaches
100%. - Done.
If you are not sure whether a file can be safely changed or deleted, contact Cloud4You technical support.