Skip to content

ayanhackss/Hosting-Panel-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 NexPanel

Next-generation hosting management panel for Ubuntu 22.04

A production-ready, lightweight hosting control panel designed to run smoothly on 2-4GB RAM servers.

✨ Features

Core Management

  • Website & App Management - Create and manage PHP, Node.js, and Python applications
  • Multi-PHP Support - PHP 7.4, 8.0, 8.1, 8.2 with easy version switching
  • Database Management - MariaDB database and user management
  • Domain & SSL - Let's Encrypt SSL certificates with auto-renewal
  • File Manager - Browser-based file management
  • Backups & Restore - Scheduled backups with one-click restore

Enhanced Features

  • Git Integration - Clone, pull, push, and manage repositories
  • Monitoring Dashboard - Real-time system stats (CPU, RAM, Disk, Traffic)
  • Log Viewer - Search and stream logs in real-time
  • Two-Factor Authentication - TOTP-based 2FA for admin security
  • IP Blocking & Fail2ban - Security and DDoS protection
  • One-Click Apps - WordPress, Ghost, Django, Laravel, Express.js
  • FTP/SFTP Server - Secure file transfer
  • Redis Cache - Per-site Redis instances
  • Webhook Manager - Automated deployment hooks
  • Email Management - Postfix email accounts and forwarding
  • Staging Environments - Clone production to staging

📋 Requirements

  • OS: Ubuntu 20.04 or 22.04 LTS
  • RAM: Minimum 2GB (4GB recommended)
  • Disk: Minimum 10GB free space
  • Root Access: Required for installation

🔧 Installation

One-Command Install

curl -sSL https://raw.githubusercontent.com/yourusername/nexpanel/main/install.sh | sudo bash

The installer will:

  1. ✅ Validate system requirements
  2. ✅ Install all dependencies (Nginx, PHP-FPM, Node.js, Python, MariaDB, Redis)
  3. ✅ Configure services with production defaults
  4. ✅ Set up firewall (UFW)
  5. ✅ Create admin account
  6. ✅ Display login credentials

Manual Installation

# Clone repository
git clone https://github.com/yourusername/nexpanel.git
cd nexpanel

# Install dependencies
npm install

# Create data directory
mkdir -p data

# Start the panel
npm start

🎯 Quick Start

  1. Access the Panel

    http://YOUR_SERVER_IP:8080
    
  2. Login

    • Username: admin
    • Password: (provided after installation)
  3. Create Your First Website

    • Go to "Websites" → "Create New"
    • Choose runtime (PHP/Node.js/Python)
    • Enter domain name
    • Click "Create"
  4. Issue SSL Certificate

    • Go to "SSL Certificates"
    • Select your domain
    • Click "Issue Certificate"

📚 Documentation

🔐 Security Features

  • Session-based Authentication with secure cookies
  • Rate Limiting on login attempts
  • Two-Factor Authentication (TOTP)
  • Fail2ban Integration for brute-force protection
  • IP Whitelisting/Blacklisting
  • Automatic Security Updates
  • File Permission Isolation per website
  • Audit Logging for all admin actions

🎛️ System Management

Service Control

# Panel service
systemctl status nexpanel
systemctl restart nexpanel
systemctl stop nexpanel

# View logs
journalctl -u nexpanel -f

Resource Monitoring

The panel enforces strict resource limits:

  • Panel RAM usage: ≤500-600MB
  • Idle apps auto-stopped after 10 minutes
  • PHP-FPM: max 5 children per pool
  • Node.js apps: max 256MB memory
  • Aggressive log rotation

🏗️ Technology Stack

  • Backend: Node.js 18 LTS with Fastify
  • Frontend: Server-rendered EJS templates
  • Database: MariaDB + SQLite
  • Web Server: Nginx
  • Process Manager: PM2
  • Security: Helmet, Rate Limiting, CSRF Protection

📊 Performance

Optimized for 2-4GB RAM servers:

  • ✅ Lightweight monitoring (no heavy agents)
  • ✅ Minimal background processes
  • ✅ Efficient database queries
  • ✅ Compressed logs
  • ✅ Resource-aware process management

🤝 Contributing

Contributions are welcome! Please read our contributing guidelines before submitting PRs.

📝 License

MIT License - see LICENSE file for details

🆘 Support

🎉 Credits

Built with ❤️ for the hosting community.


NexPanel - Next-generation hosting management made simple.

Note: This panel is designed for production use but always test in a staging environment first!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors