

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.