Why is the Control Panel File Manager an Essential Tool?
Many hosting users, especially administrators of WordPress or other content management system websites, often rely on FTP or SSH to manage their files. However, the built-in File Manager of the control panel (such as cPanel or DirectAdmin) is a powerful alternative that requires no additional software. This tool allows you to upload, extract, edit, and manage files without needing complex technical knowledge. In this article, we will explore all key features of the File Manager with practical examples and common troubleshooting tips.
Uploading Files with the File Manager: Methods and Tips
Direct Upload via the User Interface
The simplest way to upload a file is to use the Upload button in the File Manager. After clicking this button, a window opens where you can select files from your computer. Important note: the maximum upload file size usually depends on server settings and is often between 2 and 50 MB. For larger files, you should use alternative methods like FTP or increase the limit in php.ini.
Uploading with Drag & Drop
Many modern control panels support the Drag & Drop feature. Simply drag the file from your File Explorer or Finder window into the File Manager window. This method is very efficient for uploading multiple files simultaneously. If your browser does not support this feature, use the traditional method.
Common Issue: Uploading Large Files
One common mistake is attempting to upload large files (e.g., a 200 MB ZIP file) via the File Manager. This may result in a 413 Request Entity Too Large error or a timeout. Solution: split the file into smaller parts or use FTP. You can also increase the upload limit by editing the .htaccess file:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
Note: These changes may be restricted by your hosting provider. If you encounter issues, contact your hosting support.
Extracting ZIP Files with the File Manager
Correct Extraction Method
One of the most commonly used features of the File Manager is the automatic extraction of compressed files. After uploading a ZIP file, right-click on it and select the Extract option. A window usually opens showing the extraction path. It is best to upload the ZIP file in the same directory where you want the content to be placed, so extraction is performed correctly.
Practical Example: Installing a WordPress Theme
Suppose you have a WordPress theme named theme.zip. Follow these steps:
- Navigate to the
public_html/wp-content/themes/directory. - Upload the
theme.zipfile. - Right-click on the file and select Extract.
- After extraction, the
themefolder will be created in the same directory. - Delete the ZIP file to save space.
Common Issue: Extraction Error Due to Permissions
Sometimes extraction fails with a Permission denied error. This issue is usually due to incorrect permissions on the destination directory. To fix it, first change the permissions of the destination folder to 755 (by right-clicking and selecting Change Permissions). Then try extraction again.
Editing Files with the File Manager
Direct Editing of Text Files
The File Manager has a built-in text editor suitable for modifying PHP, HTML, CSS, JS files, and even configuration files like .htaccess or wp-config.php. To edit, right-click on the file and select Edit or Code Editor. After making changes, click the Save Changes button.
Security Tips for Editing
Before editing sensitive files, always create a backup. You can download the file first or right-click and select Copy to create a copy with a name like file.php.bak. Also, avoid editing binary files (such as images) with the text editor, as this may corrupt the file.
Example: Changing Memory Limit in WordPress
To increase the memory allocated to WordPress, open the wp-config.php file and add the following line before the /* That's all, stop editing! */ line:
define('WP_MEMORY_LIMIT', '256M');
After saving, the changes take effect immediately.
Showing Hidden Files in the File Manager
What are Hidden Files?
Hidden files are files whose names start with a dot (.), such as .htaccess, .env, or .gitignore. These files are usually not displayed by default in the File Manager to prevent accidental modification.
How to Show Hidden Files
In most control panels, there is an option at the top of the File Manager labeled Show Hidden Files or Display Dot Files. Enabling this option will display all hidden files. If you do not see this option, you may need to adjust advanced settings. In some cases, you can enable this feature through your account settings.
Common Issue: Hidden Files Not Showing After Enabling
Sometimes, even after enabling the option, hidden files are not displayed. This issue may be due to browser cache. Refresh your browser using Ctrl + F5. If the problem persists, try a different browser or contact your hosting support.
Changing File and Folder Permissions
What are Permissions and Why are They Important?
Permissions determine who can read, write, or execute a file or folder. These values are displayed as three-digit numbers like 644 or 755. The first digit refers to the Owner, the second to the Group, and the third to Others. Each digit is the sum of the permissions for read (4), write (2), and execute (1).
Standard Values
- Files: Typically
644(owner can write, others can only read). - Folders: Typically
755(owner can write and execute, others can only read and execute). - Executable Files: Such as CGI scripts, typically
755.
How to Change Permissions in the File Manager
Right-click on the desired file or folder and select the Change Permissions option. A window opens where you can modify permissions using checkboxes or by entering a numeric value. After applying, click the Change button.
Practical Example: Fixing a 403 Forbidden Error
If you encounter a 403 Forbidden error when opening your website, the permissions of the index.php file or the public_html folder are likely incorrect. Change the permissions of the public_html folder to 755 and the files inside it to 644. Also, ensure that the .htaccess file is not corrupted.
Common Issue: Changing Permissions Recursively
Sometimes you need to change the permissions of all files and folders within a directory simultaneously. In the File Manager, select the Change Permissions Recursively option. However, be cautious: if you incorrectly change the permissions of system files, your website may go down. It is best to create a backup first.
Conclusion and Final Recommendation
The control panel File Manager is a powerful and accessible tool that can meet many daily hosting management needs. By properly learning how to upload, extract ZIP files, edit files, show hidden files, and change permissions, you can manage your website without needing additional tools. If you are looking for hosting with a user-friendly control panel and strong technical support, ServerNet is a suitable option for you. By following security tips and regular backups, make the best use of this tool.