Skip to content

Servers ​

This page explains how to add hosting servers to MoorCP, read their condition, control services, and manage capacity and maintenance. It is written for admins and technicians who manage a server fleet.

Open Servers in the Infrastructure group.

Server list ​

The top of the Servers page has three summary figures:

CardContents
ServersConnected servers out of all servers. If any agent is not reporting, that count is shown too.
CPU (average)Average CPU of all servers from the last heartbeat.
RAM usageAverage RAM usage. Servers with disk at 90% or more are named below it.

Below them is the server table. You can search by hostname or IP, then filter by OS, Driver, Web stack, and Status. Clear resets all filters.

Each row shows two separate statuses:

  • Agent: Connected or Not reporting. This is the agent's connection to the panel.
  • Health: Healthy when all services are running, or the number of warnings when a service is down.

INFO

When an agent is not reporting, sites and email on the server keep running. The panel just cannot change anything on that server until the agent is back.

This page also has the Capacity, Configuration profiles, and Isolation levels cards. The isolation levels card shows how many servers use each driver:

DriverIsolation
cloudlinuxLVE limits, CageFS, PHP Selector, MySQL Governor.
genericcgroup v2 + systemd slices, hidepid, private /home. No per-user database throttling.
litespeed-containersLiteSpeed namespaces + cgroups. LiteSpeed Enterprise only.

Setup wizard ​

The setup wizard (/servers/<id>/setup) takes a new server through its important settings in order. It opens by itself after adding a server over SSH, and Setup wizard on the server's page opens it again at any time.

StepWhat it doesDone when
Verify and hardenApply hardening (hidepid, private /home) and Run checksStatus active and isolation applied
Web server and PHPShows the web server mode; installs extra PHP versionsAlways (chosen during the install)
EmailSet up email (Postfix, Dovecot, Rspamd with DKIM, local resolver), Install webmail, and Calendars & Contacts (CalDAV/CardDAV at https://<hostname>/dav/)Postfix, Dovecot, and Rspamd running
SecurityInstalls ModSecurity with OWASP CRS and CrowdSec, and sets up ClamAVWAF, CrowdSec, and ClamAV installed
FTP and SSHSets up Pure-FTPd and SSH/SFTP for accounts, and enables Web Disk (WebDAV at https://<hostname>/webdisk/ with the accounts' FTP logins; needs FTP)Pure-FTPd running
Database tools (optional)Installs phpMyAdmin, and AdminNeo when PostgreSQL is installed-
Object cache (optional)Installs Redis or MemcachedOne of them installed
App installer (optional)Installs Softaculous (needs a license for the server IP)Softaculous installed
FinishLists required steps that are not done yet, with links to capacity, backup policies, nameserver nodes, and accounts-
  • The status of each step is read from the server, so the wizard always shows the current state. Skip for now marks a step as skipped in your browser only.
  • Every action is the same as in the server's Settings and is safe to run again; Open in Settings shows the full options of a step.
  • Calendars & Contacts and Web Disk are installed from the wizard only. Both need the hostname certificate. When the agent is too old for them, the row says so; upgrade the agent first. See Mail server › Calendars & Contacts.
  • Roles without write access see the wizard read-only.

Adding a server ​

Administrators add a server from the panel over SSH: Servers › Add server, fill in the SSH login, Test connection, then Install. The page shows the installation log and a Reboot server button when disk quotas need a reboot. See Adding a server over SSH.

To install by hand, enrolling a server takes three steps: create a token, run the installer on the new server, then set its capacity.

1. Create an enrollment token ​

  1. Open Servers and click Install command (Technicians: Add server).

  2. The Agent enrollment token window opens.

  3. Choose the Default web server:

    OptionNotes
    Nginx + Apache (nginx-proxy)Default. Nginx in front of Apache, full .htaccess.
    ApacheApache event MPM with PHP-FPM.
    NginxNginx with PHP-FPM.
    OpenLiteSpeed (+ lsphp)OpenLiteSpeed with per-account LSPHP.
  4. Fill Extra PHP versions if needed, as Remi version numbers separated by spaces, for example 74 81 83.

  5. Tick Install ClamAV if the server needs a malware scanner.

  6. Click Copy command.

The token can be used once and expires. The expiry is shown in the token window.

2. Run the installer on the new server ​

Run the copied command as root on the new server. The server must run AlmaLinux, Rocky Linux, RHEL, or CloudLinux 9. The command looks like this:

bash
curl -fsSL https://panel.example.com/install-agent.sh | bash -s -- --panel https://panel.example.com --token TOKEN --web-mode nginx-proxy --php "81 83"

The installer sets up the hosting stack and the agent, prepares the chosen web server, and enrolls the server. The agent exchanges the token for an mTLS client certificate. The server then appears in the Servers list.

TIP

All installer options, for example --pgsql for PostgreSQL, are in Installer options. A step-by-step guide is in Adding a hosting server.

3. Set capacity ​

Open the new server, then Settings › Capacity & maintenance. Fill in the account limit and oversell rules. See Capacity rules.

Primary IP ​

The agent reports the server's IP addresses when it enrolls. When the agent reaches the panel over loopback, as on an all-in-one server where the panel hostname resolves to 127.0.0.1 or ::1, the panel records the public IPv4 of the server's network interface instead (a private IPv4 if there is no public one). If the recorded IP is still wrong, for example behind NAT, correct it in Settings › General › Network identity. See Server settings › General.

DNS-only servers

A server installed with the installer's dns mode runs only the agent and PowerDNS. It shows up in the server list but never receives hosting accounts. Add it as a nameserver node in Domains & DNS. See Domains and DNS.

Server details ​

Click a hostname in the list to open the server's details. The top shows the hostname, connection status, IP, OS, isolation driver, web stack, and when the last heartbeat arrived.

Buttons at the top right:

  • Ping agent: checks that the agent answers. The result is Agent responded or the rejection message.
  • Refresh: reloads all server data.
  • Actions: shortcuts to Verify isolation & re-apply limits, Capacity & maintenance mode, Switch web server, PHP versions, Agent certificate, Resource trends, Configuration profiles, Reboot server, and Danger zone.

Available tabs:

TabContents
OverviewCPU/memory charts, server information, network, load, service health, IP blacklist.
AccountsHosting accounts on this server, with their count in the tab name.
Servicessystemd service status, actions, and logs.
Mail queueMessages waiting in Postfix.
Track deliveryDelivery history of every email on this server for the last 7 days.
CloudLinuxOnly shown when the agent detects LVE or CageFS. See CloudLinux.
SettingsAll server settings. See Server settings.

Overview tab ​

The Overview tab contains:

  • CPU / Memory: usage charts with a range of 1 hour, 6 hours, 24 hours, or 7 days.
  • Server information: hardware, OS, agent, and security details (see below).
  • Network I/O: estimated total traffic over 24 hours and the current rate.
  • Load average: 1, 5, and 15 minute load.
  • Service health: a service summary, with a View services link.
  • IP blacklist (DNSBL): blacklist check results for the primary IP.

The Account resource trends and top users → link opens Resource usage for this server.

Server information card ​

The agent reports the hardware and OS in its heartbeat. The card shows:

RowContents
DriverIsolation driver and its isolation level.
Web stackThe active web server mode.
ProcessorCPU model, then the number of threads (vCPU on a virtual machine), sockets and cores, clock speed, and architecture.
MemoryTotal RAM and swap.
PlatformHardware or hypervisor name from DMI, marked Virtual machine or Bare metal.
OSOS name and kernel version.
Agent statusOnline or Offline, with the time of the last heartbeat.
UptimeTime since the last boot.
SecurityImunify360 or cPGuard when used, plus the built-in protection the agent monitors: CrowdSec, CrowdSec bouncer, ClamAV, firewalld, and Fail2ban. A service that is installed but stopped is marked (stopped). None installed means none of them is on the server.
Agent versionThe agent's release.

When a server has more than one disk, each mount point is listed with its usage. Rows show No data until an agent that reports hardware sends its first heartbeat.

IP blacklist check ​

The panel checks each server's primary IP against several DNSBLs every 6 hours. The first check runs a few minutes after the panel starts.

DNSBLWhere to delist
Spamhaus ZEN (SBL, CSS, XBL, PBL)check.spamhaus.org
Barracudabarracudacentral.org
SpamCopspamcop.net
PSBLpsbl.org
Mailspikemailspike.org
UCEPROTECT Level 1uceprotect.net

Reading the card:

  • Clean: the IP is not listed anywhere.
  • Listed on N: the IP is listed. Click Check / delist to open that DNSBL's delist page.
  • Policy listing: Spamhaus PBL. The IP is recorded as a dynamic or end-user IP. This is a policy, not a bad reputation.
  • Skipped: private, loopback, CGNAT, and IPv6 addresses are not checked. When the server has an IPv6 address, the card shows it with a note that the DNSBLs only list IPv4.

Click Check now to check right away.

The panel raises an ip_blacklisted alert per DNSBL. It is critical when the server sends email (Postfix is running) and the listing is not just a policy listing. Otherwise it is a warning.

Spamhaus and public resolvers

Spamhaus refuses queries from public resolvers such as 1.1.1.1 and 8.8.8.8. To include Spamhaus, set the MOORCP_RBL_RESOLVER variable on the panel to your own recursive resolver, for example a local unbound (127.0.0.1:53).

Accounts tab ​

The Accounts tab shows the hosting accounts on this server, excluding terminated accounts. Each account shows its package, domain, average CPU, peak RAM, and status.

Above the table is a capacity summary:

  • the number of accounts and the remaining quota when there is an account limit;
  • RAM used by accounts: the sum of 24-hour peaks;
  • Disk used by accounts: free disk and the total allocated to packages.

Create account creates a new account on this server. Open capacity settings opens the capacity rules. Click Manage to open an account's details.

Services tab ​

The Services tab shows the systemd services the agent monitors. You do not need SSH to restart a service or read its logs.

Monitored services ​

Services that are not installed are not shown.

GroupServices
Webnginx, apache (httpd), openlitespeed (lshttpd), litespeed (lsws)
PHPphp-fpm
Database and cachemariadb, postgresql, redis, valkey, memcached
Emailpostfix, dovecot, rspamd, clamd
DNSpdns, named
FTPpure-ftpd
Securitycrowdsec, crowdsec-bouncer, firewalld, fail2ban
Systemsshd, crond, chronyd, moorcp-agent

Status meanings:

StatusMeaning
RunningThe service is active.
Not running / InactiveThe service is down even though it is enabled. Raises a critical alert.
FailedThe service failed to start.
DisabledDeliberately stopped and disabled, for example nginx after switching the web server to OpenLiteSpeed. Does not raise an alert.

Start, stop, restart, reload ​

  1. Find the service in Search services… or filter by status.
  2. Click the action menu on the service's row.
  3. Choose Start, Stop, Restart, or Reload. Reload is only offered when the service supports it.
  4. Confirm. The result is shown as a notification, for example postfix: restart done (active).

Stopping a service

Stop takes down the websites or email that depend on the service until it is started again. Use Restart if you only want to reload it.

Rules that apply:

  • sshd cannot be stopped, so emergency access to the server remains. Restart and reload are still allowed.
  • moorcp-agent cannot be controlled from the panel.
  • Actions still work while the server is in maintenance mode.
  • Every action is recorded in the audit log.
  • When an action fails, the last 20 log lines are shown with it.

Admins and technicians can run actions. All staff can view status and logs.

Reading service logs ​

  1. Click Logs on the service's row.
  2. Set the Period: Last hour, Last 24 hours, Last 7 days, or Any time.
  3. Set the Priority: All levels, Warning+, or Errors.
  4. Set the number of Lines. At most 2,000 lines.
  5. Type text in Search text and press Enter.

The agent's own log can be read from the moorcp-agent service. Panel logs are in Logs and audit.

Older agents

Older agents only report status. The message "This server's agent is older…" appears and the action buttons are not available. Upgrade the agent to use start/restart and logs.

Mail queue tab ​

The Mail queue tab shows messages waiting in Postfix. The data refreshes every 30 seconds.

The summary at the top shows the total message count, the number of Deferred, Active, and Hold messages, and the oldest message. The Mail health card shows the status of SMTP, IMAP/POP3, and the spam filter.

Each message shows its queue ID, sender, recipient, size, arrival time, account, and deferral reason.

Managing messages ​

  1. Filter messages by status, or search by sender/recipient.
  2. Tick messages, or Select all on this page.
  3. Choose an action:
ActionResult
RetryTries to deliver again now.
HoldHolds the message so it is not sent.
ReleaseReturns a held message to the queue.
DeleteRemoves the message from the queue.

Review deferred filters straight to deferred messages.

Deleting messages

Permanently delete removes messages from the queue. They will never be delivered and cannot be recovered.

TIP

A queue full of messages to one destination often means an account is sending spam or the server IP is blacklisted. Check the blacklist card in Overview and the sending limits in Mail server.

Track delivery tab ​

The Track delivery tab lists every email sent, received, deferred, bounced, or rejected on this server in the last 7 days. The agent reads the Postfix log, so nothing is changed on the server. Filter by email address (part of it is enough), status, direction, and period (24 hours, 3 days, or 7 days). Click Details to see the server response, DSN code, relay, delay, and number of attempts. A message that is still in the queue can be retried or deleted from there. The full description is in Mail server › Track delivery.

Rebooting a server ​

Admins can reboot a server from the panel.

  1. Open the server's details and click Actions › Reboot server. When the server needs a reboot after updates, the same button is in the Reboot required banner.
  2. Read the impact: all sites, email, and databases on this server go down briefly. A reboot usually takes 1–5 minutes.
  3. Fill Reason (optional), for example kernel update. The reason is shown to users logged in on the server and recorded in the audit log.
  4. Type the server's hostname to confirm, then click Reboot server.

What happens next:

  • The reboot is scheduled 1 minute after you confirm. During that minute you can still click Cancel reboot.
  • The panel waits for the agent to report back, for up to 15 minutes. Offline alerts are held during that time.
  • When the agent reports with a new boot time, the Reboot completed banner appears.
  • If the agent has not come back after 15 minutes, the Reboot did not complete banner appears and offline alerts apply as usual.

WARNING

Email sent during the reboot is retried by the sending servers. Websites stay unreachable until the server is back up. Schedule reboots in quiet hours.

The panel also shows banners when OS security updates are pending or the agent version is outdated. See Upgrading.

Upgrading the agent ​

An agent is outdated when its version is older than the panel's version. The server's details then show an Agent ... is outdated banner with the upgrade command for that server. You can also upgrade agents from the panel without SSH:

  1. Open Settings › Updates.
  2. In the Servers card, click Upgrade on the row of a server marked Outdated, or Upgrade N agents for all outdated agents. The Upgrade agents banner on admin pages does the same.

Only admins can run upgrades. On each server, the agent downloads the agent binary from the panel (the same release as the panel), checks its checksum and version, then restarts itself. The panel waits for a heartbeat with the new version, for up to 3 minutes.

When several servers are upgraded together, one server goes first as a trial. If the first server fails, the rest are not attempted and the status is Stopped: first server failed. If it succeeds, the rest run in parallel, three servers at a time. Offline servers are skipped. Each server's status is shown in the Agent column: Waiting, Upgrading, Restarting, Done, Failed, or Skipped.

Sites, email, and databases keep running while the agent restarts.

Older agents

Agents before v0.9.0-rc.22 cannot be upgraded from the panel yet. Upgrade them once with the command on that server:

bash
curl -fsSL https://get-shared.moorcp.com | sudo bash -s -- upgrade

Time and time zone ​

Open Settings › General, section Time & time zone.

It shows:

  • Server time: the server clock, time zone, and UTC offset.
  • Clock sync: NTP status, the chrony source, and its offset.
  • The clock difference between the server and the panel. A difference of 5 seconds or more is marked red.

Changing the time zone:

  1. Choose the Time zone, or click Use my time zone to take the zone from your browser.
  2. Click Save time zone.

The time zone applies to cron schedules, log timestamps, and email headers on the server. The clock itself does not change.

If the clock is not in sync, click Turn on NTP or Sync clock now.

TIP

Use the same time zone on all servers so log and audit times line up.

Maintenance mode ​

Maintenance mode stops new accounts and cPanel imports on one server. Existing accounts keep running normally.

Keeps runningRefused
Sites, email, and databases of existing accountsNew accounts on this server
Changes to existing accounts from the panelcPanel imports and migration waves to this server
Statistics, SSL sync, service actions

Turning on maintenance:

  1. Open Actions › Capacity & maintenance mode.
  2. In the Maintenance mode card, fill Reason, for example disk replacement.
  3. Click Enable maintenance (review), read the impact, then confirm.

The server shows a Maintenance badge and a banner with the reason. Maintenance stays on even if the server goes offline and comes back.

To turn it off, click Turn off maintenance…. The server accepts new accounts again according to its capacity rules.

Every maintenance change is recorded in the audit log.

Capacity ​

Capacity Overview ​

The Capacity card on the Servers page shows the allocation from package limits against each server's physical resources:

ColumnMeaning
AccountsNon-terminated accounts, with the limit if one is set.
RAM oversellTotal package RAM limits ÷ physical RAM. Red when it exceeds the rule.
Disk oversellTotal account disk quotas ÷ size of the disk holding /home.
Disk · inodes usedActual disk and inode usage on the home disk.
New accountsAccepting, Maintenance, or Refused with the reasons.

If the agent has never sent health data, the ratio and disk columns are empty. In that state the ratio and disk rules are skipped, but the account limit and maintenance still apply.

Capacity rules ​

Rules are set per server in Settings › Capacity & maintenance, card Capacity rules. Leave a field empty for no limit.

RuleMeaningExample
Maximum accountsNumber of non-terminated accounts.300
Max RAM oversellTotal package RAM limits ÷ physical RAM, in percent.300
Max disk oversellTotal disk quotas ÷ home disk size, in percent.150
Minimum free diskActual free space on the home disk, percent.15
Max inode percentageUsed inodes on the home disk, percent.85

Tick Exclude from automatic placement if the server must not be picked automatically for new accounts without a chosen server, or as a drain target. See Server drain and placement.

Click Save capacity rules.

How rules are evaluated:

  • Rules are checked when a new account is created from the panel or billing, and on cPanel imports.
  • The evaluation already includes the account being placed, using the new account's package limits.
  • If a rule is exceeded, account creation is refused with all reasons, for example RAM oversell would be 23% (limit 20%).
  • Existing accounts are never affected. Package changes are not blocked either.

Changing the hostname ​

The server name in the panel is the name the server had when it was enrolled; it is also the name in the agent certificate. To give a server a proper name, such as notus.example.com instead of the provider's default notus-example-com, change it from the panel. There is no need to enroll again, and the server keeps its entry.

This is only possible while the server has no accounts (including terminated ones). It is not available for nameserver nodes or for the server that also runs the panel.

  1. Open Actions › Danger zone.
  2. On the Change hostname row, click Change hostname.
  3. Enter the new full name, type the current hostname to confirm, then click Change hostname.

The agent then:

  • sets the OS hostname with hostnamectl;
  • writes /etc/cloud/cloud.cfg.d/99-moorcp-hostname.cfg with preserve_hostname: true when cloud-init is installed, so the VPS provider's name does not come back after a reboot;
  • replaces the old name in /etc/hosts;
  • switches to a certificate for the new name and restarts within a few seconds.

If the new certificate cannot be installed, the old hostname is restored. The change is audited as server.rename.

The Hostname changed window then lists the next steps:

  1. Point an A record for the new hostname to the server's IP.

  2. Once the A record resolves, issue the hostname SSL certificate on the server as root:

    bash
    moorcp-agent hostcert issue

    Email (Postfix/Dovecot), webmail, phpMyAdmin, and AdminNeo switch to the new name.

  3. Stop renewing the certificate of the old name:

    bash
    moorcp-agent hostcert remove --domain OLD-NAME

See Server hostname certificate.

Removing a server ​

A server can only be removed when it has no accounts left.

  1. Move all accounts first with a drain or move between servers, or terminate the accounts.
  2. Open Actions › Danger zone.
  3. On the Remove server row, click Review removal.
  4. Type the server's hostname to confirm, then click Remove server.

The result:

  • the server disappears from MoorCP and the panel stops managing it;
  • the panel rejects that server's agent certificate;
  • nothing is deleted on the server itself.

DANGER

Removal cannot be undone from the panel. To manage that server again, enroll it again with a new token.

See also ​

MoorCP Shared, a shared hosting panel for server fleets.