A comprehensive web-based installer for configuring production-ready Linux VPS servers. Installs and secures everything needed for high-traffic PHP + React applications.
- Security First: UFW firewall, Fail2ban, SSH hardening, security headers
- PHP 8.2+: With all required extensions and optimized PHP-FPM
- Node.js 20.x LTS: For React/SPA build tools
- Nginx: Production-optimized with SSL, gzip, caching
- MySQL 8.0: With swap management for low-memory VPS
- Redis: For caching and session storage
- Auto SSL: Let's Encrypt certificate installation
- Self-Destructing: Installer removes itself after completion
# Clone to your fresh VPS
git clone https://github.com/yourusername/server-panel.git /tmp/server-panel
cd /tmp/server-panel
# Run the installer
chmod +x install.sh
sudo ./install.shThen open your browser to: http://YOUR_SERVER_IP:8080
- Fresh Ubuntu 22.04 LTS or Debian 11/12
- Root access (sudo)
- Domain pointed to server IP (for SSL)
- Minimum 1GB RAM (2GB recommended)
| Component | Version | Purpose |
|---|---|---|
| PHP | 8.2+ | Application runtime |
| PHP-FPM | 8.2+ | FastCGI process manager |
| Nginx | Latest | Web server |
| MySQL | 8.0 | Database |
| Redis | Latest | Caching |
| Node.js | 20.x LTS | Build tools |
| Certbot | Latest | SSL certificates |
| UFW | Latest | Firewall |
| Fail2ban | Latest | Intrusion prevention |
- Welcome: Enter your domain name
- Security: Configure firewall and Fail2ban
- PHP: Verify and install extensions
- Node.js: Install Node.js 20.x
- Nginx: Configure web server
- MySQL: Database with swap setup
- Redis: Cache server
- Testing: Verify all components
- Complete: SSL setup and cleanup
- Your site will be available at
https://yourdomain.com - Credentials saved to
/root/.server-panel-credentials.json - Logs in
/var/log/nginx/,/var/log/mysql/,/var/log/php-fpm/
server-panel/
├── install.sh # Bootstrap script
├── index.php # Web installer UI
├── assets/
│ ├── css/
│ │ └── styles.css # Tailwind + custom CSS
│ └── js/
│ └── installer.js # Frontend logic
├── api/
│ ├── install.php # API handlers
│ └── helpers.php # Utility functions
└── templates/
├── nginx.conf # Nginx config template
├── mysql.cnf # MySQL config template
└── php-fpm.conf # PHP-FPM pool template
MIT License - Feel free to use and modify!