Server Maintenance

Create CXS Quarantine Directory

Updated January 2026 10,848 views 1 min read
Server Maintenance | Updated January 2026

ConfigServer eXploit Scanner (CXS) quarantines suspicious files by moving them to a quarantine directory. If this directory does not exist or has incorrect permissions, CXS cannot quarantine files and will log errors. This guide shows how to create and configure the CXS quarantine directory.

01. Create the Quarantine Directory

mkdir -p /home/cxsquarantine
chown root:root /home/cxsquarantine
chmod 700 /home/cxsquarantine

02. Configure CXS to Use It

Edit the CXS configuration file /etc/cxs/cxs.conf and set the quarantine path:

quar_dir = /home/cxsquarantine

If the directive is already present, verify the path matches the directory you created.

03. Verify

# Test CXS is working
cxs --test

# Check quarantine directory is accessible
ls -la /home/cxsquarantine/

# Review recent quarantine activity
ls -lt /home/cxsquarantine/ | head -20
Quarantine Cleanup

Quarantined files accumulate over time. Review and clean them periodically:

# See total size
du -sh /home/cxsquarantine/

# Remove files older than 90 days
find /home/cxsquarantine/ -type f -mtime +90 -delete
Do Not Use /tmp

Do not set the quarantine directory to /tmp. On servers with /tmp mounted as a separate partition with limited space, quarantined files can fill it up and cause system-wide issues.

Need Help With CXS Configuration?

Contact our team for assistance with malware scanning and CXS setup.

Open a Support Ticket

Quick Recap

  1. Create: mkdir -p /home/cxsquarantine
  2. Own: chown root:root, chmod 700
  3. Configure: set quar_dir in /etc/cxs/cxs.conf
  4. Verify: cxs --test
  5. Maintain: periodically clean old quarantined files

10,424 users found this article useful · Last updated March 2026 · Browse all Server Maintenance articles

Share: X in Reddit f Email
  • 99 Users Found This Useful

Was this answer helpful?

Related Articles

Manually Clear from Console / Command Line cPanel Exim Mail Queue

Server Maintenance | Updated January 2026 If the Exim mail queue on a cPanel server is backed...

SpamAssassin Command Line Bayesian Learn Command cPanel

Server Maintenance | Updated January 2026 SpamAssassin's Bayesian filter learns from your...

ModSecurity: collection_store: Failed to access DBM file /var/cpanel/secdatadir/ip: Permission denied

Server Maintenance | Updated January 2026 The error collection_store: Failed to access DBM...

Failed to lock proc mutex: Permission denied

Server Maintenance | Updated January 2026 The "failed to lock proc mutex" error in Apache's...

PHP Startup: Unable to Load Dynamic Library

Server Maintenance | Updated March 2026 "PHP Startup: Unable to load dynamic library" errors...



Save 30% on web hosting - Use coupon code Hosting30