π Language: English | Bahasa Indonesia
Hosting File Manager is a modern, lightweight, standalone web file manager built with pure Native PHP. It is specifically designed to manage web hosting files and directories (public_html, subdomains, VPS directories, etc.) directly from your browser without any dependency on cPanel API, MySQL database, Composer, or external frameworks.
Featuring an authentic cPanel-inspired interface, robust ZIP extraction & compression, an in-browser code editor, a Recycle Bin, a real-time Activity Log Viewer, persistent 30-day sessions, and an administrative settings UI.
Important
Given the prevalence of malicious PHP scripts (web shells / credential stealers) on the web, we provide complete, verifiable transparency:
- β NOT a Backdoor or Web Shell: No hidden payloads, zero code obfuscation, and absolutely no dangerous system execution functions such as
eval(),base64_decode(),shell_exec(), orsystem(). - β NO Data or cPanel Credential Theft: This application performs zero outgoing network calls (no outgoing HTTP/cURL callbacks) and contains no telemetry. All your files and credentials remain 100% on your own server. It never requests, accesses, or touches your server's cPanel/WHM root credentials.
- β 100% Open Source & Auditable: Written in clean, readable native PHP. Anyone can inspect and audit every line of code before deploying it to production.
π Quick Self-Audit Command (Verify for Yourself):
# Verify there are no dangerous execution functions across the codebase:
grep -rnE "eval\(|shell_exec\(|system\(|passthru\(|base64_decode\(" app/ index.php
# Result: 0 matches found (100% Clean & Safe)Many developers ask: "My hosting already has a default cPanel File Manager, why should I use this?"
Here are the real-world problems and scenarios solved by Hosting File Manager:
-
π₯ Secure Client / Team File Access (Without Sharing Master cPanel Credentials)
If you are a freelancer or agency, clients or junior team members often need to upload or tweak website files. Giving them master cPanel access is dangerous because they might accidentally delete MySQL databases, alter DNS records, or compromise email accounts. With this tool, you can deploy it to a dedicated subdomain (e.g.,files.clientdomain.com) with isolated access restricted only to that website's directory. -
β‘ Lightweight & Fast Alternative When cPanel Is Sluggish
Default cPanel File Managers can feel heavy, slow to load, or frequently trigger annoying session timeouts while you are working. Hosting File Manager is built with 100% Native PHP without a database, making it snappy, instant to load, and equipped with a 30-day persistent session. -
π₯οΈ Web File Manager for VPS / Servers Without a Control Panel
If you manage a VPS (Ubuntu, Debian, AlmaLinux) running a plain LEMP/LAMP stack (Nginx/Apache) without a paid control panel like cPanel or Plesk, managing files solely via terminal SSH and SFTP can be tedious. This tool gives you a full-featured, modern web GUI explorer out of the box. -
π Productivity Features Missing in Stock cPanel
- Find in Files: Recursively search text strings or code snippets across dozens of files simultaneously with full Regex support, and jump directly to the matched line in the editor in 1 click.
- Recycle Bin (Trash): Deleted files are not immediately lost forever; they go to Trash and can be restored back to their original paths with a single click.
- Activity Audit Log: Transparent real-time record of who did what (uploads, renames, edits, extractions, deletions).
- Mobile Touch Friendly: Responsive grid cards and haptic long-press context menus for easy mobile troubleshooting.
-
π Emergency Recovery Access When cPanel Is Down or Ports Are Blocked
When your cPanel dashboard is experiencing issues, license errors, or port 2083/2082 is blocked by corporate or campus firewalls, you can still manage your files over standard HTTP/HTTPS ports (80/443).
- π₯οΈ Modern cPanel-Style Interface β Responsive, clean dark/light themes, crisp SVG icons.
- π Dark / Light Theme Toggle β 1-click switch, automatically saved in
localStorage. - π Disk Usage / Quota Meter β Real-time visual disk quota indicator (Green / Orange / Red).
- β‘ Zero Dependencies β 100% Native PHP. No Composer, Node.js, or database required.
- π¦ ZIP Extractor & Compressor β Anti-Zip Slip security, conflict resolution (Overwrite / Skip / Rename).
- ποΈ Recycle Bin / Trash β Deletions are sent to Trash first. 1-click restore, permanent delete, empty trash. Real-time badge counter.
- π Activity Log Viewer β Detailed audit log: upload, rename, edit, trash, extract, etc. Filter by action & text with color-coded status badges.
- π Find in Files β Fast recursive text/code search across files, Regex support, 1-click jump to editor.
- π In-Browser Code Editor β Syntax highlighting for PHP, JS, HTML, CSS, SQL, Bash. Fullscreen, Word Wrap, Ctrl+S save.
- β¨οΈ Desktop Keyboard Shortcuts β F2 Rename, Del Delete, Ctrl+A Select All, Ctrl+F Search, Ctrl+Shift+F Find in Files.
- π± Responsive Mobile Experience β Adaptive grid tiles, long-press context menus (haptic feedback), scrollable toolbars.
- π 1-Click Duplicate β Instantly duplicate files or folders within the same directory.
- π Large File Uploads (> 100 MB) β Multi-file uploads with real-time progress bars.
- π Server-Grade Security β Path traversal protection, brute-force rate limiter, CSRF token validation, and audit logs.
- βοΈ Web Admin Settings UI β Modify username, password, allowed root directory, upload limit, and session timeout from the browser.
- π Smart cPanel Directory Detection β Automatically detects parent directories when deployed on a subdomain.
| Component | Minimum Requirement |
|---|---|
| PHP | 7.4 / 8.0 / 8.1 / 8.2 / 8.3+ |
| PHP Extensions | ext-zip, ext-session, ext-json |
| Web Server | Apache / LiteSpeed / Nginx / IIS |
| Database | β Not required (Zero Database) |
β οΈ IMPORTANT β Do NOT place this in an existing website directory!Hosting File Manager uses
index.phpas its main entry point. If you extract it directly intopublic_html/where an existingindex.php(such as WordPress, Laravel, etc.) already lives, your existing website file will be overwritten and damaged.β Always deploy into a dedicated subfolder or a separate subdomain as illustrated below.
public_html/
βββ index.php β Your main website (UNTOUCHED)
βββ wp-content/ β e.g. WordPress / Laravel
βββ filemanager/ β β
Extract Hosting File Manager HERE
βββ index.php
βββ config.php
βββ app/
βββ assets/
βββ storage/
Steps:
- Download
hosting-file-manager.zipfrom the Releases tab. - Upload it to your hosting via FTP or cPanel File Manager.
- Extract it into
public_html/filemanager/. - Open your browser:
https://yourdomain.com/filemanager/. - Complete the Setup Wizard to create your administrator username and password.
π‘ Security tip: Use an unguessable folder name, such as
/manage-X9K/or/cpanel-tools/.
yourdomain.com/ β Your main website (UNTOUCHED)
manager.yourdomain.com/ β β
Dedicated subdomain for File Manager
Steps in cPanel:
- In cPanel, navigate to Subdomains β create a subdomain, e.g.,
manager.yourdomain.com. - Set the Document Root to:
/home/username/manager.yourdomain.com/. - Upload and extract
hosting-file-manager.zipinto that document root folder. - Visit:
https://manager.yourdomain.com/. - Complete the Setup Wizard.
Subdomain Advantages:
- β Zero risk of file conflicts with other projects
- β Independent SSL certificate
- β Easy to disable or password-protect anytime
- β Clean, memorable URL
C:\xampp\htdocs\
βββ myproject\ β Your project
βββ filemanager\ β β
Extract here
Access: http://localhost/filemanager/
git clone https://github.com/kazuhamoe/Hosting-File-Manager.git filemanager
# Access: http://localhost/filemanager/Hosting File Manager features an automated First-Time Setup Wizard:
- On initial launch, the user is presented with the Administrator Setup form to create their credentials.
- Passwords are encrypted with Bcrypt (
PASSWORD_BCRYPT) and stored instorage/credentials.json. - Anti Re-Setup Lock: Permanently locks setup mode once credentials are established.
- Brute-Force Rate Limiter: Protects against automated dictionary attacks.
- CSRF Tokens: Enforced across all mutating operations (delete, upload, edit, rename, move).
define('ALLOWED_ROOT', dirname(__DIR__)); // Boundary directory accessible by users
define('SESSION_TIMEOUT', 2592000); // Session lifetime (seconds) β default 30 days
define('MAX_UPLOAD_SIZE', 200 * 1024 * 1024); // Maximum upload size (200 MB)
define('SHOW_DISK_USAGE', false); // Display disk quota meter
define('AUTH_PASS_HASH', ''); // Empty = enable Setup Wizardπ‘ Settings modified via the web UI are saved in
storage/settings.jsonand persist across updates.
βββ app/ # Core PHP backend (Auth, FileManager, Security, ZipManager, Logger)
βββ assets/
β βββ css/style.css # Responsive styles & themes
β βββ js/app.js # Frontend application engine
β βββ icons/ # SVG, ICO, and PNG favicons
βββ storage/
β βββ logs/audit.log # Activity audit log
β βββ trash/ # ποΈ Recycle Bin storage
β βββ temp/ # Temporary files
βββ index.php # Application entry point
βββ config.php # Primary configuration
βββ favicon.ico # Browser fallback icon
βββ updater.php # 1-click update script
- β Recycle Bin / Trash: Soft delete, 1-click restore, badge counter, empty trash.
- β Activity Log Viewer: Audit logs, text & action filters, color status badges, clear logs.
- β Enhanced Mobile UI/UX: Grid cards, long-press haptic context menus, scrollable toolbars.
- β Find in Files: Recursive text/code search across files, Regex support, jump to editor.
- β Keyboard Shortcuts: F2, Del, Ctrl+A, Ctrl+F, Ctrl+Shift+F, Esc.
- β Config Settings Manager: Edit runtime settings directly from the web UI.
- β Grid View Mode: Toggleable card/tile view alongside standard table view.
- β Automatic 0777 Permissions: Automatic permission setting on upload and extraction.
- β 75 automated test assertions passed.
- Core file management: upload, download, rename, delete, ZIP extraction/compression, code editor, dark mode.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Distributed under the MIT License. Free for personal and commercial use.
