How to Manage Your Website Files Using cPanel File Manager
cPanel's File Manager allows you to upload, download, edit, move, and organize your website files directly from your browser.
Lagrange Point Media (LPM) provides File Manager access with its DIY Hosting plans, allowing you to manage website files without installing additional software or using FTP.
File Manager is particularly useful for uploading website content, modifying configuration files, and troubleshooting website issues.
1. Accessing File Manager
-
Sign in to the LPM Client Portal.
-
Open cPanel from your active hosting service.
-
Search for File Manager.
-
Click File Manager to open your account's file directory.
The interface displays the files and folders associated with your hosting account.
2. Understanding Your Website's File Structure
Your hosting account contains several directories, but not all of them are intended for publicly accessible website files.
Common directories include:
-
public_html: Commonly serves as the document root for your primary website.
-
wp-content: Contains WordPress themes, plugins, uploads, and other website content.
-
wp-admin: Contains WordPress administration files.
-
wp-includes: Contains core WordPress files and libraries.
The WordPress directories listed above appear inside the directory where WordPress is installed.
If you host multiple domains, each domain may use a different document root.
To find the correct directory for a domain:
-
Return to cPanel.
-
Open Domains.
-
Locate the domain you want to manage.
-
Check its Document Root.
Important: Files stored inside a publicly accessible document root may be accessible through the internet. Never store passwords, confidential documents, or unprotected backup archives in publicly accessible directories.
3. Uploading Files to Your Website
To upload files using File Manager:
-
Navigate to the directory where the files should be stored.
-
Click Upload in the File Manager toolbar.
-
Select the file from your computer.
-
Wait for the upload to complete.
-
Return to File Manager and verify that the file appears in the correct directory.
If you need to upload multiple website files, you can compress them into a ZIP archive before uploading.
After uploading the ZIP file:
-
Select the archive.
-
Click Extract.
-
Confirm the extraction destination.
-
Verify that the extracted files are in the correct directory.
Tip: Be careful when extracting archives containing existing filenames. Replacing website files can affect your live website.
4. Editing Website Files
File Manager includes a built-in editor for modifying text-based files such as PHP, HTML, CSS, and configuration files.
To edit a file:
-
Locate the file in File Manager.
-
Select the file.
-
Click Edit.
-
Make the necessary changes.
-
Click Save Changes.
Before modifying an important file, download a copy to your computer.
Warning: Incorrect changes to PHP files or configuration files can cause your website to stop functioning. Avoid editing files unless you understand their purpose.
5. Viewing Hidden Files
Some important website files are hidden by default.
One common example is .htaccess, which may control redirects, URL rewriting, and certain Apache web server behaviors.
To display hidden files:
-
Open File Manager.
-
Click Settings.
-
Enable Show Hidden Files (dotfiles).
-
Save your preferences.
Hidden files should be modified carefully, particularly when they affect website routing or security.
6. Understanding File Permissions
File permissions determine who can read, modify, or execute files and directories on your hosting account.
Common permission settings for many PHP-based websites include:
-
644: Commonly used for regular website files.
-
755: Commonly used for website directories.
These are common examples, not universal requirements. Some applications and server configurations require different permissions.
To inspect or change permissions:
-
Locate the file or folder in File Manager.
-
Select it.
-
Click Permissions or Change Permissions.
-
Review the current settings.
-
Make changes only when necessary.
Security Warning: Avoid setting files or directories to 777. This grants broad write permissions and can create security risks.
7. Deleting and Restoring Files
To delete a file:
-
Locate and select the file.
-
Click Delete.
-
Review the deletion confirmation.
-
Confirm the action.
Depending on the deletion method, the file may be moved to File Manager's Trash.
If the file is still in Trash, you may be able to restore it.
However, files deleted permanently or removed through other methods may not be recoverable through Trash.
Important: File Manager's Trash is not a substitute for maintaining backups.
8. Managing WordPress Files
If your website uses WordPress, File Manager can help you troubleshoot certain problems.
For example, you may need to:
-
Inspect your
wp-contentdirectory. -
Upload a file requested by a website service.
-
Review an application configuration file.
-
Temporarily rename a problematic plugin directory.
-
Examine available error logs.
Be careful when modifying WordPress core files or the wp-config.php configuration file.
The wp-config.php file may contain sensitive database credentials and other security-related settings. Never share its complete contents publicly.
For routine WordPress management, LPM recommends using the WordPress dashboard or the available WordPress management tools in cPanel rather than manually modifying core files.
9. Getting Help from LPM
If you accidentally delete an important file, encounter a permissions error, or experience website problems after making changes, contact LPM support.
Submit a support ticket through the LPM Client Portal.
Please include:
-
Your domain name.
-
The file or directory involved.
-
A description of the changes made.
-
Any error messages you encountered.
-
Approximately when the problem started.
This information helps our support team investigate the issue more efficiently.
Additional Resource: Official cPanel File Manager Documentation