Skip to main content

Control Panel System Services and How to Restart Them

OpenPanel uses the following services:

Caddy​

Caddy is utilized as a reverse proxy to manage traffic to and from user websites hosted in their containers. It also handles SSL certificate generation and renewals for both user domains and the main control panel domain.

Configuration Files:

  • /etc/openpanel/caddy/Caddyfile: This is the main configuration file that includes all others.
  • /etc/openpanel/caddy/check.conf: This file manages domain verification for SSL generation on the server.
  • /etc/openpanel/caddy/redirects.conf: Contains redirections for /openpanel, /openadmin, and /webmail for all domains.
  • /etc/openpanel/caddy/domains/: This directory holds a .conf file for each domain added to the server.
  • /etc/openpanel/caddy/templates/: Contains configuration templates for new and suspended domains.
  • /etc/openpanel/caddy/suspended_domains/: Stores user domains once they have been suspended.

You can view the default Caddy configuration here.

Admins can set memory (RAM) and CPU limits for Caddy by modifying the /root/.env file:

CADDY_RAM="1g"
CADDY_CPUS="1.0"

OpenPanel uses a custom Caddy image, which includes OWASP Coraza WAF, a high-performance open-source Web Application Firewall. The source for this custom image can be found here.

If you prefer not to use Coraza WAF, you can switch to the official Caddy image by updating the /root/.env file:

To use the custom Caddy image with Coraza:

CADDY_IMAGE="openpanel/caddy-coraza"

To use the official Caddy image without Coraza:

CADDY_IMAGE="caddy:latest"

Podman​

Podman rootful is used to run all the shared services, defined in /root/docker-compose.yml. Default services can be viewed here.

Rootless Podman is used for each user account to isolate their containers. See how OpenPanel isolates users.

MySQL​

MySQL is used as a database to store all user related information:

  • Users
  • Plans
  • Domains
  • Websites

MySQL login information is stored in files: /etc/openpanel/mysql/host_my.cnf and /etc/openpanel/mysql/container_my.cnf.

  • /etc/openpanel/mysql/host_my.cnf is symlinked to /etc/my.cnf and is used for OpenAdmin service and OpenCLI commands.
  • /etc/openpanel/mysql/container_my.cnf is mounted to /etc/my.cnf in OpenPanel container and is used by it.

The service runs in the openpanel_mysql container (MariaDB image) and its data is stored inside the mysql volume.

Admins can set memory (RAM) and CPU limits for MySQL service by modifying the /root/.env file:

MYSQL_RAM="0.5g"
MYSQL_CPUS="1.0"

MARIADB_VERSION sets the MariaDB image tag, new installs use 11.4. Servers installed before 2.0.32 have image: mariadb:10-focal in /root/docker-compose.yml instead. Back up the mysql volume before raising the version, the data directory is upgraded on the first start (MARIADB_AUTO_UPGRADE) and can't go back to an older version:

MARIADB_VERSION="11.4"

MYSQL_ROOT_PASSWORD stores the random mysql root password:

MYSQL_ROOT_PASSWORD=

SQLite​

SQLite database is used by the OpenAdmin panel in order to completely separate the Admin and end-user interface. Database file: /etc/openpanel/openadmin/users.db contains all administrator accounts.

Named​

Named (BIND9) container is used for DNS.

Administrators can set custom nameservers on OpenAdmin > Settings > OpenPanel to be used for OpenPanel websites.

default named.conf.options` configuration file

Admins can set memory (RAM) and CPU limits for BIND9 service by modifying the /root/.env file:

BIND9_RAM="0.1g"
BIND9_CPUS="0.1"

BIND9 version can be set by changing the latest tag to any version from hub.docker.com:

BIND9_VERSION="latest"

Timezone for the BIND9 service can be changed by editing:

BIND_TIMEZONE="America/New_York"

GoAccess​

OpenPanel uses GoAccess to generate beautiful HTML reports from Nginx access logs for each domain. OpenPanel also downloads GeoIPLite2 City and Country databases in order to display location info for each IP address in reports. To customize these reports edit the /etc/openpanel/goaccess/goaccess.conf file.

CSF​

OpenPanel​

openpanel/openpanel container image is used to provide access to the OpenPanel interface that allows users to manage their accounts.

Admins can set the OpenPanel version by changing the tag in the /root/.env file with any tag from hub.docker.com:

VERSION="2.0.30"

By default OpenPanel is accesible on port 2083 but this can also be configured by Admin by editing the PORT value:

PORT="2083"

OpenPanel is a Go application that uses MySQL to store user data and runs in its own container with a built-in web server. This configuration ensures that OpenPanel remains functional even if the web server is down, thereby providing complete isolation between user websites and the admin panel.

OpenPanel operates in production mode by default, logging only errors and access logs. For developers needing more detailed logs for troubleshooting or development purposes, it is possible to switch to a more verbose logging mode by enabling dev_mode.

OpenAdmin​

admin service is used by the OpenAdmin interface.

By default, OpenAdmin is accessible on port 2087, but this can be changed by the Admin by modifying the port value in the admin service configuration. However, due to limitations in billing systems like WHMCS, which do not support custom port settings, changing the port through the admin interface is not allowed. If the port is changed via the terminal, it may disrupt any third-party integrations that rely on the default port 2087.

OpenAdmin is a Go application that utilizes SQLite for its database and runs as a separate systemd service. It operates independently from the OpenPanel and webserver.

ClamAV​

ClamAV is an open-source antivirus engine for detecting trojans, viruses, malware & other malicious threats. OpenPanel uses ClamAV for the malware_scanner feature.

Admins can set memory (RAM) and CPU limits for ClamAV service by modifying the /root/.env file:

CLAMAV_RAM="2g"
CLAMAV_CPUS="2.0"

Note:ClamAV requires at least 1GB of RAM and 1 CPU: https://docs.clamav.net/#recommended-system-requirements

ClamAV version can be set by changing the latest tag to any version from hub.docker.com:

CLAMAV_VERSION="latest"

ClamAV will daily update the singatures database and keep it in RAM. To enable this feature set:

CLAMAV_DB_AUTOUPDATE="host"

Admins can specify the delay in seconds to wait for the signature database to load before starting the deamon:

CLAMD_STARTUP_DELAY=30

Redis​

Redis service is used by the OpenPanel user interface to keep user session data and temporary files in the meomory.

Admins can set memory (RAM) and CPU limits for Redis service by modifying the /root/.env file:

REDIS_RAM="0.25g"
REDIS_CPUS="0.25"

By default /tmp/redis/ is used for the redis.sock file for conencting the OpenPanel and Redis services. This path can be changed by editing:

REDIS_SOCKET="/tmp/redis/"

FTP​

vsftpd is used as FTP server for the Enterprise edition. OpenPanel provides terminal commands and UI for managing ftp sub-accounts.

Admins can set memory (RAM) and CPU limits for FTP service by modifying the /root/.env file:

FTP_RAM="0.5g"
FTP_CPUS="0.5"

Port range for passive ftp can also be configured:

FTP_PORT_RANGE="21000-21010"

MailServer​

OpenPanel Enterprise supports mailserver. Docker Mailserver is used as a fullstack mail server (SMTP, IMAP, LDAP, Anti-spam, Anti-virus, etc.)

OpenPanel provides terminal commands and UI for users to manage emails.

Webmail​

Roundcube is provided as a Webmail client