Deployment Overview of CyberPanel on Server¶
Prerequisites and Basic Requirements¶
The deployment of CyberPanel requires a server running a compatible Linux distribution. Based on the configuration data, the following requirements must be met before installation:
-
Operating System: The system must run Ubuntu 22.04 or a RHEL-based distribution such as Rocky Linux or CentOS 8.
-
Privileges: Access with root privileges or a user with
sudocapabilities is mandatory. -
Network Access: The server must have internet access to download the installation script and dependencies.
-
Port Availability: The installation process configures specific ports; ensure these are not blocked by external firewalls prior to deployment.
FQDN of the Final Panel¶
The fully qualified domain name (FQDN) for accessing the CyberPanel interface follows a specific naming convention defined in the configuration variables. The format combines a prefix, the unique server identifier, and the designated zone.
-
FQDN Format:
cyberpanel<Server ID>.hostkey.in -
Access Port: The panel typically operates on standard HTTPS ports once configured, though specific port mapping depends on the final Nginx configuration generated during installation.
Application Installation Process¶
The installation of CyberPanel is executed via a dedicated shell script provided by the developer. The script is downloaded, configured with silent installation parameters and specific server details, and then executed.
For Debian-based Systems (Ubuntu 22.04)¶
-
The installation script is downloaded from
https://cyberpanel.sh/?dl&Ubuntu22. -
The script is saved to
/root/cyberpanel.shwith executable permissions. -
The following parameters are set within the script:
-
Silent="On"to enable non-interactive installation. -
Server_Provider='Hostkey'. -
commonNameis set to the FQDN (e.g.,cyberpanel<Server ID>.hostkey.in). -
The hostname references within the script are replaced with the target FQDN.
-
-
The script is executed using
bash /root/cyberpanel.sh.
For RHEL-based Systems (Rocky Linux/CentOS 8)¶
-
The installation script is downloaded from
https://cyberpanel.sh/?dl&CentOS8. -
The script is saved to
/root/cyberpanel.shwith executable permissions. -
The same configuration parameters (Silent mode, Server Provider, commonName, and hostname replacements) applied to Debian systems are applied here.
-
The script is executed using
bash /root/cyberpanel.sh.
Following the script execution, the server performs an automatic reboot to finalize the configuration.
Starting, Stopping, and Updating¶
The CyberPanel installation script manages the initialization of the core services. After the system reboots, the application services are expected to be active.
-
Start: Services are started automatically upon the system reboot triggered by the installer.
-
Stop: To stop the services, use standard service management commands targeting the specific components (e.g., Nginx, OpenLiteSpeed, MySQL, CyberPanel backend).
-
Update: The installation script ensures package repositories are updated prior to deployment. Future updates are managed through the CyberPanel interface or system package managers depending on the component.
Access Rights and Security¶
The deployment script enforces specific security configurations during the installation phase:
-
Administrator Password: The
Admin_Passvariable in the installation script is configured with the SSH password (ansible_ssh_pass) to secure the initial administrator account. -
Server Provider Tag: The
Server_Provideris explicitly set toHostkeywithin the configuration, identifying the deployment source. -
Firewall: While the script configures internal services, external firewall rules must ensure that required ports for the panel and web services are open.
Location of Configuration Files and Data¶
Based on the installation script location and standard CyberPanel architecture, the primary configuration and installation artifacts are located in the following directories:
-
Installer Script:
/root/cyberpanel.sh -
Configuration Directory: CyberPanel typically stores its main configuration files in
/usr/local/CyberCP. -
Logs: Application and installation logs are generally found in
/usr/local/CyberCP/logsor/var/log.
Available Ports for Connection¶
The installation script configures the server to listen on standard ports for web traffic and the control panel. While the specific port assignments are handled internally by the installer, the following ports are standard for CyberPanel deployments:
-
HTTPS (Panel): Port 8443 (Standard for CyberPanel access) or Port 443 (if SSL is configured for the panel domain).
-
HTTP (Web Server): Port 80.
-
SSH: Port 22 (for administrative access).
Note: The exact port configuration is determined by the commonName and SSL settings applied during the script execution.