8.8 KiB
CyberPanel Windows Development Guide
🎯 Overview
⚠️ IMPORTANT: CyberPanel is designed specifically for Linux systems and does not officially support Windows. This guide is for development and testing purposes only.
This guide provides instructions for running CyberPanel in a Windows development environment using Python and Django. This setup is intended for:
- Developers working on CyberPanel features
- Testing CyberPanel functionality
- Learning CyberPanel architecture
- Development of CyberPanel extensions
For production use, always use a supported Linux distribution.
📋 Prerequisites
System Requirements
- OS: Windows 7/8.1/10/11 (64-bit recommended)
- RAM: Minimum 4GB (8GB+ recommended)
- Storage: Minimum 20GB free space
- CPU: 2+ cores recommended
- Network: Internet connection required
Required Software
- Python 3.8+: Download from python.org
- Git: Download from git-scm.com
- Administrator Access: Required for installation
⚠️ Limitations
- No Web Server: OpenLiteSpeed/LiteSpeed not available on Windows
- No System Services: MariaDB, PowerDNS, etc. not included
- Limited Functionality: Many CyberPanel features require Linux
- Development Only: Not suitable for production use
🚀 Installation Methods
Method 1: Automated Installation (Recommended)
Step 1: Download Installation Script
- Navigate to the
utils/windows/folder - Download
cyberpanel_install.bat - Right-click and select "Run as administrator"
Step 2: Follow Installation Prompts
The script will automatically:
- Check system requirements
- Create Python virtual environment
- Download CyberPanel source code
- Install all dependencies
- Set up the web interface
Step 3: Access CyberPanel
- Open your web browser
- Navigate to:
http://localhost:8090 - Use default credentials:
- Username:
admin - Password:
123456
- Username:
Method 2: Manual Installation
Step 1: Install Python
- Download Python 3.8+ from python.org
- Important: Check "Add Python to PATH" during installation
- Verify installation:
python --version pip --version
Step 2: Install Git
- Download Git from git-scm.com
- Install with default settings
- Verify installation:
git --version
Step 3: Create CyberPanel Directory
mkdir C:\usr\local\CyberCP
cd C:\usr\local\CyberCP
Step 4: Set Up Python Environment
python -m venv . --system-site-packages
Scripts\activate.bat
Step 5: Download CyberPanel
git clone https://github.com/usmannasir/cyberpanel.git
cd cyberpanel
Step 6: Install Dependencies
pip install --upgrade pip setuptools wheel
pip install -r requirments.txt
Step 7: Set Up Django
python manage.py collectstatic --noinput
python manage.py migrate
Step 8: Create Admin User
python manage.py createsuperuser
Step 9: Start CyberPanel
python manage.py runserver 0.0.0.0:8090
🔧 Post-Installation Configuration
Change Default Password
- Access CyberPanel at
http://localhost:8090 - Log in with default credentials
- Go to User Management → Modify User
- Change the admin password immediately
Configure Windows Firewall
- Open Windows Defender Firewall
- Add inbound rule for port 8090
- Allow Python through firewall
Set Up Windows Service (Optional)
- Run
install_service.batas administrator - CyberPanel will start automatically on boot
- Manage service through Windows Services
🔄 Upgrading CyberPanel
Using Upgrade Script
- Download
cyberpanel_upgrade.bat - Right-click and select "Run as administrator"
- Script will automatically backup and upgrade
Manual Upgrade
cd C:\usr\local\CyberCP\cyberpanel
Scripts\activate.bat
git pull origin stable
pip install --upgrade -r requirments.txt
python manage.py migrate
python manage.py collectstatic --noinput
🛠️ Utility Scripts
Available Scripts
cyberpanel_install.bat: Complete installationcyberpanel_upgrade.bat: Upgrade existing installationinstall_webauthn.bat: Enable WebAuthn/Passkey authentication
Script Usage
- Right-click on any script
- Select "Run as administrator"
- Follow on-screen prompts
- Check output for any errors
🐛 Troubleshooting
Common Issues
"Python not found" Error
Problem: Python is not installed or not in PATH Solution:
- Install Python from python.org
- Check "Add Python to PATH" during installation
- Restart Command Prompt
- Verify with
python --version
"Access Denied" Error
Problem: Insufficient privileges Solution:
- Right-click script and select "Run as administrator"
- Or open Command Prompt as administrator
- Navigate to script location and run
"Failed to install requirements" Error
Problem: Network or dependency issues Solution:
- Check internet connection
- Try running script again
- Install requirements manually:
pip install --upgrade pip pip install -r requirments.txt
"Port 8090 already in use" Error
Problem: Another service is using port 8090 Solution:
- Stop other services using port 8090
- Or change CyberPanel port in settings
- Check with:
netstat -an | findstr :8090
"Django not found" Error
Problem: Virtual environment not activated Solution:
- Navigate to CyberPanel directory
- Activate virtual environment:
Scripts\activate.bat - Verify with
python -c "import django"
Advanced Troubleshooting
Check Installation Logs
cd C:\usr\local\CyberCP\cyberpanel
python manage.py check
Verify Dependencies
pip list
pip check
Test Database Connection
python manage.py dbshell
Reset Database (Last Resort)
python manage.py flush
python manage.py migrate
python manage.py createsuperuser
🔒 Security Considerations
Initial Security Setup
- Change Default Password: Immediately after installation
- Enable 2FA: Use the 2FA guide for additional security
- Configure Firewall: Restrict access to necessary ports only
- Regular Updates: Keep CyberPanel and dependencies updated
Windows-Specific Security
- User Account Control: Keep UAC enabled
- Windows Defender: Ensure real-time protection is on
- Regular Backups: Backup CyberPanel data regularly
- Service Account: Consider using dedicated service account
📊 Performance Optimization
System Optimization
- Disable Unnecessary Services: Free up system resources
- SSD Storage: Use SSD for better performance
- Memory: Ensure adequate RAM (8GB+ recommended)
- CPU: Multi-core processor recommended
CyberPanel Optimization
- Static Files: Ensure static files are properly collected
- Database: Regular database maintenance
- Logs: Regular log cleanup
- Caching: Enable appropriate caching
🔄 Maintenance
Regular Maintenance Tasks
- Updates: Regular CyberPanel updates
- Backups: Regular data backups
- Logs: Monitor and clean logs
- Security: Regular security checks
Backup Procedures
-
Database Backup:
python manage.py dumpdata > backup.json -
File Backup:
xcopy C:\usr\local\CyberCP backup_folder /E /I /H -
Restore from Backup:
python manage.py loaddata backup.json
📚 Additional Resources
Documentation
- Main Guide: 2FA Authentication Guide
- Troubleshooting: Troubleshooting Guide
- Utility Scripts: Utility Scripts
Support
- CyberPanel Forums: https://community.cyberpanel.net
- GitHub Issues: https://github.com/usmannasir/cyberpanel/issues
- Discord Server: https://discord.gg/cyberpanel
✅ Verification Checklist
After installation, verify these components:
- CyberPanel accessible at
http://localhost:8090 - Admin password changed from default
- Windows Firewall configured
- Python virtual environment working
- All dependencies installed
- Database migrations applied
- Static files collected
- Logs are clean
- Service starts automatically (if configured)
🆘 Getting Help
If you encounter issues:
- Check the logs for error messages
- Run the troubleshooting commands above
- Search the documentation for solutions
- Ask in the community forum for help
- Create a GitHub issue with detailed information
Note: This guide is specifically for Windows installations. For Linux installations, refer to the main CyberPanel documentation.
Last updated: January 2025