Jump to content

Perfectly Install CXS - ConfigServer eXploit Scanner in CWP- Control Web Panel

Recommended Posts

In this tutorial we’ll learn how you can install CXS in CWP -Control Web Panel wiht below simple steps. CSX is paid Program and you need license to install and use it :

ConfigServer eXploit Scanner (cxs) is a server malware, exploit and antivirus scanner that performs active scanning of files as they are uploaded to the server

  • For dedicated or virtual servers – protects all domains, IP addresses and users on the server
  • Active (realtime), manual, and scheduled scanning can be performed
  • Scans for suspected exploits, viruses, suspicious resources
  • Quarantine or delete suspicious files
  • Provides an easy to use interface within the root or admin control panel. 
  • Licensed on a per server basis, no limit on users or accounts. 
  • One time purchase price, includes software updates for the life of the product. No monthly fees.

Buy the license here : LINK

Install CXS in CWP steps :

STEP 1 :

cd /usr/src
yum install perl-Linux-Inotify2 -y
rm -f cxs*
wget https://download.configserver.com/cxsinstaller.tgz
tar -xzf cxsinstaller.tgz
chattr -i -R /usr/local/cwpsrv/htdocs/admin/
perl cxsinstaller.pl
rm -fv cxsinstaller.*

** replace the with your licensed server IP

STEP 2 :
Now got wo cwp admin dashboard and navigate :

CWP.admin > Configserver Scripts >> ConfigServer Exploit Scanner >> cxs Command Wizard

Choose all default settings and save it

after run this command to use custom CLAM AV :

sed -i '$ a clamdsock=/var/run/clamd.amavisd/clamd.sock' /etc/cxs/cxs.defaults

Then Restart CXS service :

service cxswatch restart

STEP 3 :
Make Directory Permission to 755 :

in order to scanner to work you need to change the DIRECORY permission to 755, to do this all at once for all users run the below command:

chmod 755 /home/*/public_html

If you’ve domain/subdomains directory outside of public_html run below command to fix permission :

chmod 755 /home/*/*

Also you can create custom cron job to run every 15 minutes to fix the permission for new added users or domain/subdomain

Add this cron job :

*/15 * * * * /usr/bin/chmod 755 /home/*/*


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...