File Manager Guide: Managing Website Files Directly in Your Browser
The cPanel File Manager is one of the most essential tools in your web hosting account. It allows you to upload, edit, copy, move, delete, compress, extract, and manage website files directly within your browser. In many cases, the File Manager replaces a separate FTP program, especially when you only need to tweak individual files or quickly upload a single file.
The File Manager is particularly well-suited for everyday administrative tasks: modifying an HTML file, uploading an image, checking a .htaccess file, extracting a ZIP archive, or creating a backup copy of a folder. However, for very large volumes of data, numerous simultaneous uploads, or regular file transfers, FTP or SFTP is often more convenient and stable.
Always work carefully inside the File Manager. Changes to website files affect your live website immediately. If you delete, overwrite, or incorrectly edit crucial files, your website may display errors or become entirely inaccessible.
What is the cPanel File Manager?
The File Manager is a web-based interface for managing the files and folders of your hosting account. You can open it directly from cPanel without needing to install any additional software on your computer.
Typical tasks in the File Manager include:
- Creating files and folders
- Uploading or downloading files
- Editing or renaming files
- Copying or moving files
- Creating and extracting ZIP archives
- Changing file permissions
- Displaying hidden files such as
.htaccess - Deleting files or restoring them from the trash, if available
This makes the File Manager a central tool for maintaining your website. At the same time, you should know which folders are critical and which areas you should not modify without a good reason.
The Most Essential Directory: public_html
The public_html Folder
In many cPanel accounts, the public_html folder is the web root directory of your primary domain. Files that need to be publicly accessible when your main domain is visited are normally located in this folder. A typical index file, for example, is index.php or index.html.
When visitors access your domain, the web server delivers content from the corresponding web directory. For the main domain, this is frequently public_html. However, subdomains, addon domains, or separate applications might use a different directory. Therefore, you should always check which folder the respective website actually resides in before making changes.
Examples of typical files and folders in the web directory:
index.phporindex.htmlas the website's home page file.htaccessfor redirects and web server ruleswp-config.phpfor WordPress websiteswp-contentin WordPress for themes, plugins, and uploadsimages,assets, oruploadsfor media filescssandjsfor stylesheets and JavaScript files
Opening and Navigating the File Manager Correctly
How to open the File Manager in cPanel:
- Log in to your cPanel account.
- Look for the Files section.
- Click on File Manager.
- If prompted, select the desired home directory.
- Navigate to the required folder using the folder tree on the left or the file view on the right.
The interface generally consists of a folder navigation pane, a file list, and a toolbar. Many actions can be accessed either via the buttons in the toolbar or by right-clicking a file or folder.
Common Tasks in the File Manager
Via Upload, you can transfer files from your computer into the current folder. Many browsers also support drag-and-drop in the upload window.
Select a file and choose Download to save a local copy to your computer.
Using the search feature, you can search for file names across your entire account or within the current directory.
Use Folder or New Folder to create new directories, for instance, for images, downloads, or project files.
Uploading Files: The Right Way to Proceed
When you want to upload new files to your website, first make sure you are inside the correct destination folder. A file accidentally uploaded to the wrong folder might not be accessible via the website or might not be found by your application.
Step-by-Step Instructions
- Open the File Manager in cPanel.
- Navigate to the desired destination folder, such as
public_htmlor a subfolder of your website. - Click Upload in the toolbar.
- Drag and drop the file into the upload window or select it using the file dialog box.
- Wait until the upload is fully completed.
- Return to the File Manager and check if the file is displayed in the correct folder.
If you upload existing files with the same name, the current file may be overwritten. Therefore, check whether a file with identical naming already exists before uploading.
Editing Files: Editor and Code Editor
The File Manager offers the ability to edit certain files directly within the browser. This is very practical for minor adjustments to HTML, CSS, PHP, text, or configuration files.
| Function | Typical Application |
|---|---|
| Edit | Simple text editing, for example, with TXT, HTML, or configuration files. |
| Code Editor | Editing source code with a better layout, frequently including syntax highlighting. |
| HTML Editor | Editing simple HTML content, provided this feature is available in your interface. |
Only edit PHP, JavaScript, CSS, or configuration files if you know exactly what you are modifying. A single missing character can cause a website to stop working correctly. Always create a backup copy of the file before making changes.
Copying, Moving, and Renaming Files
Via the File Manager, you can copy, move, or rename files and folders within your hosting account. These features are helpful when creating a backup copy, restructuring files for another website, or correcting names.
- Copy: Creates a second version of the file in a different location.
- Move: Removes the file from its current location and places it in the new location.
- Rename: Changes the file name or folder name.
When renaming, keep in mind that websites and applications frequently use fixed file paths. If you rename a file, a link, script, or integration may break as a result.
Creating and Extracting ZIP Archives
The File Manager can compress files and folders or extract archives. This is particularly handy when you want to upload an application as a ZIP file or quickly back up a folder before modifying it.
Typical Use Cases
- Creating a ZIP file of a website or a folder
- Extracting a CMS package or template archive after uploading
- Downloading multiple files bundled together
- Creating a quick backup copy before making changes
Creating a ZIP Archive
- Select the desired files or folders.
- Click on Compress.
- Choose an archive format, typically ZIP.
- Specify the name and location for the archive.
- Start the compression process.
Extracting a ZIP Archive
- Upload the ZIP file to the desired destination folder.
- Select the ZIP file in the File Manager.
- Click on Extract.
- Verify the destination path carefully.
- Start the extraction process.
- Afterwards, inspect the generated files and folders.
When extracting, pay special attention to the target folder. Some archives already contain a main folder, while others extract numerous files directly into the current directory.
Understanding File Permissions: 644, 755, and CHMOD
File permissions determine who is allowed to read, write, or execute a file. In web hosting, incorrect permissions are a frequent cause of security issues or functional errors.
Typical permissions include:
- 644 for files: Frequently the appropriate standard permission for normal website files.
- 755 for folders: Frequently the appropriate standard permission for directories.
- Avoid 777: Grants highly extensive write access and is generally not recommended for security reasons.
Depending on the application, specific permissions might be required. Therefore, only change permissions intentionally and avoid doing so globally for the whole website.
Do not set files or folders to
777 carelessly. Doing so can open up write permissions too widely. If an application requires write permissions, you should first check which specific file or folder is affected.Displaying Hidden Files: .htaccess and Dotfiles
Many critical configuration files start with a period. These files are also known as dotfiles and might be hidden by default in the File Manager. A well-known example is the .htaccess file, which is used for redirects, access protection, and other web server rules.
How to make hidden files visible:
- Open the File Manager in cPanel.
- Click on Settings in the top right corner.
- Enable Show Hidden Files (dotfiles).
- Click Save.
After doing this, files like .htaccess should become visible, provided they exist in the current directory.
Deleting Files and Using the Trash Can
When you delete files or folders, cPanel may initially move them to a trash folder depending on your settings. They can potentially be restored from there. However, the exact behavior depends on the respective cPanel and server configuration.
Keep the following points in mind when deleting:
- Do not delete any files whose function you do not know.
- Create a copy before deleting important files.
- Check if the file is required by your website or application.
- Do not empty the trash hastily if you are unsure.
- In case of accidental deletion, use the restore function or a backup if possible.
If a deleted file is no longer available in the trash, a restoration from a backup might be necessary depending on the situation.
Important Folders and Files: What You Should Not Modify Carelessly
In a hosting account, there are files and folders that are particularly critical for the operation of your website or application. Changes here should only be made if you know their purpose or are following explicit instructions.
| File or Folder | Significance |
|---|---|
.htaccess |
Controls redirects, access protection, and web server rules, among other things. |
index.php / index.html |
Common landing page or entry file for a website or application. |
wp-config.php |
Critical WordPress configuration file containing database connection details and other settings. |
wp-content |
WordPress folder designated for themes, plugins, and uploads. |
mail |
Can contain email data and should not be modified manually. |
Caution with Git Repositories
If a folder contains a Git repository, files should not be edited manually in an uncoordinated manner within the File Manager. Manual changes can obscure version control history or cause conflicts. For Git projects, use the designated Git interface or a clean deployment process whenever possible.
This applies especially to websites under active development or where multiple individuals work on code modifications. In such cases, a structured workflow using Git is significantly safer than spontaneous edits directly in the File Manager.
File Manager or FTP: Which Is Better?
The File Manager is ideal for quick, single tasks. In contrast, FTP or SFTP is usually better suited if you regularly transfer many files or work locally on a project.
| File Manager | FTP/SFTP |
|---|---|
| Highly practical for individual files and quick edits. | Better for numerous files, larger projects, and regular transfers. |
| Can be used directly inside the browser. | Requires an FTP client or appropriate software. |
| Great for ZIP archives, small corrections, and quick downloads. | Great for local development and extensive file transfers. |
For many clients, the File Manager is the easiest entry point. However, if you work on many files regularly, an FTP program can be more efficient in the long run.
Typical Errors in the File Manager and How to Avoid Them
- Wrong folder: Files are uploaded but do not appear on the website because they are located in the incorrect directory.
- Overwritten files: A new file with an identical name replaces an existing file.
- Missing index file: Without a suitable
index.phporindex.html, the website might not display correctly. - Hidden files not visible: The
.htaccesscannot be found because dotfiles are hidden. - Incorrect permissions: Restrictions that are too tight or permissions that are too open can cause errors or security risks.
- Archives extracted incorrectly: Files end up in an unexpected subfolder or directly in the wrong directory.
- Code edited directly without a backup: Small syntax errors can cause immediate visible issues.
Recommended Safe Workflow
When making modifications to website files, this workflow is recommended:
- Open the File Manager and navigate to the correct directory.
- Create a copy of the file or folder you wish to change.
- Make only the necessary adjustment.
- Save the file.
- Test the website immediately in your browser.
- Also check affected subpages, forms, login areas, or media.
- If an error occurs, restore your backup copy.
This cautious approach prevents many common problems and simplifies troubleshooting if a change does not work as intended.
FAQ on cPanel File Manager
Can I use the File Manager instead of FTP?
Yes, the File Manager is sufficient for many straightforward tasks. You can upload, download, edit, delete, and extract files. For large quantities of files, very large uploads, or regular project work, FTP or SFTP is often better suited.
Why can't I see my uploaded file on the website?
Often, the file was uploaded to the wrong folder or the file name does not match the link. Check whether the file is located in the correct web directory, such as public_html or the document root of the respective domain.
Why is my .htaccess file not showing up?
The .htaccess file starts with a period and is therefore considered a hidden file. In the File Manager, go to Settings and enable the option Show Hidden Files (dotfiles).
What permissions are standard for files and folders?
Typically, 644 is used for files and 755 for folders. There may be exceptions depending on the application. Highly open permissions like 777 should be avoided for security reasons.
Can I edit PHP files directly in the browser?
Yes, technically this is possible. However, you should only edit PHP files if you understand the code or are following a reliable guide. Faulty PHP syntax can cause the website to crash.
What should I do if I accidentally deleted a file?
First, check whether the file is available in the File Manager's trash. If not, a restoration from a backup might be required depending on the situation. Act as quickly as possible and avoid making further changes to the affected area.
The cPanel File Manager is a powerful tool for managing your website files directly in your browser. You can upload, edit, copy, move, delete, compress, and extract files. Safe handling of core files like
.htaccess, index.php, or WordPress configuration files is particularly crucial. Always create a backup before making changes and inspect your website carefully afterwards.If you are unsure which file can be modified, a file was accidentally deleted, or your website displays errors after an adjustment, the CURIAWEB support team will gladly assist you.
Create a Support Ticket