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:
| Card | Contents |
|---|---|
| Servers | Connected 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 usage | Average 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:
| Driver | Isolation |
|---|---|
cloudlinux | LVE limits, CageFS, PHP Selector, MySQL Governor. |
generic | cgroup v2 + systemd slices, hidepid, private /home. No per-user database throttling. |
litespeed-containers | LiteSpeed 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.
| Step | What it does | Done when |
|---|---|---|
| Verify and harden | Apply hardening (hidepid, private /home) and Run checks | Status active and isolation applied |
| Web server and PHP | Shows the web server mode; installs extra PHP versions | Always (chosen during the install) |
Set 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 | |
| Security | Installs ModSecurity with OWASP CRS and CrowdSec, and sets up ClamAV | WAF, CrowdSec, and ClamAV installed |
| FTP and SSH | Sets 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 Memcached | One of them installed |
| App installer (optional) | Installs Softaculous (needs a license for the server IP) | Softaculous installed |
| Finish | Lists 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
Open Servers and click Install command (Technicians: Add server).
The Agent enrollment token window opens.
Choose the Default web server:
Option Notes Nginx + Apache ( nginx-proxy)Default. Nginx in front of Apache, full .htaccess.Apache Apache event MPM with PHP-FPM. Nginx Nginx with PHP-FPM. OpenLiteSpeed (+ lsphp) OpenLiteSpeed with per-account LSPHP. Fill Extra PHP versions if needed, as Remi version numbers separated by spaces, for example
74 81 83.Tick Install ClamAV if the server needs a malware scanner.
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:
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:
| Tab | Contents |
|---|---|
| Overview | CPU/memory charts, server information, network, load, service health, IP blacklist. |
| Accounts | Hosting accounts on this server, with their count in the tab name. |
| Services | systemd service status, actions, and logs. |
| Mail queue | Messages waiting in Postfix. |
| Track delivery | Delivery history of every email on this server for the last 7 days. |
| CloudLinux | Only shown when the agent detects LVE or CageFS. See CloudLinux. |
| Settings | All 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:
| Row | Contents |
|---|---|
| Driver | Isolation driver and its isolation level. |
| Web stack | The active web server mode. |
| Processor | CPU model, then the number of threads (vCPU on a virtual machine), sockets and cores, clock speed, and architecture. |
| Memory | Total RAM and swap. |
| Platform | Hardware or hypervisor name from DMI, marked Virtual machine or Bare metal. |
| OS | OS name and kernel version. |
| Agent status | Online or Offline, with the time of the last heartbeat. |
| Uptime | Time since the last boot. |
| Security | Imunify360 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 version | The 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.
| DNSBL | Where to delist |
|---|---|
| Spamhaus ZEN (SBL, CSS, XBL, PBL) | check.spamhaus.org |
| Barracuda | barracudacentral.org |
| SpamCop | spamcop.net |
| PSBL | psbl.org |
| Mailspike | mailspike.org |
| UCEPROTECT Level 1 | uceprotect.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.
| Group | Services |
|---|---|
| Web | nginx, apache (httpd), openlitespeed (lshttpd), litespeed (lsws) |
| PHP | php-fpm |
| Database and cache | mariadb, postgresql, redis, valkey, memcached |
postfix, dovecot, rspamd, clamd | |
| DNS | pdns, named |
| FTP | pure-ftpd |
| Security | crowdsec, crowdsec-bouncer, firewalld, fail2ban |
| System | sshd, crond, chronyd, moorcp-agent |
Status meanings:
| Status | Meaning |
|---|---|
| Running | The service is active. |
| Not running / Inactive | The service is down even though it is enabled. Raises a critical alert. |
| Failed | The service failed to start. |
| Disabled | Deliberately stopped and disabled, for example nginx after switching the web server to OpenLiteSpeed. Does not raise an alert. |
Start, stop, restart, reload
- Find the service in Search services… or filter by status.
- Click the action menu on the service's row.
- Choose Start, Stop, Restart, or Reload. Reload is only offered when the service supports it.
- 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:
sshdcannot be stopped, so emergency access to the server remains. Restart and reload are still allowed.moorcp-agentcannot 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
- Click Logs on the service's row.
- Set the Period: Last hour, Last 24 hours, Last 7 days, or Any time.
- Set the Priority: All levels, Warning+, or Errors.
- Set the number of Lines. At most 2,000 lines.
- 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
- Filter messages by status, or search by sender/recipient.
- Tick messages, or Select all on this page.
- Choose an action:
| Action | Result |
|---|---|
| Retry | Tries to deliver again now. |
| Hold | Holds the message so it is not sent. |
| Release | Returns a held message to the queue. |
| Delete | Removes 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.
- 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.
- Read the impact: all sites, email, and databases on this server go down briefly. A reboot usually takes 1–5 minutes.
- Fill Reason (optional), for example
kernel update. The reason is shown to users logged in on the server and recorded in the audit log. - 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:
- Open Settings › Updates.
- 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:
curl -fsSL https://get-shared.moorcp.com | sudo bash -s -- upgradeTime 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:
- Choose the Time zone, or click Use my time zone to take the zone from your browser.
- 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 running | Refused |
|---|---|
| Sites, email, and databases of existing accounts | New accounts on this server |
| Changes to existing accounts from the panel | cPanel imports and migration waves to this server |
| Statistics, SSL sync, service actions |
Turning on maintenance:
- Open Actions › Capacity & maintenance mode.
- In the Maintenance mode card, fill Reason, for example
disk replacement. - 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:
| Column | Meaning |
|---|---|
| Accounts | Non-terminated accounts, with the limit if one is set. |
| RAM oversell | Total package RAM limits ÷ physical RAM. Red when it exceeds the rule. |
| Disk oversell | Total account disk quotas ÷ size of the disk holding /home. |
| Disk · inodes used | Actual disk and inode usage on the home disk. |
| New accounts | Accepting, 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.
| Rule | Meaning | Example |
|---|---|---|
| Maximum accounts | Number of non-terminated accounts. | 300 |
| Max RAM oversell | Total package RAM limits ÷ physical RAM, in percent. | 300 |
| Max disk oversell | Total disk quotas ÷ home disk size, in percent. | 150 |
| Minimum free disk | Actual free space on the home disk, percent. | 15 |
| Max inode percentage | Used 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.
- Open Actions › Danger zone.
- On the Change hostname row, click Change hostname.
- 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.cfgwithpreserve_hostname: truewhen 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:
Point an A record for the new hostname to the server's IP.
Once the A record resolves, issue the hostname SSL certificate on the server as root:
bashmoorcp-agent hostcert issueEmail (Postfix/Dovecot), webmail, phpMyAdmin, and AdminNeo switch to the new name.
Stop renewing the certificate of the old name:
bashmoorcp-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.
- Move all accounts first with a drain or move between servers, or terminate the accounts.
- Open Actions › Danger zone.
- On the Remove server row, click Review removal.
- 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.
