

Architected a minimalist cloud-based mini hosting engine that allows developers to deploy lightweight web applications and scripts with zero configuration. Designed to serve as an accessible, cost-effective micro-cloud infrastructure tool.
A complete PHP-based mini hosting panel that allows you to upload frontend projects (HTML/CSS/JS, React, Vue, Angular) and instantly get live public URLs. Features admin authentication with Google Authenticator 2FA, online file manager with code editor, and comprehensive security.
Secure Admin Authentication
Project Upload System
Online File Manager
Security Features
SPA Support
Upload all files to your web server (e.g., /public_html/mini-hosting-panel/)
mini_hosting_panel)database.sql file:
bashmysql -u username -p mini_hosting_panel < database.sql
Edit config/database.php and update the database credentials:
phpdefine('DB_HOST', 'localhost'); define('DB_NAME', 'mini_hosting_panel'); define('DB_USER', 'your_username'); define('DB_PASS', 'your_password');
Edit config/config.php and update the base URL:
phpdefine('BASE_URL', 'https://yourdomain.com/mini-hosting-panel'); define('PROJECTS_URL', BASE_URL . '/projects');
Set proper file permissions:
bashchmod 755 -R /path/to/mini-hosting-panel chmod 777 /path/to/mini-hosting-panel/projects chmod 777 /path/to/mini-hosting-panel/uploads
https://yourdomain.com/mini-hosting-panel/mini-hosting-panel/ ├── admin/ # Admin dashboard and upload pages │ ├── dashboard.php │ ├── upload.php │ └── upload-handler.php ├── auth/ # Authentication system │ ├── login.php │ ├── totp-verify.php │ ├── logout.php │ └── TOTPHelper.php ├── config/ # Configuration files │ ├── config.php │ └── database.php ├── editor/ # File manager and editor │ ├── file-manager.php │ └── file-operations.php ├── includes/ # Helper functions │ └── security.php ├── assets/ # CSS and JavaScript │ ├── css/style.css │ └── js/main.js ├── projects/ # Uploaded projects (public access) ├── uploads/ # Temporary upload storage ├── .htaccess # Main Apache configuration ├── index.php # Landing page └── database.sql # Database schema
Projects are publicly accessible at:
https://yourdomain.com/mini-hosting-panel/projects/project_xxxxx/
Change Default Password
Use Strong Passwords
Enable HTTPS
Restrict Admin Access
Regular Backups
Update PHP
File Upload Limits
MAX_UPLOAD_SIZE in config.phpEdit config/config.php to customize:
php// Session timeout (seconds) define('SESSION_TIMEOUT', 3600); // Max login attempts define('MAX_LOGIN_ATTEMPTS', 5); // Login timeout (seconds) define('LOGIN_TIMEOUT', 900); // Max upload size (bytes) define('MAX_UPLOAD_SIZE', 100 * 1024 * 1024); // Allowed file extensions define('ALLOWED_EXTENSIONS', [...]); // Blocked file extensions define('BLOCKED_EXTENSIONS', [...]);
php.iniconfig/config.phpconfig/database.phpUsername: admin
Password: Admin@123
⚠️ CHANGE THESE IMMEDIATELY AFTER FIRST LOGIN!
For issues or questions:
This project is provided as-is for educational and personal use.
Built with PHP, MySQL, and modern web technologies.