In this article, we will learn how to install CXS on CWP CentOS Web Panel.
ConfigServer eXploit Scanner (cxs) is a tool from configserver that performs active scanning of files as they are uploaded to the server. The active scanning of files can help prevent exploitation of an account by malware by deleting or moving suspicious files to quarantine before they become active.
It can also prevent the uploading of PHP and perl shell scripts, commonly used to launch more malicious attacks and for sending spam. cxs also allows you to perform on-demand scanning of files, directories and user accounts for suspected exploits, viruses and suspicious resources (files, directories, symlinks, sockets).
Let’s get started with the installation.
1. Keep the server up-to-date
# yum update -y
2. Change working directory to /usr/src
# cd /usr/src
3. Download CXS from official site and install it:
Note: before the installation, we need to purchase license of ConfigServer eXploit Scanner. To purchase the license visit official site here
# wget https://download.configserver.com/cxsinstaller.tgz
# tar -xzf cxsinstaller.tgz
# chattr -i -R /usr/local/cwpsrv/htdocs/admin/
# perl cxsinstaller.pl [server IP]
# rm -fv cxsinstaller.*
Note: replace [server IP] with the licensed server IP.
4. Now, add clamd socket to cxs config for the scanner:
# sed -i ‘$ a clamdsock=/var/run/clamd.amavisd/clamd.sock’ /etc/cxs/cxs.defaults
As soon as the installation gets completed, go to CWP-admin > Configserver Scripts >> ConfigServer Exploit Scanner and go through onscreen instruction, we recommend using default settings.
5. Restart cxswatch service:
# service cxswatch restart
We have successfully seen how to install CXS on CWP CentOS Web Panel.
[Need assistance to fix this error or install tools? We’ll help you.]