How to Protect Your VPS or Dedicated Server from Malware with Monarx

Monarx can protect your VPS or dedicated server with a security tool that scans for malware.

You can install it yourself in a few minutes with a single command. It starts in Detection Only mode, which is free. Whenever you’re ready, you can upgrade to full protection that removes malware and blocks attacks for you.

What do I get?

PlanWhat it does for youPrice
Detection OnlyScans your server and alerts you when it finds malware.Free
Active Protection (AP)Automatically quarantines and cleans malware and gives you detailed reports.Paid add-on
ThreatShield (TS)Watches visits to your websites and can block harmful requests.Paid add-on
SmartWAFA web firewall that stops harmful traffic before it reaches your websites.Paid add-on

Good to know: Detection Only finds malware but does not remove it. To have malware cleaned automatically, add Active Protection.

Before you start

You will need:

  • A 64-bit server running Debian, Ubuntu, AlmaLinux, Rocky Linux, RHEL, CentOS or CloudLinux.
  • Root access to your server over SSH.
  • Your server must be able to reach the internet over HTTPS (port 443).

Install Monarx in 3 steps

Step 1: Copy your install command

  1. Log in to your Client Area.
  2. Go to My Products & Services and open your server.
  3. Scroll down to Monarx Protection and click Generate install command.
  4. Click Copy.

Your command is personal and works only once, for about 30 minutes. Please don’t share it. If it expires, just click Generate a new command.

Step 2: Run it on your server

  1. Connect to your server over SSH as root.
  2. Paste the command and press Enter.
  3. Wait about a minute. When it is done, you will see:
The agent is installed and running. Return to your client area: it confirms the connection within a few minutes.

During installation, your web server and PHP restart once, which takes a few seconds. If your websites are busy, we recommend installing at a quiet time.

Step 3: Check the connection

Go back to the Monarx Protection section in your Client Area. After a minute or two you will see:

Connected. Your server is now registered with malware protection.

That’s it! Your server is now in Detection Only mode.

Upgrade to full protection

  1. In the Monarx Protection section, open the tab you want: Active Protection, ThreatShield or SmartWAF.
  2. Click the upgrade button, for example Upgrade to Active Protection (AP).
  3. Complete your order.

Once your order is active, the new protection is turned on and you can manage it from the same section.

Managing your protection

Active Protection

  • On: malware is cleaned automatically.
  • Detection Only: malware is found and reported, but not cleaned.

ThreatShield

  • Block requests: harmful requests to your websites are blocked.
  • Monitor only: harmful requests are recorded but not blocked.

You can click Help & definitions at the top of the Monarx Protection section at any time for a quick explanation.

Frequently Asked Questions

The installer says my command was refused. What should I do?

Each command works only once and expires after about 30 minutes. Click Generate a new command in your Client Area and run the new one.

The installer says a Monarx agent is already installed.

The installer asks whether to replace it. Type y and press Enter to reinstall, or press Enter to cancel without changing anything.

The Client Area keeps saying “Waiting for your server to connect”.

Make sure the command finished without errors, and that your firewall allows outgoing HTTPS (port 443) to repository.monarx.com and api-agent.monarx.com. If it still doesn’t connect after a few minutes, please contact our support team.

Monarx found malware but didn’t remove it. Why?

Your server is in Detection Only mode, which reports malware but doesn’t clean it. Upgrade to Active Protection to have malware quarantined and cleaned automatically.

I use CloudLinux. Is there anything extra to do?

Yes. During your next maintenance window, run cagefsctl --force-update and then cagefsctl --remount-all.

Will installing Monarx affect my websites?

Only for a few seconds, while PHP and the web server restart. After that, Monarx runs quietly in the background.

Share this:
FacebookXWhatsAppTelegramLinkedInGmailCopy Link
Updated on November 26, 2026
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support